![]() |
Dash Core
0.12.2.1
P2P Digital Currency
|
#include <hdchain.h>
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) |
CHDChain & | operator= (CHDChain from) |
bool | SetNull () |
bool | IsNull () const |
void | SetCrypted (bool fCryptedIn) |
bool | IsCrypted () const |
void | Debug (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) |
void | AddAccount () |
bool | GetAccount (uint32_t nAccountIndex, CHDAccount &hdAccountRet) |
bool | SetAccount (uint32_t nAccountIndex, const CHDAccount &hdAccount) |
size_t | CountAccounts () |
Public Attributes | |
ADD_SERIALIZE_METHODS | |
Private Attributes | |
int | nVersion |
uint256 | id |
bool | fCrypted |
SecureVector | vchSeed |
SecureVector | vchMnemonic |
SecureVector | vchMnemonicPassphrase |
std::map< uint32_t, CHDAccount > | mapAccounts |
CCriticalSection | cs_accounts |
Static Private Attributes | |
static const int | CURRENT_VERSION = 1 |
void CHDChain::AddAccount | ( | ) |
Definition at line 178 of file hdchain.cpp.
size_t CHDChain::CountAccounts | ( | ) |
Definition at line 203 of file hdchain.cpp.
Referenced by dumpwallet(), and getwalletinfo().
void CHDChain::Debug | ( | std::string | strName | ) | const |
Definition at line 42 of file hdchain.cpp.
Referenced by CCryptoKeyStore::DecryptHDChain(), CCryptoKeyStore::EncryptHDChain(), and CWallet::GenerateNewHDChain().
void CHDChain::DeriveChildExtKey | ( | uint32_t | nAccountIndex, |
bool | fInternal, | ||
uint32_t | nChildIndex, | ||
CExtKey & | extKeyRet | ||
) |
Definition at line 151 of file hdchain.cpp.
Referenced by CWallet::DeriveNewChildKey(), and CWallet::GetKey().
bool CHDChain::GetAccount | ( | uint32_t | nAccountIndex, |
CHDAccount & | hdAccountRet | ||
) |
Definition at line 184 of file hdchain.cpp.
Referenced by CWallet::DeriveNewChildKey(), dumpwallet(), and getwalletinfo().
|
inline |
Definition at line 111 of file hdchain.h.
Referenced by CWallet::AddHDPubKey(), CCryptoKeyStore::DecryptHDChain(), CWallet::DeriveNewChildKey(), CCryptoKeyStore::EncryptHDChain(), CWallet::EncryptWallet(), CWallet::GetDecryptedHDChain(), CWallet::GetKey(), getwalletinfo(), CCryptoKeyStore::Unlock(), and validateaddress().
bool CHDChain::GetMnemonic | ( | SecureVector & | vchMnemonicRet, |
SecureVector & | vchMnemonicPassphraseRet | ||
) | const |
Definition at line 107 of file hdchain.cpp.
Referenced by CCryptoKeyStore::DecryptHDChain(), dumphdinfo(), dumpwallet(), and CCryptoKeyStore::EncryptHDChain().
bool CHDChain::GetMnemonic | ( | SecureString & | ssMnemonicRet, |
SecureString & | ssMnemonicPassphraseRet | ||
) | const |
Definition at line 118 of file hdchain.cpp.
SecureVector CHDChain::GetSeed | ( | ) | const |
Definition at line 141 of file hdchain.cpp.
Referenced by CCryptoKeyStore::DecryptHDChain(), dumphdinfo(), dumpwallet(), CCryptoKeyStore::EncryptHDChain(), and CWallet::EncryptWallet().
uint256 CHDChain::GetSeedHash | ( | ) |
Definition at line 146 of file hdchain.cpp.
Referenced by CCryptoKeyStore::DecryptHDChain(), CWallet::DeriveNewChildKey(), CCryptoKeyStore::EncryptHDChain(), CWallet::EncryptWallet(), CWallet::GetDecryptedHDChain(), CWallet::GetKey(), SetMnemonic(), SetSeed(), and CCryptoKeyStore::Unlock().
bool CHDChain::IsCrypted | ( | ) | const |
Definition at line 37 of file hdchain.cpp.
Referenced by CCryptoKeyStore::DecryptHDChain(), CCryptoKeyStore::EncryptHDChain(), CCryptoKeyStore::SetCryptedHDChain(), and CCryptoKeyStore::SetHDChain().
bool CHDChain::IsNull | ( | ) | const |
Definition at line 27 of file hdchain.cpp.
Referenced by CCryptoKeyStore::DecryptHDChain(), CCryptoKeyStore::EncryptHDChain(), CWallet::EncryptWallet(), CBasicKeyStore::GetHDChain(), CCryptoKeyStore::GetHDChain(), SetMnemonic(), SetNull(), SetSeed(), and CCryptoKeyStore::Unlock().
|
inline |
bool CHDChain::SetAccount | ( | uint32_t | nAccountIndex, |
const CHDAccount & | hdAccount | ||
) |
Definition at line 193 of file hdchain.cpp.
Referenced by CWallet::DeriveNewChildKey().
void CHDChain::SetCrypted | ( | bool | fCryptedIn | ) |
Definition at line 32 of file hdchain.cpp.
Referenced by CCryptoKeyStore::DecryptHDChain(), and CCryptoKeyStore::EncryptHDChain().
bool CHDChain::SetMnemonic | ( | const SecureVector & | vchMnemonic, |
const SecureVector & | vchMnemonicPassphrase, | ||
bool | fUpdateID | ||
) |
Definition at line 72 of file hdchain.cpp.
Referenced by CCryptoKeyStore::DecryptHDChain(), CCryptoKeyStore::EncryptHDChain(), and CWallet::GenerateNewHDChain().
bool CHDChain::SetMnemonic | ( | const SecureString & | ssMnemonic, |
const SecureString & | ssMnemonicPassphrase, | ||
bool | fUpdateID | ||
) |
Definition at line 77 of file hdchain.cpp.
bool CHDChain::SetNull | ( | ) |
Definition at line 12 of file hdchain.cpp.
Referenced by CHDChain(), and CCryptoKeyStore::EncryptHDChain().
bool CHDChain::SetSeed | ( | const SecureVector & | vchSeedIn, |
bool | fUpdateID | ||
) |
Definition at line 130 of file hdchain.cpp.
Referenced by CCryptoKeyStore::DecryptHDChain(), CCryptoKeyStore::EncryptHDChain(), and CWallet::GenerateNewHDChain().
Definition at line 74 of file hdchain.h.
Referenced by operator=().
|
mutableprivate |
Definition at line 44 of file hdchain.h.
Referenced by AddAccount(), CountAccounts(), GetAccount(), SerializationOp(), SetAccount(), and SetNull().
|
staticprivate |
|
private |
Definition at line 36 of file hdchain.h.
Referenced by Debug(), IsCrypted(), SetCrypted(), SetNull(), and swap().
|
private |
|
private |
Definition at line 42 of file hdchain.h.
Referenced by AddAccount(), CountAccounts(), GetAccount(), SerializationOp(), SetAccount(), SetNull(), and swap().
|
private |
Definition at line 32 of file hdchain.h.
Referenced by SerializationOp(), SetNull(), and swap().
|
private |
Definition at line 39 of file hdchain.h.
Referenced by Debug(), GetMnemonic(), SerializationOp(), SetMnemonic(), SetNull(), and swap().
|
private |
Definition at line 40 of file hdchain.h.
Referenced by Debug(), GetMnemonic(), SerializationOp(), SetMnemonic(), SetNull(), and swap().
|
private |
Definition at line 38 of file hdchain.h.
Referenced by Debug(), DeriveChildExtKey(), GetSeed(), GetSeedHash(), IsNull(), SerializationOp(), SetMnemonic(), SetNull(), SetSeed(), and swap().