pub struct HDPublicKey(/* private fields */);Expand description
A Public HD (Hierarchical Deterministic) key
It can turns into a Ed25519PublicKey by using the .strip_hd() method
Implementations§
Source§impl HDPublicKey
impl HDPublicKey
pub fn to_bytes(&self) -> [u8; 64]
pub fn from_bytes(pub_key: [u8; 64]) -> Self
pub fn strip_hd(&self) -> Ed25519PublicKey
pub fn hash(&self) -> Ed25519KeyHash
pub fn bip32_derive(&self, idx: Bip32Index) -> Self
Trait Implementations§
Source§impl Clone for HDPublicKey
impl Clone for HDPublicKey
Source§fn clone(&self) -> HDPublicKey
fn clone(&self) -> HDPublicKey
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 Debug for HDPublicKey
impl Debug for HDPublicKey
Source§impl Decode for HDPublicKey
impl Decode for HDPublicKey
Source§impl Display for HDPublicKey
impl Display for HDPublicKey
Source§impl Hash for HDPublicKey
impl Hash for HDPublicKey
Source§impl PartialEq for HDPublicKey
impl PartialEq for HDPublicKey
impl Eq for HDPublicKey
impl StructuralPartialEq for HDPublicKey
Auto Trait Implementations§
impl Freeze for HDPublicKey
impl RefUnwindSafe for HDPublicKey
impl Send for HDPublicKey
impl Sync for HDPublicKey
impl Unpin for HDPublicKey
impl UnwindSafe for HDPublicKey
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