Skip to content
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

taproot address #3701

Open
blastgo opened this issue Feb 28, 2024 · 0 comments
Open

taproot address #3701

blastgo opened this issue Feb 28, 2024 · 0 comments

Comments

@blastgo
Copy link

blastgo commented Feb 28, 2024

I try to convert a pubkey to a taproot type address using codes like below:

pubkey.toAddress(undefined, 'taproot').toString()
And I got an error saying:

xxx/node_modules/bitcore-lib/lib/address.js:293
info.hashBuffer = Hash.sha256ripemd160(Script.buildWitnessV1Out(pubkey).toBuffer());
^

TypeError: Script.buildWitnessV1Out is not a function
I've search buildWitnessV1Out in the whole codebase. It seems to be absent. Am I missing something?

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

No branches or pull requests

1 participant