pub enum SatisfiableItem {
EcdsaSignature(PkOrF),
SchnorrSignature(PkOrF),
Sha256Preimage {
hash: Hash,
},
Hash256Preimage {
hash: Hash,
},
Ripemd160Preimage {
hash: Hash,
},
Hash160Preimage {
hash: Hash,
},
AbsoluteTimelock {
value: LockTime,
},
RelativeTimelock {
value: LockTime,
},
Multisig {
keys: Vec<PkOrF>,
threshold: usize,
},
Thresh {
items: Vec<Policy>,
threshold: usize,
},
}
Expand description
An item that needs to be satisfied
Variants§
EcdsaSignature(PkOrF)
ECDSA Signature for a raw public key
SchnorrSignature(PkOrF)
Schnorr Signature for a raw public key
Sha256Preimage
SHA256 preimage hash
Fields
§
hash: Hash
The digest value
Hash256Preimage
Double SHA256 preimage hash
Fields
§
hash: Hash
The digest value
Ripemd160Preimage
RIPEMD160 preimage hash
Fields
§
hash: Hash
The digest value
Hash160Preimage
SHA256 then RIPEMD160 preimage hash
Fields
§
hash: Hash
The digest value
AbsoluteTimelock
Absolute timeclock timestamp
Fields
§
value: LockTime
The timelock value
RelativeTimelock
Relative timelock locktime
Fields
§
value: LockTime
The timelock value
Multisig
Multi-signature public keys with threshold count
Fields
Thresh
Threshold items with threshold count
Implementations§
Source§impl SatisfiableItem
impl SatisfiableItem
Sourcepub fn is_leaf(&self) -> bool
pub fn is_leaf(&self) -> bool
Returns whether the SatisfiableItem
is a leaf item
Sourcepub fn id(&self) -> String
pub fn id(&self) -> String
Returns a unique id for the SatisfiableItem
Trait Implementations§
Source§impl Clone for SatisfiableItem
impl Clone for SatisfiableItem
Source§fn clone(&self) -> SatisfiableItem
fn clone(&self) -> SatisfiableItem
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 SatisfiableItem
impl Debug for SatisfiableItem
Source§impl From<SatisfiableItem> for Policy
impl From<SatisfiableItem> for Policy
Source§fn from(other: SatisfiableItem) -> Self
fn from(other: SatisfiableItem) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SatisfiableItem
impl PartialEq for SatisfiableItem
Source§impl Serialize for SatisfiableItem
impl Serialize for SatisfiableItem
impl Eq for SatisfiableItem
impl StructuralPartialEq for SatisfiableItem
Auto Trait Implementations§
impl Freeze for SatisfiableItem
impl RefUnwindSafe for SatisfiableItem
impl Send for SatisfiableItem
impl Sync for SatisfiableItem
impl Unpin for SatisfiableItem
impl UnwindSafe for SatisfiableItem
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more