pub struct KeyOrigin {
pub fingerprint: [u8; 4],
pub path: DerivationPath,
}Expand description
Key origin information [fingerprint/path]
Fields§
§fingerprint: [u8; 4]Master key fingerprint (4 bytes)
path: DerivationPathDerivation path from master
Implementations§
Source§impl KeyOrigin
impl KeyOrigin
Sourcepub fn new(fingerprint: [u8; 4], path: DerivationPath) -> Self
pub fn new(fingerprint: [u8; 4], path: DerivationPath) -> Self
Create a new key origin
Sourcepub fn from_str_inner(s: &str) -> Result<Self, DescriptorError>
pub fn from_str_inner(s: &str) -> Result<Self, DescriptorError>
Parse from string like “fingerprint/path”
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyOrigin
impl RefUnwindSafe for KeyOrigin
impl Send for KeyOrigin
impl Sync for KeyOrigin
impl Unpin for KeyOrigin
impl UnwindSafe for KeyOrigin
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