Expand description
Script verification flags matching Bitcoin Core interpreter.h.
These constants map directly to Bitcoin Core’s SCRIPT_VERIFY_* flags.
Divergence from Core’s values is a consensus bug.
Reference: bitcoin/bitcoin src/script/interpreter.h (Bitcoin Core 26+).
Constants§
- SCRIPT_
VERIFY_ CHECKLOCKTIMEVERIFY - Enable OP_CHECKLOCKTIMEVERIFY (BIP65).
- SCRIPT_
VERIFY_ CHECKSEQUENCEVERIFY - Enable OP_CHECKSEQUENCEVERIFY (BIP112).
- SCRIPT_
VERIFY_ CLEANSTACK - Require clean stack after script evaluation (BIP62).
- SCRIPT_
VERIFY_ CONST_ SCRIPTCODE - Signature hash must not hash the script code after a CODESEPARATOR (BIP143 §4).
- SCRIPT_
VERIFY_ DERSIG - Enforce strict DER signature encoding (BIP66).
- SCRIPT_
VERIFY_ DISCOURAGE_ OP_ SUCCESS - Reject OP_SUCCESS opcodes that are not re-defined by a known Tapscript upgrade.
- SCRIPT_
VERIFY_ DISCOURAGE_ UPGRADABLE_ NOPS - NOPs 1–10 are reserved; treat them as invalid if a future soft-fork hasn’t defined them.
- SCRIPT_
VERIFY_ DISCOURAGE_ UPGRADABLE_ PUBKEYTYPE - Reject unknown pubkey types in Tapscript (allows future soft-forks).
- SCRIPT_
VERIFY_ DISCOURAGE_ UPGRADABLE_ TAPROOT_ VERSION - Reject unknown Taproot leaf versions (allows future soft-forks).
- SCRIPT_
VERIFY_ DISCOURAGE_ UPGRADABLE_ WITNESS_ PROGRAM - Reject unknown witness program versions (allows future soft-forks).
- SCRIPT_
VERIFY_ LOW_ S - Enforce low-S signature requirement (BIP62).
- SCRIPT_
VERIFY_ MINIMALDATA - Require minimal encoding for pushdata (BIP62 rule 3 & 4).
- SCRIPT_
VERIFY_ MINIMALIF - Require minimal IF argument (BIP342 and pre-taproot cleanups).
- SCRIPT_
VERIFY_ NONE - No flags — bare pubkey / standard evaluation.
- SCRIPT_
VERIFY_ NULLDUMMY - OP_CHECKMULTISIG dummy element must be OP_0 (BIP147).
- SCRIPT_
VERIFY_ NULLFAIL - Require empty sig on CHECKSIG failure (BIP342 null-fail rule).
- SCRIPT_
VERIFY_ P2SH - Evaluate P2SH subscripts (BIP16).
- SCRIPT_
VERIFY_ SIGPUSHONLY - Require only push opcodes in scriptSig.
- SCRIPT_
VERIFY_ STRICTENC - Require DER-encoded signatures (BIP66 stricter encoding).
- SCRIPT_
VERIFY_ TAPROOT - Enable Taproot/Tapscript evaluation (BIP341/342).
- SCRIPT_
VERIFY_ WITNESS - Enable Segregated Witness evaluation (BIP141/143).
- SCRIPT_
VERIFY_ WITNESS_ PUBKEYTYPE - Require compressed public keys in witness programs (BIP143).
- SEGWIT_
STANDARD_ FLAGS - Standard mandatory flags for segwit-v0 transactions (pre-Taproot).
- TAPROOT_
STANDARD_ FLAGS - Full Taproot activation flag set (P2SH + SegWit + Taproot).