-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Can BitcoinJS generate Taproot addresses? #1746
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
Comments
I see, thanks. Instead of the latest release according to github (4.0.3) I have now taken just the latest from npm, which is currently 6.0.0. However, I'm now having a problem in my test scripts, it doesn't seem to know I have this index.js:
I build a standalone bitcoinjs.js like this:
Then I have a test.html in which I include bitcoinjs.js and do this:
I'm now getting this error:
Instead if I do I think I noticed a commit somewhere in which ECPair requirement was removed or something, but can't find it anymore. Is there a way I can still export ECPair along with bitcoinjs so I can use the various keypair functions? |
Also, github shows the latest is v6.0.0 https://github.com/bitcoinjs/bitcoinjs-lib/tags Here's the CHANGELOG |
I have updated the taproot example. It has become a bit more complicated.
Also, tiny-secp256k1 should add a negate method for private keys, since it looks like we will make great use of it in taproot. |
Taproot support is added now in v6.1.0-rc.0 |
Given a private key (in Hex of WIF format) is there a way to get BitcoinJS to generate the corresponding Taproot (P2TR) address for that?
I sortof extracted this from the Taproot Key Spend example:
However this results in an error:
What am I doing wrong here?
P.S. I'm using bitcoinjs-lib 4.0.3.
The text was updated successfully, but these errors were encountered: