PRCYCoin  2.0.0.7rc1
P2P Digital Currency
Public Member Functions | Public Attributes | Private Attributes | Static Private Attributes | List of all members
CHDChain Class Reference

#include <hdchain.h>

Collaboration diagram for CHDChain:
[legend]

Public Member Functions

 CHDChain ()
 
 CHDChain (const CHDChain &other)
 
template<typename Stream , typename Operation >
void SerializationOp (Stream &s, Operation ser_action, int nType, int nVersion)
 
void swap (CHDChain &first, CHDChain &second)
 
CHDChainoperator= (CHDChain from)
 
bool SetNull ()
 
bool IsNull () const
 
void SetCrypted (bool fCryptedIn)
 
bool IsCrypted () const
 
void Debug (const std::string &strName) const
 
bool SetMnemonic (const SecureVector &vchMnemonic, const SecureVector &vchMnemonicPassphrase, bool fUpdateID)
 
bool SetMnemonic (const SecureString &ssMnemonic, const SecureString &ssMnemonicPassphrase, bool fUpdateID)
 
bool GetMnemonic (SecureVector &vchMnemonicRet, SecureVector &vchMnemonicPassphraseRet) const
 
bool GetMnemonic (SecureString &ssMnemonicRet, SecureString &ssMnemonicPassphraseRet) const
 
bool SetSeed (const SecureVector &vchSeedIn, bool fUpdateID)
 
SecureVector GetSeed () const
 
uint256 GetID () const
 
uint256 GetSeedHash ()
 
void DeriveChildExtKey (uint32_t nAccountIndex, bool fInternal, uint32_t nChildIndex, CExtKey &extKeyRet)
 

Public Attributes

 ADD_SERIALIZE_METHODS
 

Private Attributes

int nVersion
 
uint256 id
 
bool fCrypted
 
SecureVector vchSeed
 
SecureVector vchMnemonic
 
SecureVector vchMnemonicPassphrase
 

Static Private Attributes

static const int CURRENT_VERSION = 1
 

Detailed Description

Definition at line 11 of file hdchain.h.

Constructor & Destructor Documentation

◆ CHDChain() [1/2]

CHDChain::CHDChain ( )
inline

Definition at line 27 of file hdchain.h.

Here is the call graph for this function:

◆ CHDChain() [2/2]

CHDChain::CHDChain ( const CHDChain other)
inline

Definition at line 28 of file hdchain.h.

Member Function Documentation

◆ Debug()

void CHDChain::Debug ( const std::string &  strName) const

Definition at line 38 of file hdchain.cpp.

Here is the call graph for this function:

◆ DeriveChildExtKey()

void CHDChain::DeriveChildExtKey ( uint32_t  nAccountIndex,
bool  fInternal,
uint32_t  nChildIndex,
CExtKey extKeyRet 
)

Definition at line 144 of file hdchain.cpp.

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

◆ GetID()

uint256 CHDChain::GetID ( ) const
inline

Definition at line 85 of file hdchain.h.

Here is the caller graph for this function:

◆ GetMnemonic() [1/2]

bool CHDChain::GetMnemonic ( SecureString ssMnemonicRet,
SecureString ssMnemonicPassphraseRet 
) const

Definition at line 111 of file hdchain.cpp.

◆ GetMnemonic() [2/2]

bool CHDChain::GetMnemonic ( SecureVector vchMnemonicRet,
SecureVector vchMnemonicPassphraseRet 
) const

Definition at line 100 of file hdchain.cpp.

Here is the caller graph for this function:

◆ GetSeed()

SecureVector CHDChain::GetSeed ( ) const

Definition at line 134 of file hdchain.cpp.

Here is the caller graph for this function:

◆ GetSeedHash()

uint256 CHDChain::GetSeedHash ( )

Definition at line 139 of file hdchain.cpp.

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

◆ IsCrypted()

bool CHDChain::IsCrypted ( ) const

Definition at line 33 of file hdchain.cpp.

Here is the caller graph for this function:

◆ IsNull()

bool CHDChain::IsNull ( ) const

Definition at line 23 of file hdchain.cpp.

Here is the caller graph for this function:

◆ operator=()

CHDChain& CHDChain::operator= ( CHDChain  from)
inline

Definition at line 63 of file hdchain.h.

Here is the call graph for this function:

◆ SerializationOp()

template<typename Stream , typename Operation >
void CHDChain::SerializationOp ( Stream &  s,
Operation  ser_action,
int  nType,
int  nVersion 
)
inline

Definition at line 39 of file hdchain.h.

◆ SetCrypted()

void CHDChain::SetCrypted ( bool  fCryptedIn)

Definition at line 28 of file hdchain.cpp.

Here is the caller graph for this function:

◆ SetMnemonic() [1/2]

bool CHDChain::SetMnemonic ( const SecureString ssMnemonic,
const SecureString ssMnemonicPassphrase,
bool  fUpdateID 
)

Definition at line 70 of file hdchain.cpp.

Here is the call graph for this function:

◆ SetMnemonic() [2/2]

bool CHDChain::SetMnemonic ( const SecureVector vchMnemonic,
const SecureVector vchMnemonicPassphrase,
bool  fUpdateID 
)

Definition at line 65 of file hdchain.cpp.

Here is the caller graph for this function:

◆ SetNull()

bool CHDChain::SetNull ( )

Definition at line 12 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 SecureVector vchSeedIn,
bool  fUpdateID 
)

Definition at line 123 of file hdchain.cpp.

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

◆ swap()

void CHDChain::swap ( CHDChain first,
CHDChain second 
)
inline

Definition at line 49 of file hdchain.h.

Here is the caller graph for this function:

Member Data Documentation

◆ ADD_SERIALIZE_METHODS

CHDChain::ADD_SERIALIZE_METHODS

Definition at line 37 of file hdchain.h.

◆ CURRENT_VERSION

const int CHDChain::CURRENT_VERSION = 1
staticprivate

Definition at line 14 of file hdchain.h.

◆ fCrypted

bool CHDChain::fCrypted
private

Definition at line 19 of file hdchain.h.

◆ id

uint256 CHDChain::id
private

Definition at line 17 of file hdchain.h.

◆ nVersion

int CHDChain::nVersion
private

Definition at line 15 of file hdchain.h.

◆ vchMnemonic

SecureVector CHDChain::vchMnemonic
private

Definition at line 22 of file hdchain.h.

◆ vchMnemonicPassphrase

SecureVector CHDChain::vchMnemonicPassphrase
private

Definition at line 23 of file hdchain.h.

◆ vchSeed

SecureVector CHDChain::vchSeed
private

Definition at line 21 of file hdchain.h.


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