Commit Graph

8 Commits

Author SHA1 Message Date
Henry de Valence 709676ee8d
Use the hex crate for nicer debug output. (#14) 2020-06-09 17:06:17 -07:00
Henry de Valence d1be2bfbc5 Add impl AsRef<[u8]> for all types except Signature.
This ensures that any
```
impl From<T> for [u8; N]
```
is accompanied by a matching
```
impl AsRef<[u8]> for T
```
except for Signature, whose internals have to change (issue #9).
2020-04-01 19:11:29 -07:00
Henry de Valence 5954953126 impl AsRef<[u8]> for PublicKeyBytes
It would be good to also implement AsRef<[u8]> for Signature but this requires
changing the internal representation of Signature.
2020-04-01 18:50:56 -07:00
Henry de Valence abbe9f74d9 Add examples. 2020-01-24 12:55:43 -08:00
Henry de Valence cab40f04e7 Bring ed25519-zebra in line with libsodium 1.0.15. 2020-01-24 12:33:51 -08:00
Henry de Valence 8fdc58df74 Store the decompressed pubkey point as -A rather than A. 2020-01-23 17:14:13 -08:00
Henry de Valence 4f9bb3d06b Implement sign, verify. 2020-01-23 17:14:13 -08:00
Henry de Valence 77a5dd8680 Stub out the API, based on redjubjub. 2020-01-22 14:57:26 -08:00