Trait bdk_wallet::descriptor::IntoWalletDescriptor

source ·
pub trait IntoWalletDescriptor {
    // Required method
    fn into_wallet_descriptor(
        self,
        secp: &Secp256k1<All>,
        network: Network
    ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>;
}
Expand description

Trait for types which can be converted into an ExtendedDescriptor and a KeyMap usable by a wallet in a specific [Network]

Required Methods§

source

fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>

Convert to wallet descriptor

Implementations on Foreign Types§

source§

impl IntoWalletDescriptor for &str

source§

fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>

source§

impl IntoWalletDescriptor for &String

source§

fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>

source§

impl IntoWalletDescriptor for (ExtendedDescriptor, KeyMap)

source§

fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>

source§

impl IntoWalletDescriptor for String

source§

fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>

Implementors§