CExtKey

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

NameDescription
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

NameDescription
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

NameDescription
operator==Compare two extended keys for equality of all fields.

Non-Member Functions

NameDescription
DecodeExtKeyDecode a Base58Check-encoded extended private key.
DeriveExtKeyGet extended key and origin info for a given path
EncodeExtKeyEncode an extended private key in Base58Check format.