-
Notifications
You must be signed in to change notification settings - Fork 40
Add PSBT_IN_TAP_KEY_SIG field to PSBTs #68
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
base: master
Are you sure you want to change the base?
Conversation
| # read the taproot key sig | ||
| if len(k) != 1: | ||
| raise PSBTError("Invalid taproot key signature key") | ||
| if self.taproot_key_sig is not None: |
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.
in which case this can happen?
maybe we can avoid error here if self.taproot_key_sig == v in this case anyways?
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.
I'm not exactly sure in what context this function is called, as iirc we neither use it directly in Krux nor indirectly. I simply replicated the verification from final scriptsig and final script witness, believing it is a sanity check.
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.
Anyway, I guess if we sign twice an input, it shold be with 2 differents nonces? (so we should end up with a different signature)
|
A question also raised by @jdlcdl: With this PR, Embit now includes the same information in both the |
|
I dont think so, iiuc the input finalizer role must generate |
|
utACK ef61cca |
ditto! Krux: tested and working for pr498, untested and haven't considered how this might affect other downstream projects. |
|
With due respect for downstream projects, and especially for past embit contributors, tagging:
Any feedback you may have for this PR, as well as for PR #67, would be greatly appreciated. |
|
We plan to release a new version of Krux soon, incorporating pull requests #67 and #68. @stepansnigirev kindly granted permission to merge these changes on Embit. However, since Stepan may have other priorities, I would like to gather feedback from the other Specter and SeedSigner developers to ensure these commits are safe and beneficial for everyone. For now, I have pushed the relevant commits to the branch I appreciate your testing and feedback. |
|
The commits from this pull request have now been merged into Embit's |
|
I'll have a look at rolling a build of specter DIY with this and testing it out with Liana over the coming days |
Following guidance from @pythcoiner , we have implemented support for the PSBT_IN_TAP_KEY_SIG field. This addition addresses previously anticipated requirements, as indicated in the related comments, ensuring compatibility with internal key-signed Taproot PSBTs.