Skip to content
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

Merged
merged 10 commits into from
Feb 10, 2022
Merged

Taproot Support #111

merged 10 commits into from
Feb 10, 2022

Conversation

sanket1729
Copy link
Member

@sanket1729 sanket1729 commented Dec 22, 2021

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

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
@sanket1729 sanket1729 changed the title Add support for taproot hashes Taproot Support Dec 24, 2021
Copy link
Member

@apoelstra apoelstra left a 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
@sanket1729
Copy link
Member Author

sanket1729 commented Jan 3, 2022

@apoelstra , squashed. All commits should compile now.

Copy link
Member

@apoelstra apoelstra left a 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

@apoelstra
Copy link
Member

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?

@sanket1729
Copy link
Member Author

Yes, this is ready to go. I can merge it.

@sanket1729 sanket1729 merged commit 0edddf7 into ElementsProject:master Feb 10, 2022
sanket1729 added a commit that referenced this pull request May 18, 2022
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants