Trait bdk::descriptor::IntoWalletDescriptor[][src]

pub trait IntoWalletDescriptor {
    fn into_wallet_descriptor(
        self,
        secp: &Secp256k1<All>,
        network: Network
    ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>; }

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

Required methods

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

Convert to wallet descriptor

Loading content...

Implementations on Foreign Types

impl IntoWalletDescriptor for &str[src]

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

impl IntoWalletDescriptor for &String[src]

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

impl IntoWalletDescriptor for (ExtendedDescriptor, KeyMap)[src]

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

Loading content...

Implementors

impl IntoWalletDescriptor for DescriptorTemplateOut[src]

fn into_wallet_descriptor(
    self,
    _secp: &Secp256k1<All>,
    network: Network
) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>
[src]

impl IntoWalletDescriptor for ExtendedDescriptor[src]

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

impl<T: DescriptorTemplate> IntoWalletDescriptor for T[src]

Turns a DescriptorTemplate into a valid wallet descriptor by calling its build method

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

Loading content...