-
Notifications
You must be signed in to change notification settings - Fork 31
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
Taproot Support #111
Taproot Support #111
Conversation
This commit only adds the support for taproot signature hash from bitcoin. For elements, BIP341 is ammended as described in doc/taphash.md. For ease of review, elements specific changes would be done in the following commit
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.
utACK 4b031d9
Feel free to squash things now to make them compile, if you want.
Note this code does not compile. This commit only meant for aiding in review. This will be squashed with the subsequent commit that fixes other bugs and implements elements specific logic later taptweaking code fixup Make copied code compile
@apoelstra , squashed. All commits should compile now. |
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.
Great, thanks!
ACK 4311357
cc @sanket1729 is this ready to go? You mentioned it to me on a recent call but it looks like it's already ACKed. Do you just want me to merge it? |
Yes, this is ready to go. I can merge it. |
35110f6 Add utility methods for fetching sighash types from inputs (sanket1729) a860698 Add #[test] to unused test (sanket1729) f429873 Rename SigHashType to EcdsaSighashType (sanket1729) f02eedc Remove std feature (sanket1729) 8f65c48 Add Support for Psbt Sighash type (sanket1729) Pull request description: Also adds FromStr/Display for SchnorrSignatureHashType - The first commit adds PsbtSighashType(needed for schnorr sigh psbt support) - The second commit fixes a bug introduced in copy-pasting during the #111. - The third commit does renaming to distinguish SchnorrSigHashType and EcdsaSigHashType - The last and fourth commit fixes a small nit by adding a #[test] to untested code in serde feature. ACKs for top commit: apoelstra: ACK 35110f6 Tree-SHA512: 269a10e34bc930de6238a104c7494e56bcb7e68507d194b18a49c612c85c77bf5b5c12a22b43fb467666e3726d178fdfc8564ec1e73881845fd48dc5c1b46155
Commits 86979bc and 16ba676 don't compile. They are only separated for review aid. These commits have code that is copied from rust-bitcoin, and the subsequent commits make the elements specific changes which should be easy to review.
After this is ready for merge, I will squash the non-compiling commits to have a good history.
The last commit has integration tests for sighash/taproot tests for elements