Enum miniscript::miniscript::satisfy::SchnorrSigType
source · pub enum SchnorrSigType {
KeySpend {
merkle_root: Option<TapNodeHash>,
},
ScriptSpend {
leaf_hash: TapLeafHash,
},
}
Expand description
Type of schnorr signature to produce
Variants§
KeySpend
Key spend signature
Fields
§
merkle_root: Option<TapNodeHash>
Merkle root to tweak the key, if present
ScriptSpend
Script spend signature
Fields
§
leaf_hash: TapLeafHash
Leaf hash of the script
Trait Implementations§
source§impl Clone for SchnorrSigType
impl Clone for SchnorrSigType
source§fn clone(&self) -> SchnorrSigType
fn clone(&self) -> SchnorrSigType
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 SchnorrSigType
impl Debug for SchnorrSigType
source§impl Hash for SchnorrSigType
impl Hash for SchnorrSigType
source§impl PartialEq for SchnorrSigType
impl PartialEq for SchnorrSigType
source§fn eq(&self, other: &SchnorrSigType) -> bool
fn eq(&self, other: &SchnorrSigType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for SchnorrSigType
impl StructuralPartialEq for SchnorrSigType
Auto Trait Implementations§
impl Freeze for SchnorrSigType
impl RefUnwindSafe for SchnorrSigType
impl Send for SchnorrSigType
impl Sync for SchnorrSigType
impl Unpin for SchnorrSigType
impl UnwindSafe for SchnorrSigType
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