Simple HD chain data model.

Synopsis

Declared in <wallet/walletdb.h>

class CHDChain;

Member Functions

Name

Description

CHDChain [constructor]

Constructs an HD chain initialized to the null state.

SetNull

Resets all fields to their default null state.

operator==

Compares two HD chains for equality by seed id.

operator<

Orders HD chains by seed id.

Data Members

Name

Description

m_next_external_index

Next external index in the keypool to be used. Memory only.

m_next_internal_index

Next internal index in the keypool to be used. Memory only.

nExternalChainCounter

Counter for the next external chain child key index.

nInternalChainCounter

Counter for the next internal chain child key index.

nVersion

Serialized version of this HD chain.

seed_id

seed hash160

Static Data Members

Name

Description

CURRENT_VERSION

Version number written for new HD chains.

VERSION_HD_BASE

Version number for the original HD chain format.

VERSION_HD_CHAIN_SPLIT

Version number for HD chains with separate internal and external counters.

Created with MrDocs