tapscript icon indicating copy to clipboard operation
tapscript copied to clipboard

Annex is ignored before signing

Open orkunkilic opened this issue 8 months ago • 1 comments

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.

https://github.com/cmdruid/tapscript/blob/10459abc7d50e03c61a10c2d7b5416a36087232b/src/lib/sig/taproot/hash.ts#L207

orkunkilic avatar May 12 '25 19:05 orkunkilic

Thank you for bringing this up. Will fix asap.

cmdruid avatar May 13 '25 21:05 cmdruid