#[non_exhaustive]pub struct DerivedAccount {
pub path: String,
pub private_key: Zeroizing<String>,
pub public_key: String,
pub address: String,
}Expand description
A derived account from any chain.
Contains the derivation path, key material, and on-chain address. The private key is zeroized on drop.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringBIP-32/SLIP-10 derivation path used (e.g. m/44'/60'/0'/0/0).
private_key: Zeroizing<String>Private key in hex (zeroized on drop).
public_key: StringPublic key in hex.
address: StringOn-chain address in the chain’s native format.
Implementations§
Trait Implementations§
Source§impl Clone for DerivedAccount
impl Clone for DerivedAccount
Source§fn clone(&self) -> DerivedAccount
fn clone(&self) -> DerivedAccount
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 moreAuto Trait Implementations§
impl Freeze for DerivedAccount
impl RefUnwindSafe for DerivedAccount
impl Send for DerivedAccount
impl Sync for DerivedAccount
impl Unpin for DerivedAccount
impl UnsafeUnpin for DerivedAccount
impl UnwindSafe for DerivedAccount
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