pub struct HDKey(/* private fields */);Expand description
A Secret HD (Hierarchical Deterministic) key
It can turns into a ExtendedEd25519Key by using the .strip_hd() method
Implementations§
Source§impl HDKey
impl HDKey
pub fn from_bip39_entropy(entropy: &[u8], password: &[u8]) -> Self
pub fn bip32_derive(&self, index: Bip32Index) -> Self
pub fn bip32_derive_multiple(&self, indices: &[Bip32Index]) -> Self
pub fn strip_hd(&self) -> Ed25519ExtendedKey
pub fn to_public(&self) -> HDPublicKey
pub fn to_bech32_string(&self, hrp: &str) -> String
pub fn from_bytes(key: &[u8; 96]) -> Self
pub fn to_bytes(&self) -> [u8; 96]
Trait Implementations§
Auto Trait Implementations§
impl Freeze for HDKey
impl RefUnwindSafe for HDKey
impl Send for HDKey
impl Sync for HDKey
impl Unpin for HDKey
impl UnwindSafe for HDKey
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