wallet::CKeyMetadata

Metadata about a wallet key, such as its creation time and HD derivation info.

Synopsis

Declared in <wallet/walletdb.h>

class CKeyMetadata;

Member Functions

NameDescription
CKeyMetadata [constructor]Constructors
SetNull Resets all fields to their default null state.

Data Members

NameDescription
has_key_origin Whether the key_origin is useful
hdKeypath optional HD/bip32 keypath. Still used to determine whether a key is a seed. Also kept for backwards compatibility
hd_seed_id id of the HD seed used to derive this key
key_origin Key origin info with path and fingerprint
nCreateTime Key creation time as a unix timestamp; 0 means unknown.
nVersion Serialized version of this metadata.

Static Data Members

NameDescription
CURRENT_VERSION Version number written for new key metadata.
VERSION_BASIC Original key metadata version.
VERSION_WITH_HDDATA Metadata version that adds HD keypath and seed id.
VERSION_WITH_KEY_ORIGIN Metadata version that adds key origin info.