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§
Sourcefn 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
Implementations on Foreign Types§
Source§impl IntoWalletDescriptor for &str
impl IntoWalletDescriptor for &str
fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network, ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>
Source§impl IntoWalletDescriptor for &String
impl IntoWalletDescriptor for &String
fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network, ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>
Source§impl IntoWalletDescriptor for (ExtendedDescriptor, KeyMap)
impl IntoWalletDescriptor for (ExtendedDescriptor, KeyMap)
fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network, ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>
Source§impl IntoWalletDescriptor for String
impl IntoWalletDescriptor for String
fn into_wallet_descriptor( self, secp: &Secp256k1<All>, network: Network, ) -> Result<(ExtendedDescriptor, KeyMap), DescriptorError>
Implementors§
impl IntoWalletDescriptor for DescriptorTemplateOut
impl IntoWalletDescriptor for ExtendedDescriptor
impl<T: DescriptorTemplate> IntoWalletDescriptor for T
Turns a DescriptorTemplate
into a valid wallet descriptor by calling its
build
method