You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
44dae89 key/secret: encapsulate SecretKey in module that enforces invariants (Andrew Poelstra)
41bb442 key: add {from,to,as}_secret_bytes methods (Andrew Poelstra)
9b84072 move SecretKey into its own module (Andrew Poelstra)
e86555a move key.rs to key/mod.rs (Andrew Poelstra)
0619163 tests: add API test (Andrew Poelstra)
4853f67 test: remove deprecated StepRng (Andrew Poelstra)
Pull request description:
Now that we unconditionally have a global context object we can basically redo the whole API of this crate to avoid requiring these objects (although for the next release we should continue to support the old API, to make the transition easier).
We know a lot more about Rust and API design than we did when we put together the old one, so we can do this in a consistent and principled way. This isn't a huge crate. We should be able to do the "main" data structures (`SecretKey', `PublicKey`, `ecdsa::Signature`, `schnorr:Signature`, `Message`) in a week or so, then cut a new release which enables context-free keygen, verification and signing.
ACKs for top commit:
tcharding:
ACK 44dae89
Tree-SHA512: 60659532b7ac65c85ac0c7bf9b78d0f080d4b3f556a02623bcb2b737ab73d02bf493153f751b435c7be5041435900870868b4e18b321207d50aaceb96b2f56da
0 commit comments