[][src]Struct ed25519_dalek_bip32::ExtendedSecretKey

pub struct ExtendedSecretKey {
    pub depth: u8,
    pub child_index: ChildIndex,
    pub secret_key: SecretKey,
    pub chain_code: [u8; 32],
}

An expanded secret key with chain code and meta data

Fields

depth: u8

How many derivations this key is from the root (0 for root)

child_index: ChildIndex

Child index of the key used to derive from parent (Normal(0) for root)

secret_key: SecretKey

Secret Key

chain_code: [u8; 32]

Chain code

Implementations

impl ExtendedSecretKey[src]

pub fn from_seed(seed: &[u8]) -> Result<Self>[src]

Create a new extended secret key from a seed

pub fn derive<P: AsRef<[ChildIndex]>>(&self, path: &P) -> Result<Self>[src]

Derive an extended secret key fom the current using a derivation path

pub fn derive_child(&self, index: ChildIndex) -> Result<Self>[src]

Derive a child extended secret key with an index

pub fn public_key(&self) -> PublicKey[src]

Get the associated public key

Trait Implementations

impl Debug for ExtendedSecretKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,