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
Improvements to script methods related to Taproot #721
Improvements to script methods related to Taproot #721
Conversation
Concept ACK for the first commit. I think the second commit should be done cleanly after rust-secp256k1 release. |
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result { | ||
fmt::LowerHex::fmt(&self.0, f) | ||
} | ||
} |
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.
Any reason not to implement upper hex?
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.
Done
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.
It was absent since inner type does not implement it as well - and doing it should be a case of other PR. Here we just need to get the stuff needed for Taproot :)
@sanket1729 sorry it seemed I hd removed the second commit, but i had got its way through. Will remove once again this evening. |
@sanket1729 sorry it seemed I had removed the second commit, but i had got its way through. Will remove once again this evening. |
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 4b9b59f
@sanket1729 second commit is removed |
utACK 4b9b59f but needs rebase |
utACK, but needs rebase. |
Rebased. CI fails on fuzzing due to some network error unrelated to the PR. |
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 d0a87be
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 d0a87be
@@ -97,4 +96,11 @@ impl TweakedPublicKey { | |||
&self.0 | |||
} | |||
|
|||
/// Serialize the key as a byte-encoded pair of values. In compressed form |
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.
nit: Would have liked to have a sentence about 32 byte xonly keys instead of compressed keys.
Extraction of a portion from #696 which can be done without changes in
rust-secp256k1