PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
CHDChain Class Reference

#include <hdchain.h>

Collaboration diagram for CHDChain:
[legend]

Public Member Functions

 CHDChain (const uint8_t &_chainType=HDChain::ChainCounterType::Standard)
 
 SERIALIZE_METHODS (CHDChain, obj)
 
bool SetNull ()
 
bool IsNull () const
 
bool SetSeed (const CKeyID &seedId)
 
CKeyID GetID () const
 
uint32_t & GetChainCounter (const uint8_t &type=HDChain::ChangeType::EXTERNAL)
 

Public Attributes

uint32_t nExternalChainCounter {0}
 
uint32_t nInternalChainCounter {0}
 
uint32_t nStakingChainCounter {0}
 
uint8_t chainType {HDChain::ChainCounterType::Standard}
 

Static Public Attributes

static const int CURRENT_VERSION = 2
 

Private Attributes

int nVersion
 
CKeyID seed_id
 

Detailed Description

Definition at line 24 of file hdchain.h.

Constructor & Destructor Documentation

◆ CHDChain()

CHDChain::CHDChain ( const uint8_t &  _chainType = HDChain::ChainCounterType::Standard)
inlineexplicit

Definition at line 40 of file hdchain.h.

Here is the call graph for this function:

Member Function Documentation

◆ GetChainCounter()

uint32_t& CHDChain::GetChainCounter ( const uint8_t &  type = HDChain::ChangeType::EXTERNAL)
inline

Definition at line 54 of file hdchain.h.

◆ GetID()

CKeyID CHDChain::GetID ( ) const
inline

Definition at line 52 of file hdchain.h.

Here is the caller graph for this function:

◆ IsNull()

bool CHDChain::IsNull ( ) const

Definition at line 23 of file hdchain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SERIALIZE_METHODS()

CHDChain::SERIALIZE_METHODS ( CHDChain  ,
obj   
)
inline

Definition at line 42 of file hdchain.h.

◆ SetNull()

bool CHDChain::SetNull ( )

Definition at line 13 of file hdchain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SetSeed()

bool CHDChain::SetSeed ( const CKeyID seedId)

Definition at line 28 of file hdchain.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ chainType

uint8_t CHDChain::chainType {HDChain::ChainCounterType::Standard}

Definition at line 38 of file hdchain.h.

◆ CURRENT_VERSION

const int CHDChain::CURRENT_VERSION = 2
static

Definition at line 32 of file hdchain.h.

◆ nExternalChainCounter

uint32_t CHDChain::nExternalChainCounter {0}

Definition at line 34 of file hdchain.h.

◆ nInternalChainCounter

uint32_t CHDChain::nInternalChainCounter {0}

Definition at line 35 of file hdchain.h.

◆ nStakingChainCounter

uint32_t CHDChain::nStakingChainCounter {0}

Definition at line 36 of file hdchain.h.

◆ nVersion

int CHDChain::nVersion
private

Definition at line 27 of file hdchain.h.

◆ seed_id

CKeyID CHDChain::seed_id
private

Definition at line 28 of file hdchain.h.


The documentation for this class was generated from the following files: