standardize taproot witness treatment

This commit is contained in:
mononaut
2025-07-30 08:52:24 +00:00
committed by GitHub
parent 45f126a5fa
commit 2146b8d1fe

View File

@@ -346,8 +346,7 @@ export class TransactionsListComponent implements OnInit, OnChanges, OnDestroy {
const tapleafVersion = parseInt(controlBlock.slice(0, 2), 16) & 0xfe;
// simplicity script spend
if (tapleafVersion === 0xbe) {
const scriptHex = vin.witness[1]; // simplicity program is the second witness element
vin.inner_simplicityscript = scriptHex;
vin.inner_simplicityscript = vin.witness[1]; // simplicity program is the second witness element
}
}
}