Use infallible conversions: Hash -> secp256k1::Message#1118
Merged
apoelstra merged 1 commit intorust-bitcoin:masterfrom Jul 21, 2022
Merged
Use infallible conversions: Hash -> secp256k1::Message#1118apoelstra merged 1 commit intorust-bitcoin:masterfrom
Hash -> secp256k1::Message#1118apoelstra merged 1 commit intorust-bitcoin:masterfrom
Conversation
14e4829 to
b67eba1
Compare
Kixunil
requested changes
Jul 21, 2022
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
Contributor
Author
Kixunil
approved these changes
Jul 21, 2022
tcharding
approved these changes
Jul 21, 2022
apoelstra
approved these changes
Jul 21, 2022
ChallengeDev210
pushed a commit
to ChallengeDev210/rust-bitcoin
that referenced
this pull request
Aug 1, 2022
…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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Replaces all instances of
secp256k1::Message::from_slice(_).expect(_)withsecp256k1::Message::from(_). This also implementsThirtyTwoByteHashforTapSighashHash.Closes #824