pub struct DescriptorExport {
pub descriptor: String,
pub checksum: String,
pub fingerprint: String,
pub network: Network,
}Fields§
§descriptor: String§checksum: String§fingerprint: String§network: NetworkImplementations§
Source§impl DescriptorExport
impl DescriptorExport
pub fn from_derivation( derivation: &AddressDerivation, account: u32, ) -> Result<Self>
pub fn from_frost_wallet( group_pubkey: &[u8; 32], recovery: Option<&RecoveryConfig>, network: Network, ) -> Result<Self>
pub fn pubkey_fingerprint(pubkey: &[u8; 32]) -> String
Sourcepub fn frost_group_xpub(
group_pubkey: &[u8; 32],
network: Network,
) -> Result<String>
pub fn frost_group_xpub( group_pubkey: &[u8; 32], network: Network, ) -> Result<String>
Return the raw Base58Check-encoded xpub string that
Self::from_frost_wallet wraps into its BIP-86 descriptor. Exposed
so callers exporting to other wallets (Sparrow, Electrum, BDK) can
hand off just the xpub without also parsing back the wrapping
descriptor.
pub fn external_descriptor(&self) -> &str
pub fn internal_descriptor(&self) -> Result<String>
pub fn is_single_chain(&self) -> bool
pub fn multipath_descriptor(&self) -> Result<String>
pub fn to_sparrow_json(&self, name: &str) -> Result<String>
Auto Trait Implementations§
impl Forget for DescriptorExport
impl Freeze for DescriptorExport
impl Move for DescriptorExport
impl RefUnwindSafe for DescriptorExport
impl Send for DescriptorExport
impl Sync for DescriptorExport
impl Unpin for DescriptorExport
impl UnsafeUnpin for DescriptorExport
impl UnwindSafe for DescriptorExport
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