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

Synopsis

Declared in <pubkey.h>

struct CExtPubKey;

Member Functions

Name

Description

Decode

Deserialize this extended public key from the BIP32 byte encoding (without version).

DecodeWithVersion

Deserialize this extended public key from the BIP32 byte encoding including the version prefix.

Derive

Derive a BIP32 child extended public key.

Encode

Serialize this extended public key into the BIP32 byte encoding (without version).

EncodeWithVersion

Serialize this extended public key into the BIP32 byte encoding including the version prefix.

id_key_fingerprint

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

Data Members

Name

Description

chaincode

Chain code accompanying the public key.

fingerprint

Fingerprint of the parent key.

nChild

Child index used to derive this key from its parent.

nDepth

Depth of this key in the BIP32 derivation tree.

pubkey

The extended public key material.

version

Version bytes prefixed to the serialized extended key.

Friends

Name

Description

operator<

Order two extended public keys by public key, then by chain code.

operator==

Compare two extended public keys for equality of all fields (excluding version).

Non-Member Functions

Name

Description

CreateMuSig2SyntheticXpub

Construct the BIP 328 synthetic xpub for a pubkey

DecodeExtPubKey

Decode a Base58Check‐encoded extended public key.

EncodeExtPubKey

Encode an extended public key in Base58Check format.

wallet::GenerateWalletDescriptor

Builds a new wallet descriptor for the given key and output type.

Created with MrDocs