bitcore icon indicating copy to clipboard operation
bitcore copied to clipboard

taproot address

Open blastgo opened this issue 2 years ago • 0 comments

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?

blastgo avatar Feb 28 '24 07:02 blastgo