pub trait AsDerived {
fn as_derived<'s>(
&self,
index: u32,
secp: &'s Secp256k1<All>
) -> Descriptor<DerivedDescriptorKey<'s>>;
fn as_derived_fixed<'s>(
&self,
secp: &'s Secp256k1<All>
) -> Descriptor<DerivedDescriptorKey<'s>>;
}
Expand description
Utilities to derive descriptors
Check out the module level documentation for more.
Required Methods
fn as_derived<'s>(
&self,
index: u32,
secp: &'s Secp256k1<All>
) -> Descriptor<DerivedDescriptorKey<'s>>
fn as_derived<'s>(
&self,
index: u32,
secp: &'s Secp256k1<All>
) -> Descriptor<DerivedDescriptorKey<'s>>
Derive a descriptor and transform all of its keys to DerivedDescriptorKey
fn as_derived_fixed<'s>(
&self,
secp: &'s Secp256k1<All>
) -> Descriptor<DerivedDescriptorKey<'s>>
fn as_derived_fixed<'s>(
&self,
secp: &'s Secp256k1<All>
) -> Descriptor<DerivedDescriptorKey<'s>>
Transform the keys into DerivedDescriptorKey
.
Panics if the descriptor is not “fixed”, i.e. if it’s derivable