pub struct ScriptFlags(pub u32);Expand description
Script verification flags controlling interpreter behavior.
Tuple Fields§
§0: u32Implementations§
Source§impl ScriptFlags
impl ScriptFlags
Sourcepub const NONE: ScriptFlags
pub const NONE: ScriptFlags
No flags set; accept all transactions.
Sourcepub const BIP16: ScriptFlags
pub const BIP16: ScriptFlags
Evaluate P2SH (BIP16) subscripts.
Sourcepub const STRICT_MULTI_SIG: ScriptFlags
pub const STRICT_MULTI_SIG: ScriptFlags
Enforce strict multisig dummy element (must be OP_0).
Sourcepub const DISCOURAGE_UPGRADABLE_NOPS: ScriptFlags
pub const DISCOURAGE_UPGRADABLE_NOPS: ScriptFlags
Discourage use of upgradable NOP opcodes (NOP1-NOP10).
Sourcepub const VERIFY_CHECKLOCKTIMEVERIFY: ScriptFlags
pub const VERIFY_CHECKLOCKTIMEVERIFY: ScriptFlags
Enforce OP_CHECKLOCKTIMEVERIFY (BIP65).
Sourcepub const VERIFY_CHECKSEQUENCEVERIFY: ScriptFlags
pub const VERIFY_CHECKSEQUENCEVERIFY: ScriptFlags
Enforce OP_CHECKSEQUENCEVERIFY (BIP112).
Sourcepub const VERIFY_CLEAN_STACK: ScriptFlags
pub const VERIFY_CLEAN_STACK: ScriptFlags
Require exactly one element on the stack after execution.
Sourcepub const VERIFY_DER_SIGNATURES: ScriptFlags
pub const VERIFY_DER_SIGNATURES: ScriptFlags
Require strict DER encoding for signatures.
Sourcepub const VERIFY_LOW_S: ScriptFlags
pub const VERIFY_LOW_S: ScriptFlags
Require the S value in signatures to be in the lower half of the curve order.
Sourcepub const VERIFY_MINIMAL_DATA: ScriptFlags
pub const VERIFY_MINIMAL_DATA: ScriptFlags
Require minimal encoding for data pushes.
Sourcepub const VERIFY_NULL_FAIL: ScriptFlags
pub const VERIFY_NULL_FAIL: ScriptFlags
Require failed CHECK(MULTI)SIG operations to have empty signatures.
Sourcepub const VERIFY_SIG_PUSH_ONLY: ScriptFlags
pub const VERIFY_SIG_PUSH_ONLY: ScriptFlags
Require the unlocking script to contain only push opcodes.
Sourcepub const ENABLE_SIGHASH_FORKID: ScriptFlags
pub const ENABLE_SIGHASH_FORKID: ScriptFlags
Enable SIGHASH_FORKID replay protection (BSV-specific).
Sourcepub const VERIFY_STRICT_ENCODING: ScriptFlags
pub const VERIFY_STRICT_ENCODING: ScriptFlags
Require strict signature and public key encoding.
Sourcepub const VERIFY_BIP143_SIGHASH: ScriptFlags
pub const VERIFY_BIP143_SIGHASH: ScriptFlags
Use BIP143-style sighash algorithm for signature verification.
Sourcepub const UTXO_AFTER_GENESIS: ScriptFlags
pub const UTXO_AFTER_GENESIS: ScriptFlags
Indicates the UTXO being spent was created after the genesis upgrade.
Sourcepub const VERIFY_MINIMAL_IF: ScriptFlags
pub const VERIFY_MINIMAL_IF: ScriptFlags
Require OP_IF/OP_NOTIF arguments to be exactly empty or 0x01.
Sourcepub fn has_flag(self, flag: ScriptFlags) -> bool
pub fn has_flag(self, flag: ScriptFlags) -> bool
Return true if the given flag is set in this flags value.
Sourcepub fn has_any(self, flags: &[ScriptFlags]) -> bool
pub fn has_any(self, flags: &[ScriptFlags]) -> bool
Return true if any of the given flags are set in this flags value.
Sourcepub fn add_flag(&mut self, flag: ScriptFlags)
pub fn add_flag(&mut self, flag: ScriptFlags)
Set the given flag bits in this flags value.
Trait Implementations§
Source§impl BitAnd for ScriptFlags
impl BitAnd for ScriptFlags
Source§impl BitOr for ScriptFlags
impl BitOr for ScriptFlags
Source§impl BitOrAssign for ScriptFlags
impl BitOrAssign for ScriptFlags
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
|= operation. Read moreSource§impl Clone for ScriptFlags
impl Clone for ScriptFlags
Source§fn clone(&self) -> ScriptFlags
fn clone(&self) -> ScriptFlags
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more