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

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