-
Notifications
You must be signed in to change notification settings - Fork 831
Use infallible conversions: Hash
-> secp256k1::Message
#1118
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use infallible conversions: Hash
-> secp256k1::Message
#1118
Conversation
14e4829
to
b67eba1
Compare
Replace all instances of `secp256k1::Message::from_slice(_).expect(_)` with `secp256k1::Message::from(_)`. Also adds an implementation of ThirtyTwoByteHash for TapSighashHash. Solves rust-bitcoin#824
b67eba1
to
aeede12
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK aeede12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK aeede12
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK aeede12
…sh` -> `secp256k1::Message` aeede12 Infallible conversions: `Hash` -> `Message` (Arturo Marquez) Pull request description: Replaces all instances of `secp256k1::Message::from_slice(_).expect(_)` with `secp256k1::Message::from(_)`. This also implements `ThirtyTwoByteHash` for `TapSighashHash`. Closes rust-bitcoin/rust-bitcoin#824 ACKs for top commit: Kixunil: ACK aeede12 tcharding: ACK aeede12 apoelstra: ACK aeede12 Tree-SHA512: cd392f0e93e2560680c579a889a46f7e4484380058b2d8d03b6ecec351d880efa9beea5e3be128158e9e26243b7dfcef1f48a448028d9155958a5af62bcc9ec2
Replaces all instances of
secp256k1::Message::from_slice(_).expect(_)
withsecp256k1::Message::from(_)
. This also implementsThirtyTwoByteHash
forTapSighashHash
.Closes #824