While preparing the transaction to be signed, annex extractor function expects multiple elements in the stack (such as sig + annex). This is a valid check after the tx is hashed and signed, but the same function also used while hashing the transaction before signing. This causes ignored annex before signing, causing an error when annex is included into witness later.
|
if (witness.length < 2) return |
While preparing the transaction to be signed, annex extractor function expects multiple elements in the stack (such as sig + annex). This is a valid check after the tx is hashed and signed, but the same function also used while hashing the transaction before signing. This causes ignored annex before signing, causing an error when annex is included into witness later.
tapscript/src/lib/sig/taproot/hash.ts
Line 207 in 10459ab