pub enum ScriptType {
P2PKH = 0,
P2SH = 1,
P2shP2wpkh = 2,
P2WPKH = 3,
P2WSH = 4,
P2TR = 5,
Multisig = 10,
OpReturn = 11,
Unknown = 12,
Mixed = 7,
}Expand description
Bitcoin script types recognized by the heuristic engine.
Variants§
P2PKH = 0
Pay-to-Public-Key-Hash
P2SH = 1
Pay-to-Script-Hash
P2shP2wpkh = 2
P2WPKH = 3
Pay-to-Witness-Public-Key-Hash (SegWit v0, 20-byte program)
P2WSH = 4
Pay-to-Witness-Script-Hash (SegWit v0, 32-byte program)
P2TR = 5
Pay-to-Taproot (SegWit v1, 32-byte program)
Multisig = 10
Bare multisig
OpReturn = 11
OP_RETURN data carrier output (unspendable)
Unknown = 12
Script not recognized
Mixed = 7
Multiple types in the same transaction
Implementations§
Trait Implementations§
Source§impl Clone for ScriptType
impl Clone for ScriptType
Source§fn clone(&self) -> ScriptType
fn clone(&self) -> ScriptType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ScriptType
Source§impl Debug for ScriptType
impl Debug for ScriptType
Source§impl Default for ScriptType
impl Default for ScriptType
Source§fn default() -> ScriptType
fn default() -> ScriptType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScriptType
impl<'de> Deserialize<'de> for ScriptType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ScriptType
Source§impl PartialEq for ScriptType
impl PartialEq for ScriptType
Source§fn eq(&self, other: &ScriptType) -> bool
fn eq(&self, other: &ScriptType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ScriptType
impl Serialize for ScriptType
impl StructuralPartialEq for ScriptType
Auto Trait Implementations§
impl Freeze for ScriptType
impl RefUnwindSafe for ScriptType
impl Send for ScriptType
impl Sync for ScriptType
impl Unpin for ScriptType
impl UnsafeUnpin for ScriptType
impl UnwindSafe for ScriptType
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
Mutably borrows from an owned value. Read more