Enum bdk_wallet::descriptor::policy::SatisfiableItem
source · 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§fn eq(&self, other: &SatisfiableItem) -> bool
fn eq(&self, other: &SatisfiableItem) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.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
§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