pub struct OnchainDescriptors {
pub multipath_descriptor: String,
pub external_descriptor: String,
pub internal_descriptor: String,
pub account_xpub: Xpub,
}Expand description
BIP84 wpkh output descriptors for the on-chain wallet.
Descriptor strings include origin info and checksum. Example: “wpkh([be83839f/84’/0’/0’]xpub6DCQ1YcqvZtSwGWMrwHELPehjWV3f2MGZ69yBADTxFEUAoLwb5Mp5GniQK6tTp3AgbngVz9zEFbBJUPVnkG7LFYt8QMTfbrNqs6FNEwAPKA/0/*)#dwvchw0k”
These are copy-pasteable into other wallets like Sparrow.
Fields§
§multipath_descriptor: StringBIP389 multipath descriptor for both keychains:
wpkh([fp/84'/0'/0']xpub.../<0;1>/*)#checksum
external_descriptor: StringExternal (receive) keychain descriptor.
internal_descriptor: StringInternal (change) keychain descriptor.
account_xpub: XpubAccount-level xpub at m/84'/{coin}'/0' for legacy tools.
Trait Implementations§
Source§impl Clone for OnchainDescriptors
impl Clone for OnchainDescriptors
Source§fn clone(&self) -> OnchainDescriptors
fn clone(&self) -> OnchainDescriptors
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OnchainDescriptors
impl Debug for OnchainDescriptors
Source§impl<'de> Deserialize<'de> for OnchainDescriptors
impl<'de> Deserialize<'de> for OnchainDescriptors
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OnchainDescriptors, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OnchainDescriptors, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for OnchainDescriptors
impl Serialize for OnchainDescriptors
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for OnchainDescriptors
impl RefUnwindSafe for OnchainDescriptors
impl Send for OnchainDescriptors
impl Sync for OnchainDescriptors
impl Unpin for OnchainDescriptors
impl UnsafeUnpin for OnchainDescriptors
impl UnwindSafe for OnchainDescriptors
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