bdk_wallet::descriptor

Trait 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§