Enums§
- Witness
Version - Witness version for SegWit (v0) and Taproot (v1)
Functions§
- calculate_
transaction_ weight_ segwit - Calculate transaction weight using SegWit formula
- extract_
witness_ program - Extract witness program from scriptPubKey
- extract_
witness_ version - Validate witness version in scriptPubKey
- is_
upgradable_ witness_ program - True when
scriptPubKeyis a witness program that is not standard v0 (P2WPKH/P2WSH) or v1 P2TR. - is_
witness_ empty - Check if witness is empty (non-witness transaction)
- validate_
segwit_ witness_ structure - Validate witness structure for SegWit
- validate_
taproot_ witness_ structure - Validate witness structure for Taproot
- validate_
witness_ program_ length - Validate witness program length
- weight_
to_ vsize - Calculate virtual size (vsize) from weight
Type Aliases§
- Witness
- Witness data: stack of witness elements (SegWit/Taproot)