A BIP32 extended private key: a private key plus the chain code and metadata needed for derivation.

Synopsis

Declared in <key.h>

struct CExtKey;

Member Functions

Name

Description

CExtKey [constructor]

Constructors

Decode

Deserialize this extended key from the BIP32 byte encoding.

Derive

Derive a BIP32 child extended key.

Encode

Serialize this extended key into the BIP32 byte encoding.

Neuter

Derive the extended public key corresponding to this extended private key.

SetSeed

Initialize this extended key as a master key from a seed.

id_key_fingerprint

Compute the fingerprint of this key's own public key.

Data Members

Name

Description

chaincode

Chain code accompanying the private key.

fingerprint

Fingerprint of the parent key.

key

The extended private key material.

nChild

Child index used to derive this key from its parent.

nDepth

Depth of this key in the BIP32 derivation tree.

Friends

Name

Description

operator==

Compare two extended keys for equality of all fields.

Non-Member Functions

Name

Description

DecodeExtKey

Decode a Base58Check‐encoded extended private key.

DeriveExtKey

Get extended key and origin info for a given path

EncodeExtKey

Encode an extended private key in Base58Check format.

Created with MrDocs