Enum bdk::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: Sequence,
},
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
Fields
§
hash: Hash
The digest value
SHA256 preimage hash
Hash256Preimage
Fields
§
hash: Hash
The digest value
Double SHA256 preimage hash
Ripemd160Preimage
Fields
§
hash: Hash
The digest value
RIPEMD160 preimage hash
Hash160Preimage
Fields
§
hash: Hash
The digest value
SHA256 then RIPEMD160 preimage hash
AbsoluteTimelock
Fields
§
value: LockTime
The timelock value
Absolute timeclock timestamp
RelativeTimelock
Fields
§
value: Sequence
The timelock value
Relative timelock locktime
Multisig
Fields
Multi-signature public keys with threshold count
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.