pub enum WalletKind {
Seed {
master_xprv: Xpriv,
},
Hardware {
fingerprint: [u8; 4],
taproot_external: String,
payment_external: Option<String>,
},
WatchAddress(Address),
}Expand description
Represents the cryptographic identity of the wallet.
Variants§
Seed
Full signing capability with master private key.
Hardware
Hardware/watch-only wallet constructed from public descriptors.
Fields
WatchAddress(Address)
Read-only capability bound to a single tracked address.
Implementations§
Source§impl WalletKind
impl WalletKind
Sourcepub fn derive_descriptors(
&self,
scheme: AddressScheme,
payment_type: PaymentAddressType,
network: Network,
account: u32,
) -> (String, String, Option<String>, Option<String>)
pub fn derive_descriptors( &self, scheme: AddressScheme, payment_type: PaymentAddressType, network: Network, account: u32, ) -> (String, String, Option<String>, Option<String>)
Derive external and internal descriptor strings for the vault and optional payment keychains. Returns (vault_external, vault_internal, payment_external, payment_internal).
Trait Implementations§
Source§impl Clone for WalletKind
impl Clone for WalletKind
Source§fn clone(&self) -> WalletKind
fn clone(&self) -> WalletKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for WalletKind
impl RefUnwindSafe for WalletKind
impl Send for WalletKind
impl Sync for WalletKind
impl Unpin for WalletKind
impl UnsafeUnpin for WalletKind
impl UnwindSafe for WalletKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more