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

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,
    },
}

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

Fields of Sha256Preimage

hash: Hash

The digest value

Hash256Preimage

Double SHA256 preimage hash

Fields of Hash256Preimage

hash: Hash

The digest value

Ripemd160Preimage

RIPEMD160 preimage hash

Fields of Ripemd160Preimage

hash: Hash

The digest value

Hash160Preimage

SHA256 then RIPEMD160 preimage hash

Fields of Hash160Preimage

hash: Hash

The digest value

AbsoluteTimelock

Absolute timeclock timestamp

Fields of AbsoluteTimelock

value: u32

The timestamp value

RelativeTimelock

Relative timelock locktime

Fields of RelativeTimelock

value: u32

The locktime value

Multisig

Multi-signature public keys with threshold count

Fields of Multisig

keys: Vec<PkOrF>

The raw public key or extended key fingerprint

threshold: usize

The required threshold count

Thresh

Threshold items with threshold count

Fields of Thresh

items: Vec<Policy>

The policy items

threshold: usize

The required threshold count

Implementations

impl SatisfiableItem[src]

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

Returns whether the SatisfiableItem is a leaf item

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

Returns a unique id for the SatisfiableItem

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

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> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Same<T> for T

type Output = T

Should always be Self

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>,