Bitcoin Core 31.99.0
P2P Digital Currency
Public Member Functions | List of all members
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 base_blob (uint8_t v)
 
constexpr base_blob (std::span< const unsigned char > vch)
 
consteval base_blob (std::string_view hex_str)
 
constexpr bool IsNull () const
 
constexpr void SetNull ()
 
constexpr int Compare (const base_blob &other) const
 Lexicographic ordering. More...
 
constexpr const unsigned char * data () const
 
constexpr unsigned char * data ()
 
constexpr unsigned char * begin ()
 
constexpr const unsigned char * begin () const
 
constexpr unsigned char * end ()
 
constexpr const unsigned char * end () const
 
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, WIDTHm_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]

constexpr ChainCode::ChainCode ( )
constexprdefault

◆ ChainCode() [2/3]

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

Definition at line 26 of file hash.h.

◆ ChainCode() [3/3]

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

Definition at line 27 of file hash.h.

◆ ~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: