Bitcoin Core  27.99.0
P2P Digital Currency
Public Member Functions | Public Attributes | Friends | List of all members
CExtPubKey Struct Reference

#include <pubkey.h>

Collaboration diagram for CExtPubKey:
[legend]

Public Member Functions

void Encode (unsigned char code[BIP32_EXTKEY_SIZE]) const
 
void Decode (const unsigned char code[BIP32_EXTKEY_SIZE])
 
void EncodeWithVersion (unsigned char code[BIP32_EXTKEY_WITH_VERSION_SIZE]) const
 
void DecodeWithVersion (const unsigned char code[BIP32_EXTKEY_WITH_VERSION_SIZE])
 
bool Derive (CExtPubKey &out, unsigned int nChild) const
 

Public Attributes

unsigned char version [4]
 
unsigned char nDepth
 
unsigned char vchFingerprint [4]
 
unsigned int nChild
 
ChainCode chaincode
 
CPubKey pubkey
 

Friends

bool operator== (const CExtPubKey &a, const CExtPubKey &b)
 
bool operator!= (const CExtPubKey &a, const CExtPubKey &b)
 
bool operator< (const CExtPubKey &a, const CExtPubKey &b)
 

Detailed Description

Definition at line 337 of file pubkey.h.

Member Function Documentation

◆ Decode()

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

Definition at line 375 of file pubkey.cpp.

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

◆ DecodeWithVersion()

void CExtPubKey::DecodeWithVersion ( const unsigned char  code[BIP32_EXTKEY_WITH_VERSION_SIZE])

Definition at line 390 of file pubkey.cpp.

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

◆ Derive()

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

Definition at line 396 of file pubkey.cpp.

Here is the call graph for this function:

◆ Encode()

void CExtPubKey::Encode ( unsigned char  code[BIP32_EXTKEY_SIZE]) const

Definition at line 366 of file pubkey.cpp.

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

◆ EncodeWithVersion()

void CExtPubKey::EncodeWithVersion ( unsigned char  code[BIP32_EXTKEY_WITH_VERSION_SIZE]) const

Definition at line 384 of file pubkey.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( const CExtPubKey a,
const CExtPubKey b 
)
friend

Definition at line 354 of file pubkey.h.

◆ operator<

bool operator< ( const CExtPubKey a,
const CExtPubKey b 
)
friend

Definition at line 359 of file pubkey.h.

◆ operator==

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

Definition at line 345 of file pubkey.h.

Member Data Documentation

◆ chaincode

ChainCode CExtPubKey::chaincode

Definition at line 342 of file pubkey.h.

◆ nChild

unsigned int CExtPubKey::nChild

Definition at line 341 of file pubkey.h.

◆ nDepth

unsigned char CExtPubKey::nDepth

Definition at line 339 of file pubkey.h.

◆ pubkey

CPubKey CExtPubKey::pubkey

Definition at line 343 of file pubkey.h.

◆ vchFingerprint

unsigned char CExtPubKey::vchFingerprint[4]

Definition at line 340 of file pubkey.h.

◆ version

unsigned char CExtPubKey::version[4]

Definition at line 338 of file pubkey.h.


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