bdk_chain

Trait DescriptorExt

Source
pub trait DescriptorExt {
    // Required methods
    fn dust_value(&self) -> Amount;
    fn descriptor_id(&self) -> DescriptorId;
}
Expand description

A trait to extend the functionality of a miniscript descriptor.

Required Methods§

Source

fn dust_value(&self) -> Amount

Returns the minimum Amount at which an output is broadcast-able. Panics if the descriptor wildcard is hardened.

Source

fn descriptor_id(&self) -> DescriptorId

Returns the descriptor ID, calculated as the sha256 hash of the spk derived from the descriptor at index 0.

Implementations on Foreign Types§

Source§

impl DescriptorExt for Descriptor<DescriptorPublicKey>

Implementors§