Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <key.h>
Collaboration diagram for CExtKey:Public Member Functions | |
| void | Encode (unsigned char code[BIP32_EXTKEY_SIZE]) const |
| void | Decode (const unsigned char code[BIP32_EXTKEY_SIZE]) |
| bool | Derive (CExtKey &out, unsigned int nChild) const |
| CExtPubKey | Neuter () const |
| void | SetMaster (const unsigned char *seed, unsigned int nSeedLen) |
| template<typename Stream > | |
| void | Serialize (Stream &s) const |
| template<typename Stream > | |
| void | Unserialize (Stream &s) |
Public Attributes | |
| unsigned char | nDepth |
| unsigned char | vchFingerprint [4] |
| unsigned int | nChild |
| ChainCode | chaincode |
| CKey | key |
Friends | |
| bool | operator== (const CExtKey &a, const CExtKey &b) |
Detailed Description
Member Function Documentation
◆ Decode()
| void CExtKey::Decode | ( | const unsigned char | code[BIP32_EXTKEY_SIZE] | ) |
Definition at line 308 of file key.cpp.
References base_blob< BITS >::begin(), BIP32_EXTKEY_SIZE, chaincode, key, memcpy(), nChild, nDepth, CKey::Set(), and vchFingerprint.
Referenced by Unserialize().
◆ Derive()
| bool CExtKey::Derive | ( | CExtKey & | out, |
| unsigned int | nChild | ||
| ) | const |
Definition at line 268 of file key.cpp.
References chaincode, CKey::Derive(), CPubKey::GetID(), CKey::GetPubKey(), key, memcpy(), nChild, nDepth, and vchFingerprint.
Referenced by CHDChain::DeriveChildExtKey().
◆ Encode()
| void CExtKey::Encode | ( | unsigned char | code[BIP32_EXTKEY_SIZE] | ) | const |
Definition at line 297 of file key.cpp.
References base_blob< BITS >::begin(), CKey::begin(), chaincode, key, memcpy(), nChild, nDepth, CKey::size(), and vchFingerprint.
Referenced by Serialize().
◆ Neuter()
| CExtPubKey CExtKey::Neuter | ( | ) | const |
Definition at line 287 of file key.cpp.
References chaincode, CExtPubKey::chaincode, CKey::GetPubKey(), key, memcpy(), nChild, CExtPubKey::nChild, nDepth, CExtPubKey::nDepth, CExtPubKey::pubkey, vchFingerprint, and CExtPubKey::vchFingerprint.
Referenced by CHDChain::Debug(), CWallet::DeriveNewChildKey(), and dumpwallet().
◆ Serialize()
|
inline |
Definition at line 163 of file key.h.
References BIP32_EXTKEY_SIZE, Encode(), and WriteCompactSize().
◆ SetMaster()
| void CExtKey::SetMaster | ( | const unsigned char * | seed, |
| unsigned int | nSeedLen | ||
| ) |
Definition at line 276 of file key.cpp.
References base_blob< BITS >::begin(), chaincode, CHMAC_SHA512::Finalize(), key, memcpy(), nChild, nDepth, CKey::Set(), vchFingerprint, and CHMAC_SHA512::Write().
Referenced by CHDChain::Debug(), CHDChain::DeriveChildExtKey(), and dumpwallet().
◆ Unserialize()
|
inline |
Definition at line 172 of file key.h.
References BIP32_EXTKEY_SIZE, Decode(), and ReadCompactSize().
Friends And Related Function Documentation
◆ operator==
Member Data Documentation
◆ chaincode
| ChainCode CExtKey::chaincode |
◆ key
| CKey CExtKey::key |
Definition at line 146 of file key.h.
Referenced by Decode(), Derive(), CWallet::DeriveNewChildKey(), Encode(), CWallet::GetKey(), Neuter(), and SetMaster().
◆ nChild
| unsigned int CExtKey::nChild |
◆ nDepth
| unsigned char CExtKey::nDepth |
◆ vchFingerprint
| unsigned char CExtKey::vchFingerprint[4] |
The documentation for this struct was generated from the following files:

