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