Master Core  v0.0.9 - 49a5c0d97abf09ef2911ddfe8d9551df59f9efd3-dirty
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Data Fields | Friends
CExtKey Struct Reference

#include <key.h>

+ Collaboration diagram for CExtKey:

Public Member Functions

void Encode (unsigned char code[74]) const
 
void Decode (const unsigned char code[74])
 
bool Derive (CExtKey &out, unsigned int nChild) const
 
CExtPubKey Neuter () const
 
void SetMaster (const unsigned char *seed, unsigned int nSeedLen)
 

Data Fields

unsigned char nDepth
 
unsigned char vchFingerprint [4]
 
unsigned int nChild
 
unsigned char vchChainCode [32]
 
CKey key
 

Friends

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

Detailed Description

Definition at line 291 of file key.h.

Member Function Documentation

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

Definition at line 586 of file key.cpp.

References key, memcpy(), nChild, nDepth, CKey::Set(), vchChainCode, and vchFingerprint.

+ Here is the call graph for this function:

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

Definition at line 541 of file key.cpp.

References CKey::Derive(), CPubKey::GetID(), CKey::GetPubKey(), key, memcpy(), nChild, nDepth, vchChainCode, and vchFingerprint.

+ Here is the call graph for this function:

void CExtKey::Encode ( unsigned char  code[74]) const

Definition at line 575 of file key.cpp.

References CKey::begin(), key, memcpy(), nChild, nDepth, CKey::size(), vchChainCode, and vchFingerprint.

+ Here is the call graph for this function:

CExtPubKey CExtKey::Neuter ( ) const

Definition at line 565 of file key.cpp.

References CKey::GetPubKey(), key, memcpy(), CExtPubKey::nChild, nChild, CExtPubKey::nDepth, nDepth, CExtPubKey::pubkey, CExtPubKey::vchChainCode, vchChainCode, CExtPubKey::vchFingerprint, and vchFingerprint.

+ Here is the call graph for this function:

void CExtKey::SetMaster ( const unsigned char *  seed,
unsigned int  nSeedLen 
)

Definition at line 549 of file key.cpp.

References HMAC_SHA512_Final(), HMAC_SHA512_Init(), HMAC_SHA512_Update(), key, LockObject(), memcpy(), nChild, nDepth, CKey::Set(), UnlockObject(), vchChainCode, and vchFingerprint.

+ Here is the call graph for this function:

Friends And Related Function Documentation

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

Definition at line 298 of file key.h.

Field Documentation

CKey CExtKey::key

Definition at line 296 of file key.h.

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

unsigned int CExtKey::nChild

Definition at line 294 of file key.h.

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

unsigned char CExtKey::nDepth

Definition at line 292 of file key.h.

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

unsigned char CExtKey::vchChainCode[32]

Definition at line 295 of file key.h.

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

unsigned char CExtKey::vchFingerprint[4]

Definition at line 293 of file key.h.

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


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