Closed blastgo closed 2 months ago
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?
The taproot branch was finally merged in and published to npm in v10.1.0
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?