Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
CExtKey Struct Reference

#include <key.h>

Collaboration diagram for CExtKey:
[legend]

Public Member Functions

 CExtKey ()=default
 CExtKey (const CExtPubKey &xpub, const CKey &key_in)
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 SetSeed (std::span< const std::byte > seed)

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 231 of file key.h.

Constructor & Destructor Documentation

◆ CExtKey() [1/2]

CExtKey::CExtKey ( )
default
Here is the caller graph for this function:

◆ CExtKey() [2/2]

CExtKey::CExtKey ( const CExtPubKey & xpub,
const CKey & key_in )
inline

Definition at line 248 of file key.h.

Member Function Documentation

◆ Decode()

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

Definition at line 523 of file key.cpp.

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

◆ Derive()

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

Definition at line 482 of file key.cpp.

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

◆ Encode()

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

Definition at line 513 of file key.cpp.

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

◆ Neuter()

CExtPubKey CExtKey::Neuter ( ) const

Definition at line 503 of file key.cpp.

Here is the caller graph for this function:

◆ SetSeed()

void CExtKey::SetSeed ( std::span< const std::byte > seed)

Definition at line 491 of file key.cpp.

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

◆ operator==

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

Definition at line 238 of file key.h.

Member Data Documentation

◆ chaincode

ChainCode CExtKey::chaincode

Definition at line 235 of file key.h.

◆ key

CKey CExtKey::key

Definition at line 236 of file key.h.

◆ nChild

unsigned int CExtKey::nChild

Definition at line 234 of file key.h.

◆ nDepth

unsigned char CExtKey::nDepth

Definition at line 232 of file key.h.

◆ vchFingerprint

unsigned char CExtKey::vchFingerprint[4]

Definition at line 233 of file key.h.


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