Functions§
- count_
sigops_ in_ script - Count sigops in a script (legacy counting)
- count_
tapscript_ sigops - Count sigops in a tapscript per BIP 342 (
CountTapscriptSigOps). - get_
legacy_ sigop_ count - Get legacy sigop count from transaction
- get_
legacy_ sigop_ count_ accurate - Legacy sigop count with accurate OP_CHECKMULTISIG (OP_1..OP_16 = 1..16, else 20). Used for BIP54 per-tx 2500 limit to match Core’s GetSigOpCount(fAccurate=true).
- get_
p2sh_ sigop_ count - Get P2SH sigop count from transaction
- get_
transaction_ sigop_ cost - Get total transaction sigop cost
- get_
transaction_ sigop_ cost_ with_ utxos - Same as get_transaction_sigop_cost but accepts pre-fetched UTXOs in input order. Avoids redundant overlay lookups when caller already has UTXO data.
- get_
transaction_ sigop_ cost_ with_ witness_ slices - Same as get_transaction_sigop_cost but accepts per-input witness slices directly. Avoids flattening witness data in block validation hot path.
- get_
transaction_ sigop_ count - Get total transaction sigop count (BIP54 limit).
- get_
transaction_ sigop_ count_ for_ bip54 - BIP54 per-tx sigop count: legacy (accurate) + P2SH + witness. Matches Core’s CheckSigopsBIP54 (GetSigOpCount(scriptSig, true) for legacy).
- is_
pay_ to_ script_ hash - Check if a script is P2SH (Pay-to-Script-Hash) — Orange Paper 5.2.1 IsP2SH