Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
Base class for all base58-encoded data. More...
#include <base58.h>
Public Member Functions | |
bool | SetString (const char *psz, unsigned int nVersionBytes=1) |
bool | SetString (const std::string &str) |
std::string | ToString () const |
int | CompareTo (const CBase58Data &b58) const |
bool | operator== (const CBase58Data &b58) const |
bool | operator<= (const CBase58Data &b58) const |
bool | operator>= (const CBase58Data &b58) const |
bool | operator< (const CBase58Data &b58) const |
bool | operator> (const CBase58Data &b58) const |
Protected Types | |
typedef std::vector< unsigned char, zero_after_free_allocator< unsigned char > > | vector_uchar |
the actually encoded data More... | |
Protected Member Functions | |
CBase58Data () | |
void | SetData (const std::vector< unsigned char > &vchVersionIn, const void *pdata, size_t nSize) |
void | SetData (const std::vector< unsigned char > &vchVersionIn, const unsigned char *pbegin, const unsigned char *pend) |
Protected Attributes | |
std::vector< unsigned char > | vchVersion |
the version byte(s) More... | |
vector_uchar | vchData |
Detailed Description
Member Typedef Documentation
◆ vector_uchar
|
protected |
Constructor & Destructor Documentation
◆ CBase58Data()
|
protected |
Definition at line 152 of file base58.cpp.
References vchData, and vchVersion.
Member Function Documentation
◆ CompareTo()
int CBase58Data::CompareTo | ( | const CBase58Data & | b58 | ) | const |
Definition at line 200 of file base58.cpp.
References vchData, and vchVersion.
Referenced by operator<(), operator<=(), operator==(), operator>(), and operator>=().
◆ operator<()
|
inline |
Definition at line 94 of file base58.h.
References CompareTo().
◆ operator<=()
|
inline |
Definition at line 92 of file base58.h.
References CompareTo().
◆ operator==()
|
inline |
Definition at line 91 of file base58.h.
References CompareTo().
◆ operator>()
|
inline |
Definition at line 95 of file base58.h.
References CompareTo().
◆ operator>=()
|
inline |
Definition at line 93 of file base58.h.
References CompareTo().
◆ SetData() [1/2]
|
protected |
Definition at line 158 of file base58.cpp.
References memcpy(), vchData, and vchVersion.
Referenced by SetData(), CBitcoinSecret::SetKey(), and CBitcoinExtKeyBase< K, Size, Type >::SetKey().
◆ SetData() [2/2]
|
protected |
Definition at line 166 of file base58.cpp.
References SetData().
◆ SetString() [1/2]
bool CBase58Data::SetString | ( | const char * | psz, |
unsigned int | nVersionBytes = 1 |
||
) |
Definition at line 171 of file base58.cpp.
References DecodeBase58Check(), memcpy(), memory_cleanse(), vchData, and vchVersion.
Referenced by CBitcoinExtKeyBase< K, Size, Type >::CBitcoinExtKeyBase(), SetString(), and CBitcoinSecret::SetString().
◆ SetString() [2/2]
bool CBase58Data::SetString | ( | const std::string & | str | ) |
Definition at line 188 of file base58.cpp.
References SetString().
◆ ToString()
std::string CBase58Data::ToString | ( | ) | const |
Definition at line 193 of file base58.cpp.
References EncodeBase58Check(), vchData, and vchVersion.
Referenced by CHDChain::Debug(), dumpprivkey(), and dumpwallet().
Member Data Documentation
◆ vchData
|
protected |
Definition at line 79 of file base58.h.
Referenced by CBase58Data(), CompareTo(), CBitcoinSecret::GetKey(), CBitcoinExtKeyBase< K, Size, Type >::GetKey(), CBitcoinSecret::IsValid(), SetData(), CBitcoinSecret::SetKey(), SetString(), and ToString().
◆ vchVersion
|
protected |
the version byte(s)
Definition at line 75 of file base58.h.
Referenced by CBase58Data(), CompareTo(), CBitcoinSecret::IsValid(), SetData(), SetString(), and ToString().
The documentation for this class was generated from the following files:
- src/base58.h
- src/base58.cpp