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

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

Create a new extended secret key from a seed

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

Derive a child extended secret key with an index

Get the associated public key

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.