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§
Sourcefn dust_value(&self) -> Amount
fn dust_value(&self) -> Amount
Returns the minimum Amount
at which an output is broadcast-able.
Panics if the descriptor wildcard is hardened.
Sourcefn descriptor_id(&self) -> DescriptorId
fn descriptor_id(&self) -> DescriptorId
Returns the descriptor ID, calculated as the sha256 hash of the spk derived from the descriptor at index 0.