[#wallet-CHDChain] = xref:wallet.adoc[wallet]::CHDChain :relfileprefix: ../ :mrdocs: Simple HD chain data model. == Synopsis Declared in `<wallet/walletdb.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- class CHDChain; ---- == Member Functions [cols="1,4"] |=== | Name| Description | xref:wallet/CHDChain/2constructor.adoc[`CHDChain`] [.small]#[constructor]# | Constructs an HD chain initialized to the null state. | xref:wallet/CHDChain/SetNull.adoc[`SetNull`] | Resets all fields to their default null state. | xref:wallet/CHDChain/operator_eq.adoc[`operator==`] | Compares two HD chains for equality by seed id. | xref:wallet/CHDChain/operator_lt.adoc[`operator<`] | Orders HD chains by seed id. |=== == Data Members [cols="1,4"] |=== | Name| Description | xref:wallet/CHDChain/m_next_external_index.adoc[`m_next_external_index`] | Next external index in the keypool to be used. Memory only. | xref:wallet/CHDChain/m_next_internal_index.adoc[`m_next_internal_index`] | Next internal index in the keypool to be used. Memory only. | xref:wallet/CHDChain/nExternalChainCounter.adoc[`nExternalChainCounter`] | Counter for the next external chain child key index. | xref:wallet/CHDChain/nInternalChainCounter.adoc[`nInternalChainCounter`] | Counter for the next internal chain child key index. | xref:wallet/CHDChain/nVersion.adoc[`nVersion`] | Serialized version of this HD chain. | xref:wallet/CHDChain/seed_id.adoc[`seed_id`] | seed hash160 |=== == Static Data Members [cols="1,4"] |=== | Name| Description | xref:wallet/CHDChain/CURRENT_VERSION.adoc[`CURRENT_VERSION`] | Version number written for new HD chains. | xref:wallet/CHDChain/VERSION_HD_BASE.adoc[`VERSION_HD_BASE`] | Version number for the original HD chain format. | xref:wallet/CHDChain/VERSION_HD_CHAIN_SPLIT.adoc[`VERSION_HD_CHAIN_SPLIT`] | Version number for HD chains with separate internal and external counters. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#