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

Show fields

Fields of Sha256Preimage

hash: Hash

The digest value

Hash256Preimage

Double SHA256 preimage hash

Show fields

Fields of Hash256Preimage

hash: Hash

The digest value

Ripemd160Preimage

RIPEMD160 preimage hash

Show fields

Fields of Ripemd160Preimage

hash: Hash

The digest value

Hash160Preimage

SHA256 then RIPEMD160 preimage hash

Show fields

Fields of Hash160Preimage

hash: Hash

The digest value

AbsoluteTimelock

Absolute timeclock timestamp

Show fields

Fields of AbsoluteTimelock

value: u32

The timestamp value

RelativeTimelock

Relative timelock locktime

Show fields

Fields of RelativeTimelock

value: u32

The locktime value

Multisig

Multi-signature public keys with threshold count

Show fields

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

Show fields

Fields of Thresh

items: Vec<Policy>

The policy items

threshold: usize

The required threshold count

Implementations

Returns whether the SatisfiableItem is a leaf item

Returns a unique id for the SatisfiableItem

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Performs the conversion.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.