Enum bdk::descriptor::policy::SatisfiableItem
source · [−]pub enum SatisfiableItem {
Signature(PkOrF),
SignatureKey(PkOrF),
Sha256Preimage {
hash: Hash,
},
Hash256Preimage {
hash: Hash,
},
Ripemd160Preimage {
hash: Hash,
},
Hash160Preimage {
hash: Hash,
},
AbsoluteTimelock {
value: u32,
},
RelativeTimelock {
value: u32,
},
Multisig {
keys: Vec<PkOrF>,
threshold: usize,
},
Thresh {
items: Vec<Policy>,
threshold: usize,
},
}
Expand description
An item that needs to be satisfied
Variants
Signature(PkOrF)
Signature for a raw public key
SignatureKey(PkOrF)
Signature for an extended key fingerprint
Sha256Preimage
SHA256 preimage hash
Hash256Preimage
Double SHA256 preimage hash
Ripemd160Preimage
RIPEMD160 preimage hash
Hash160Preimage
SHA256 then RIPEMD160 preimage hash
AbsoluteTimelock
Fields
value: u32
The timestamp value
Absolute timeclock timestamp
RelativeTimelock
Fields
value: u32
The locktime value
Relative timelock locktime
Multisig
Fields
threshold: usize
The required threshold count
Multi-signature public keys with threshold count
Thresh
Threshold items with threshold count
Implementations
Returns whether the SatisfiableItem
is a leaf item
Returns a unique id for the SatisfiableItem
Trait Implementations
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for SatisfiableItem
impl Send for SatisfiableItem
impl Sync for SatisfiableItem
impl Unpin for SatisfiableItem
impl UnwindSafe for SatisfiableItem
Blanket Implementations
Mutably borrows from an owned value. Read more