Commit Graph

6 Commits

Author SHA1 Message Date
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 0d51fe6da5 Add From<&SecretKey> for PublicKeyBytes 2020-01-28 17:30:00 -08:00
Henry de Valence 701bc9cc72 Remove unnecessary .clone() 2020-01-23 17:14:13 -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