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 Descriptor
s to add a method to extract the spending policy
Required Methods§
sourcefn extract_policy(
&self,
signers: &SignersContainer,
psbt: BuildSatisfaction<'_>,
secp: &Secp256k1<All>
) -> Result<Option<Policy>, DescriptorError>
fn extract_policy( &self, signers: &SignersContainer, psbt: BuildSatisfaction<'_>, secp: &Secp256k1<All> ) -> Result<Option<Policy>, DescriptorError>
Extract the spending policy