Trait bdk_chain::DescriptorExt

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

A trait to extend the functionality of a miniscript descriptor.

Required Methods§

source

fn dust_value(&self) -> u64

Returns the minimum value (in satoshis) at which an output is broadcastable. Panics if the descriptor wildcard is hardened.

source

fn descriptor_id(&self) -> DescriptorId

Returns the descriptor id, calculated as the sha256 of the descriptor, checksum not included.

Implementations on Foreign Types§

source§

impl DescriptorExt for Descriptor<DescriptorPublicKey>

Implementors§