Skip to content

feat: Enable P2TR key-path signing by tweaking signer when tapMerkleRoot is present#28

Open
SmarakNayak wants to merge 1 commit intounisat-wallet:masterfrom
SmarakNayak:enable-key-path-signing
Open

feat: Enable P2TR key-path signing by tweaking signer when tapMerkleRoot is present#28
SmarakNayak wants to merge 1 commit intounisat-wallet:masterfrom
SmarakNayak:enable-key-path-signing

Conversation

@SmarakNayak
Copy link

Wrote a PR to enable P2TR key-path signing. This means users can spend P2TR scripts without revealing the script. The wallet signs with the private key corresponding to the address as opposed to the private key required by the script.

The code checks to see if tapMerkleRoot is present and tweaks the signer by the merkle root as necessary.

It works for both the tweaked and untweaked signer.

This should bring unisat to signing feature parity with xverse which currently supports key-path signing.

Please let me know if you have any questions!

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.

1 participant