pub struct KeySource {
pub fingerprint: [u8; 4],
pub path: Vec<u32>,
}Expand description
Key source information (master fingerprint + derivation path)
Fields§
§fingerprint: [u8; 4]Master key fingerprint (first 4 bytes of hash160 of master pubkey)
path: Vec<u32>BIP32 derivation path
Implementations§
Source§impl KeySource
impl KeySource
Sourcepub fn from_bytes(bytes: &[u8]) -> Option<Self>
pub fn from_bytes(bytes: &[u8]) -> Option<Self>
Parse from bytes
Sourcepub fn path_string(&self) -> String
pub fn path_string(&self) -> String
Format path as string (e.g., “m/84’/0’/0’/0/0”)
Trait Implementations§
impl Eq for KeySource
impl StructuralPartialEq for KeySource
Auto Trait Implementations§
impl Freeze for KeySource
impl RefUnwindSafe for KeySource
impl Send for KeySource
impl Sync for KeySource
impl Unpin for KeySource
impl UnwindSafe for KeySource
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