You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 text was updated successfully, but these errors were encountered:
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 text was updated successfully, but these errors were encountered: