Bitcoin Core 32.1.0
P2P Digital Currency
Loading...
Searching...
No Matches
ChainCode Class Reference

A BIP32 chain code. More...

#include <hash.h>

Inheritance diagram for ChainCode:
[legend]
Collaboration diagram for ChainCode:
[legend]

Public Member Functions

constexpr ChainCode ()=default
constexpr ChainCode (std::span< const unsigned char > vch)
constexpr ChainCode (const base_blob< 256 > &b)
 ~ChainCode ()
Public Member Functions inherited from base_blob< 256 >
constexpr base_blob ()
constexpr bool IsNull () const
constexpr void SetNull ()
constexpr bool operator== (const base_blob &) const=default
constexpr std::strong_ordering operator<=> (const base_blob &other) const=default
 Lexicographic ordering.
constexpr const unsigned char * data () const
constexpr unsigned char * begin ()
constexpr unsigned char * end ()
constexpr uint64_t GetUint64 (int pos) const
void Serialize (Stream &s) const
void Unserialize (Stream &s)
std::string GetHex () const
std::string ToString () const

Additional Inherited Members

Static Public Member Functions inherited from base_blob< 256 >
static constexpr unsigned int size ()
Protected Attributes inherited from base_blob< 256 >
std::array< uint8_t, WIDTH > m_data
Static Protected Attributes inherited from base_blob< 256 >
static constexpr int WIDTH

Detailed Description

A BIP32 chain code.

Cleansed on destruction.

Definition at line 23 of file hash.h.

Constructor & Destructor Documentation

◆ ChainCode() [1/3]

ChainCode::ChainCode ( )
constexprdefault

◆ ChainCode() [2/3]

ChainCode::ChainCode ( std::span< const unsigned char > vch)
inlineexplicitconstexpr

Definition at line 26 of file hash.h.

Here is the call graph for this function:

◆ ChainCode() [3/3]

ChainCode::ChainCode ( const base_blob< 256 > & b)
inlineexplicitconstexpr

Definition at line 27 of file hash.h.

Here is the call graph for this function:

◆ ~ChainCode()

ChainCode::~ChainCode ( )
inline

Definition at line 28 of file hash.h.

Here is the call graph for this function:

The documentation for this class was generated from the following file: