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

Definition at line 141 of file key.h.

Member Function Documentation

◆ Decode()

void CExtKey::Decode ( const unsigned char  code[BIP32_EXTKEY_SIZE])

◆ Derive()

bool CExtKey::Derive ( CExtKey out,
unsigned int  nChild 
) const

◆ 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()

◆ Serialize()

template<typename Stream >
void CExtKey::Serialize ( Stream &  s) const
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 
)

◆ Unserialize()

template<typename Stream >
void CExtKey::Unserialize ( Stream &  s)
inline

Definition at line 172 of file key.h.

References BIP32_EXTKEY_SIZE, Decode(), and ReadCompactSize().

Friends And Related Function Documentation

◆ operator==

bool operator== ( const CExtKey a,
const CExtKey b 
)
friend

Definition at line 148 of file key.h.

Member Data Documentation

◆ chaincode

ChainCode CExtKey::chaincode

Definition at line 145 of file key.h.

Referenced by Decode(), Derive(), Encode(), Neuter(), and SetMaster().

◆ key

CKey CExtKey::key

◆ nChild

unsigned int CExtKey::nChild

Definition at line 144 of file key.h.

Referenced by Decode(), Derive(), Encode(), Neuter(), and SetMaster().

◆ nDepth

unsigned char CExtKey::nDepth

Definition at line 142 of file key.h.

Referenced by Decode(), Derive(), Encode(), Neuter(), and SetMaster().

◆ vchFingerprint

unsigned char CExtKey::vchFingerprint[4]

Definition at line 143 of file key.h.

Referenced by Decode(), Derive(), Encode(), Neuter(), and SetMaster().


The documentation for this struct was generated from the following files:
Released under the MIT license