pub struct KeypathRef<'a> {
pub components: PathComponents<'a>,
pub source_fingerprint: Option<NonZeroU32>,
pub depth: Option<u8>,
}Expand description
Metadata for the complete or partial derivation path of a key (non-owned, zero copy).
Fields§
§components: PathComponents<'a>Path component.
source_fingerprint: Option<NonZeroU32>Fingerprint from the ancestor key.
depth: Option<u8>How many derivations this key is from the master (which is 0).
Implementations§
Source§impl<'a> KeypathRef<'a>
impl<'a> KeypathRef<'a>
Sourcepub fn new_master(source_fingerprint: NonZeroU32) -> Self
pub fn new_master(source_fingerprint: NonZeroU32) -> Self
Create a new key path for a master extended public key.
The source_fingerprint parameter is the fingerprint of the master key.
Trait Implementations§
Source§impl<'a> Clone for KeypathRef<'a>
impl<'a> Clone for KeypathRef<'a>
Source§fn clone(&self) -> KeypathRef<'a>
fn clone(&self) -> KeypathRef<'a>
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<'a> Debug for KeypathRef<'a>
impl<'a> Debug for KeypathRef<'a>
Source§impl<'b, C> Decode<'b, C> for KeypathRef<'b>
impl<'b, C> Decode<'b, C> for KeypathRef<'b>
Source§impl<'a, C> Encode<C> for KeypathRef<'a>
impl<'a, C> Encode<C> for KeypathRef<'a>
Source§impl<'a> From<&'a DerivationPath> for KeypathRef<'a>
Available on crate feature bitcoin only.
impl<'a> From<&'a DerivationPath> for KeypathRef<'a>
Available on crate feature
bitcoin only.Source§fn from(derivation_path: &'a DerivationPath) -> Self
fn from(derivation_path: &'a DerivationPath) -> Self
Converts to this type from the input type.
Source§impl<'a> From<KeypathRef<'a>> for Keypath
Available on crate feature alloc only.
impl<'a> From<KeypathRef<'a>> for Keypath
Available on crate feature
alloc only.Source§fn from(keypath: KeypathRef<'a>) -> Self
fn from(keypath: KeypathRef<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> PartialEq for KeypathRef<'a>
impl<'a> PartialEq for KeypathRef<'a>
impl<'a> StructuralPartialEq for KeypathRef<'a>
Auto Trait Implementations§
impl<'a> Freeze for KeypathRef<'a>
impl<'a> RefUnwindSafe for KeypathRef<'a>
impl<'a> Send for KeypathRef<'a>
impl<'a> Sync for KeypathRef<'a>
impl<'a> Unpin for KeypathRef<'a>
impl<'a> UnwindSafe for KeypathRef<'a>
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