pub struct VerifyFlags(/* private fields */);Expand description
Verification flags passed to the delegated consensus script engine.
Implementations§
Source§impl VerifyFlags
impl VerifyFlags
Sourcepub const SIGPUSHONLY: Self
pub const SIGPUSHONLY: Self
Require scriptSig push-only form.
Sourcepub const MINIMALDATA: Self
pub const MINIMALDATA: Self
Require minimal push and numeric encodings.
Sourcepub const DISCOURAGE_UPGRADABLE_NOPS: Self
pub const DISCOURAGE_UPGRADABLE_NOPS: Self
Discourage NOPs reserved for future soft forks.
Sourcepub const CLEANSTACK: Self
pub const CLEANSTACK: Self
Require a single true stack item after evaluation.
Sourcepub const CHECKLOCKTIMEVERIFY: Self
pub const CHECKLOCKTIMEVERIFY: Self
Enable OP_CHECKLOCKTIMEVERIFY (BIP65).
Sourcepub const CHECKSEQUENCEVERIFY: Self
pub const CHECKSEQUENCEVERIFY: Self
Enable OP_CHECKSEQUENCEVERIFY (BIP112).
Sourcepub const DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM: Self
pub const DISCOURAGE_UPGRADABLE_WITNESS_PROGRAM: Self
Discourage unknown witness program versions.
Sourcepub const WITNESS_PUBKEYTYPE: Self
pub const WITNESS_PUBKEYTYPE: Self
Require compressed public keys in segwit scripts.
Sourcepub const CONST_SCRIPTCODE: Self
pub const CONST_SCRIPTCODE: Self
Make CODESEPARATOR and FindAndDelete fail non-segwit scripts.
Sourcepub const DISCOURAGE_UPGRADABLE_TAPROOT_VERSION: Self
pub const DISCOURAGE_UPGRADABLE_TAPROOT_VERSION: Self
Discourage unknown taproot leaf versions.
Sourcepub const DISCOURAGE_OP_SUCCESS: Self
pub const DISCOURAGE_OP_SUCCESS: Self
Discourage unknown OP_SUCCESS opcodes.
Sourcepub const DISCOURAGE_UPGRADABLE_PUBKEYTYPE: Self
pub const DISCOURAGE_UPGRADABLE_PUBKEYTYPE: Self
Discourage unknown public-key versions in tapscript.
Sourcepub const MANDATORY: Self
pub const MANDATORY: Self
Mandatory consensus flags used for block validation after taproot activation.
Sourcepub const STANDARD: Self
pub const STANDARD: Self
Standard relay flags; useful for vector tests that request policy checks.
Sourcepub const fn consensus_bits(self) -> u32
pub const fn consensus_bits(self) -> u32
Returns only the bits accepted by rust-bitcoin’s bitcoinconsensus backend.
Sourcepub const fn kernel_bits(self) -> u32
pub const fn kernel_bits(self) -> u32
Returns the full consensus-authority bit set, including taproot for bitcoinkernel.
Sourcepub fn from_core_names(names: &str) -> Result<Self, ScriptError>
pub fn from_core_names(names: &str) -> Result<Self, ScriptError>
Parses a comma-separated Core test-vector flag string.
Trait Implementations§
Source§impl Clone for VerifyFlags
impl Clone for VerifyFlags
Source§fn clone(&self) -> VerifyFlags
fn clone(&self) -> VerifyFlags
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for VerifyFlags
impl Debug for VerifyFlags
Source§impl Default for VerifyFlags
impl Default for VerifyFlags
Source§fn default() -> VerifyFlags
fn default() -> VerifyFlags
Source§impl From<VerifyFlags> for u32
impl From<VerifyFlags> for u32
Source§fn from(flags: VerifyFlags) -> Self
fn from(flags: VerifyFlags) -> Self
Source§impl Hash for VerifyFlags
impl Hash for VerifyFlags
Source§impl PartialEq for VerifyFlags
impl PartialEq for VerifyFlags
Source§fn eq(&self, other: &VerifyFlags) -> bool
fn eq(&self, other: &VerifyFlags) -> bool
self and other values to be equal, and is used by ==.impl Copy for VerifyFlags
impl Eq for VerifyFlags
impl StructuralPartialEq for VerifyFlags
Auto Trait Implementations§
impl Freeze for VerifyFlags
impl RefUnwindSafe for VerifyFlags
impl Send for VerifyFlags
impl Sync for VerifyFlags
impl Unpin for VerifyFlags
impl UnsafeUnpin for VerifyFlags
impl UnwindSafe for VerifyFlags
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more