Trait bdk_wallet::descriptor::ExtractPolicy

source ·
pub trait ExtractPolicy {
    // Required method
    fn extract_policy(
        &self,
        signers: &SignersContainer,
        psbt: BuildSatisfaction<'_>,
        secp: &Secp256k1<All>
    ) -> Result<Option<Policy>, DescriptorError>;
}
Expand description

Trait implemented on Descriptors to add a method to extract the spending policy

Required Methods§

source

fn extract_policy( &self, signers: &SignersContainer, psbt: BuildSatisfaction<'_>, secp: &Secp256k1<All> ) -> Result<Option<Policy>, DescriptorError>

Extract the spending policy

Implementors§