pub struct XkeyOrigin { /* private fields */ }
Implementations§
Source§impl XkeyOrigin
impl XkeyOrigin
pub fn new(master_fp: XpubFp, derivation: DerivationPath<HardenedIndex>) -> Self
pub fn new_master(master_fp: XpubFp) -> Self
pub const fn master_fp(&self) -> XpubFp
pub fn derivation(&self) -> &[HardenedIndex]
pub fn as_derivation(&self) -> &DerivationPath<HardenedIndex>
pub fn to_derivation(&self) -> DerivationPath
pub fn child_derivation<'a>( &'a self, child: &'a KeyOrigin, ) -> Option<&'a [DerivationIndex]>
pub fn is_subset_of(&self, other: &KeyOrigin) -> bool
Trait Implementations§
Source§impl Clone for XkeyOrigin
impl Clone for XkeyOrigin
Source§fn clone(&self) -> XkeyOrigin
fn clone(&self) -> XkeyOrigin
Returns a copy 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 Debug for XkeyOrigin
impl Debug for XkeyOrigin
Source§impl Display for XkeyOrigin
impl Display for XkeyOrigin
Source§impl FromStr for XkeyOrigin
impl FromStr for XkeyOrigin
Source§impl Hash for XkeyOrigin
impl Hash for XkeyOrigin
Source§impl PartialEq for XkeyOrigin
impl PartialEq for XkeyOrigin
impl Eq for XkeyOrigin
impl StructuralPartialEq for XkeyOrigin
Auto Trait Implementations§
impl Freeze for XkeyOrigin
impl RefUnwindSafe for XkeyOrigin
impl Send for XkeyOrigin
impl Sync for XkeyOrigin
impl Unpin for XkeyOrigin
impl UnwindSafe for XkeyOrigin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.