bdk_wallet::descriptor

Trait 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§