Enum subcoin_script::SigVersion
source · pub enum SigVersion {
Base,
WitnessV0,
Taproot,
Tapscript,
}
Expand description
Represents different signature verification schemes used in Bitcoin
https://github.com/bitcoin/bitcoin/blob/6f9db1ebcab4064065ccd787161bf2b87e03cc1f/src/script/interpreter.h#L190
Variants§
Base
Bare scripts and BIP16 P2SH-wrapped redeemscripts
WitnessV0
Witness v0 (P2WPKH and P2WSH); see BIP 141
Taproot
Witness v1 with 32-byte program, not BIP16 P2SH-wrapped, key path spending; see BIP 341
Tapscript
Witness v1 with 32-byte program, not BIP16 P2SH-wrapped, script path spending, leaf version 0xc0; see BIP 342
Trait Implementations§
source§impl Clone for SigVersion
impl Clone for SigVersion
source§fn clone(&self) -> SigVersion
fn clone(&self) -> SigVersion
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SigVersion
impl Debug for SigVersion
source§impl PartialEq for SigVersion
impl PartialEq for SigVersion
impl Copy for SigVersion
impl Eq for SigVersion
impl StructuralPartialEq for SigVersion
Auto Trait Implementations§
impl Freeze for SigVersion
impl RefUnwindSafe for SigVersion
impl Send for SigVersion
impl Sync for SigVersion
impl Unpin for SigVersion
impl UnwindSafe for SigVersion
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)