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

Allow signing only specific leaf hashes #645

Merged
merged 1 commit into from
Aug 2, 2022

Conversation

danielabrozzoni
Copy link
Member

Fixes #616

Checklists

All Submissions:

  • I've signed all my commits
  • I followed the contribution guidelines
  • I ran cargo fmt and cargo clippy before committing

New Features:

  • I've added tests for the new feature
  • I've added docs for the new feature
  • I've updated CHANGELOG.md

Copy link
Member

@afilini afilini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Concept ACK, but I would also add a way to disable signing for the internal key (which is required if you want to force the use of a a script-spend path)

@notmandatory notmandatory added the new feature New feature or request label Jul 16, 2022
@danielabrozzoni danielabrozzoni force-pushed the 616_leaf_hash_sign branch 3 times, most recently from e6ba47c to 7e1a87a Compare July 20, 2022 09:30
@danielabrozzoni
Copy link
Member Author

I would also add a way to disable signing for the internal key (which is required if you want to force the use of a a script-spend path)

Done :)

@danielabrozzoni
Copy link
Member Author

Rebased

src/wallet/signer.rs Outdated Show resolved Hide resolved
src/wallet/signer.rs Outdated Show resolved Hide resolved
We would previously always try to sign with the taproot internal
key, and try to sign all the script leaves hashes.
Instead, add the `sign_with_tap_internal_key` and `TapLeaveOptions`
parameters, to be able to specify if we should sign with the internal
key, and exactly which leaves we should sign.
Fixes bitcoindevkit#616
@danielabrozzoni
Copy link
Member Author

Fixed

Copy link
Member

@afilini afilini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK a713a5a

@afilini afilini merged commit 5a41597 into bitcoindevkit:master Aug 2, 2022
@danielabrozzoni danielabrozzoni deleted the 616_leaf_hash_sign branch August 16, 2022 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

Allow signing only specific leaf hashes
3 participants