pub struct ExtendedPrivateKey<C: Curve>(/* private fields */);Implementations§
Source§impl<C: Curve> ExtendedPrivateKey<C>
impl<C: Curve> ExtendedPrivateKey<C>
pub fn new( private_key: C::PrivateKey, chain_code: [u8; 32], child_index: ChildIndex, depth: u8, ) -> Option<Self>
pub fn from_seed(seed: &[u8]) -> Option<Self>
pub fn from_mnemonic(mnemonic: &Mnemonic, password: &str) -> Option<Self>
pub fn extend_public_key(&self) -> ExtendedPublicKey<C>
pub fn private_key_extension(&self) -> [u8; 32]
pub fn derive_next(&mut self, index: ChildIndex)
pub fn derive(&mut self, path: &DerivationPath)
pub fn private_key(&self) -> C::PrivateKey
pub fn sign<H: HashingAlgorithm, D: AsRef<[u8]>>( &self, data: D, is_canonical: Option<IsCanonicalFn>, ) -> Option<RecoverableSignature<C>>
pub fn sign_digest( &self, digest: &Digest, is_canonical: Option<IsCanonicalFn>, ) -> Option<RecoverableSignature<C>>
Source§impl<C> ExtendedPrivateKey<C>
impl<C> ExtendedPrivateKey<C>
pub fn private_key_ext(&self) -> Ed25519PrivateKey
pub fn public_key_ext(&self) -> Ed25519PublicKey
pub fn sign_ext<D: AsRef<[u8]>>(&self, data: D) -> Signature<Ed25519>
Methods from Deref<Target = HDNode<C>>§
pub fn depth(&self) -> u8
pub fn child_index(&self) -> ChildIndex
pub fn chain_code(&self) -> [u8; 32]
pub fn public_key(&self) -> C::PublicKey
pub fn fingerprint(&self) -> u32
Trait Implementations§
Source§impl<C: Curve> Clone for ExtendedPrivateKey<C>
impl<C: Curve> Clone for ExtendedPrivateKey<C>
Source§impl<C> Debug for ExtendedPrivateKey<C>where
C: Curve,
impl<C> Debug for ExtendedPrivateKey<C>where
C: Curve,
Source§impl<C: Curve> DerefMut for ExtendedPrivateKey<C>
impl<C: Curve> DerefMut for ExtendedPrivateKey<C>
Auto Trait Implementations§
impl<C> Freeze for ExtendedPrivateKey<C>
impl<C> RefUnwindSafe for ExtendedPrivateKey<C>where
C: RefUnwindSafe,
impl<C> !Send for ExtendedPrivateKey<C>
impl<C> !Sync for ExtendedPrivateKey<C>
impl<C> Unpin for ExtendedPrivateKey<C>where
C: Unpin,
impl<C> UnwindSafe for ExtendedPrivateKey<C>where
C: UnwindSafe,
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