Type Alias bdk_wallet::descriptor::ExtendedDescriptor
source · pub type ExtendedDescriptor = Descriptor<DescriptorPublicKey>;
Expand description
Alias for a Descriptor
that can contain extended keys using DescriptorPublicKey
Aliased Type§
enum ExtendedDescriptor {
Bare(Bare<DescriptorPublicKey>),
Pkh(Pkh<DescriptorPublicKey>),
Wpkh(Wpkh<DescriptorPublicKey>),
Sh(Sh<DescriptorPublicKey>),
Wsh(Wsh<DescriptorPublicKey>),
Tr(Tr<DescriptorPublicKey>),
}
Variants§
Bare(Bare<DescriptorPublicKey>)
A raw scriptpubkey (including pay-to-pubkey) under Legacy context
Pkh(Pkh<DescriptorPublicKey>)
Pay-to-PubKey-Hash
Wpkh(Wpkh<DescriptorPublicKey>)
Pay-to-Witness-PubKey-Hash
Sh(Sh<DescriptorPublicKey>)
Pay-to-ScriptHash(includes nested wsh/wpkh/sorted multi)
Wsh(Wsh<DescriptorPublicKey>)
Pay-to-Witness-ScriptHash with Segwitv0 context
Tr(Tr<DescriptorPublicKey>)
Pay-to-Taproot
Trait Implementations§
source§impl IntoWalletDescriptor for ExtendedDescriptor
impl IntoWalletDescriptor for ExtendedDescriptor
source§fn into_wallet_descriptor(
self,
secp: &Secp256k1<All>,
network: Network
) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>
fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>
Convert to wallet descriptor