[][src]Enum bdk::descriptor::policy::SatisfiableItem

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,
    },
    Thresh {
        items: Vec<Policy>,
        threshold: usize,
    },
    Multisig {
        keys: Vec<PKOrF>,
        threshold: usize,
    },
}

An item that need to be satisfied

Variants

Signature(PKOrF)
SignatureKey(PKOrF)
SHA256Preimage

Fields of SHA256Preimage

hash: Hash
HASH256Preimage

Fields of HASH256Preimage

hash: Hash
RIPEMD160Preimage

Fields of RIPEMD160Preimage

hash: Hash
HASH160Preimage

Fields of HASH160Preimage

hash: Hash
AbsoluteTimelock

Fields of AbsoluteTimelock

value: u32
RelativeTimelock

Fields of RelativeTimelock

value: u32
Thresh

Fields of Thresh

items: Vec<Policy>threshold: usize
Multisig

Fields of Multisig

keys: Vec<PKOrF>threshold: usize

Implementations

impl SatisfiableItem[src]

pub fn is_leaf(&self) -> bool[src]

pub fn id(&self) -> String[src]

Trait Implementations

impl Clone for SatisfiableItem[src]

impl Debug for SatisfiableItem[src]

impl From<SatisfiableItem> for Policy[src]

impl Serialize for SatisfiableItem[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,