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: 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
EcdsaSignature(PkOrF)
ECDSA Signature for a raw public key
SchnorrSignature(PkOrF)
Schnorr Signature for a raw public key
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
sourceimpl 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
sourceimpl Clone for SatisfiableItem
impl Clone for SatisfiableItem
sourcefn clone(&self) -> SatisfiableItem
fn clone(&self) -> SatisfiableItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SatisfiableItem
impl Debug for SatisfiableItem
sourceimpl From<SatisfiableItem> for Policy
impl From<SatisfiableItem> for Policy
sourcefn from(other: SatisfiableItem) -> Self
fn from(other: SatisfiableItem) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SatisfiableItem> for SatisfiableItem
impl PartialEq<SatisfiableItem> for SatisfiableItem
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SatisfiableItem) -> bool
fn ne(&self, other: &SatisfiableItem) -> bool
This method tests for !=
.
sourceimpl Serialize for SatisfiableItem
impl Serialize for SatisfiableItem
impl Eq for SatisfiableItem
impl StructuralEq for SatisfiableItem
impl StructuralPartialEq for SatisfiableItem
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more