pub enum AddressTarget {
Path {
path: String,
display: bool,
address_format: Option<AddressType>,
},
Descriptor {
index: u32,
change: bool,
display: bool,
descriptor_name: String,
hmac: Option<String>,
wallet_descriptor: Option<WalletPolicy>,
},
}Expand description
An address request from a derivation path or a named wallet policy.
Variants§
Path
An address derived directly from a BIP32 path.
Fields
§
address_format: Option<AddressType>The address encoding, or the backend’s default when absent.
Descriptor
An address derived from a wallet policy at a branch and index.
BitBox02 and Specter require wallet_descriptor. Ledger accepts an HMAC
and policy together or neither; missing required context is then reported
by the backend. Coldcard and Jade resolve the policy by name on-device.
Trezor and KeepKey do not support this named-policy mode.
Fields
§
wallet_descriptor: Option<WalletPolicy>The wallet policy required by BitBox02 and Specter, or paired with a Ledger HMAC.
Trait Implementations§
Source§impl Clone for AddressTarget
impl Clone for AddressTarget
Auto Trait Implementations§
impl !Freeze for AddressTarget
impl RefUnwindSafe for AddressTarget
impl Send for AddressTarget
impl Sync for AddressTarget
impl Unpin for AddressTarget
impl UnsafeUnpin for AddressTarget
impl UnwindSafe for AddressTarget
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