bitcoinjs-lib
bitcoinjs-lib copied to clipboard
Taproot sample code
Hi,
I am new to this, your library is extremely helpful. Am stuck with Taproot though. I have created a customized conditional spending transaction with PSBT and P2SH but want to change it to Taproot. Is there a sample code for creating addresses and conditional spending transactions with Taproot? Will be extremely helpful.
Thank you in advance!
The taproot functionality still under review (not merged yet). You can find it in this PR: https://github.com/bitcoinjs/bitcoinjs-lib/pull/1742
The taproot integration-tests and unit-tests should be a good starting point.
The taproot PR is merged. Please check the unit tests and the integration tests.