bitcoinjs-lib icon indicating copy to clipboard operation
bitcoinjs-lib copied to clipboard

Taproot sample code

Open Dujon4444 opened this issue 3 years ago • 1 comments
trafficstars

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!

Dujon4444 avatar Jun 13 '22 05:06 Dujon4444

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.

motorina0 avatar Jun 13 '22 05:06 motorina0

The taproot PR is merged. Please check the unit tests and the integration tests.

motorina0 avatar Jan 09 '23 15:01 motorina0