Skip to main content

Module sigop

Module sigop 

Source

Functions§

count_sigops_in_script
Spec-locked to Orange Paper Section 5.2.2: CountSigOpsInScript
count_tapscript_sigops
Spec-locked to Orange Paper Section 11.2.8: CountTapscriptSigOps
get_legacy_sigop_count
Spec-locked to Orange Paper Section 5.2.2: GetLegacySigOpCount
get_legacy_sigop_count_accurate
Spec-locked to Orange Paper Section 5.2.2: GetLegacySigopCountAccurate
get_p2sh_sigop_count
Spec-locked to Orange Paper Section 5.2.2: GetP2SHSigOpCount
get_transaction_sigop_cost
Spec-locked to Orange Paper Section 5.2.2: GetTransactionSigOpCost
get_transaction_sigop_cost_with_utxos
Spec-locked to Orange Paper Section 5.2.2: GetTransactionSigopCostWithUtxos
get_transaction_sigop_cost_with_witness_slices
Spec-locked to Orange Paper Section 5.2.2: GetTransactionSigopCostWithWitnessSlices
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
Spec-locked to Orange Paper Section 5.2.1: IsPayToScriptHash