Bitcoin Core 28.99.0
P2P Digital Currency
|
#include <base58.h>
#include <hash.h>
#include <uint256.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <assert.h>
#include <limits>
Go to the source code of this file.
Functions | |
static bool | DecodeBase58 (const char *psz, std::vector< unsigned char > &vch, int max_ret_len) |
std::string | EncodeBase58 (Span< const unsigned char > input) |
Why base-58 instead of standard base-64 encoding? More... | |
bool | DecodeBase58 (const std::string &str, std::vector< unsigned char > &vchRet, int max_ret_len) |
Decode a base58-encoded string (str) into a byte vector (vchRet). More... | |
std::string | EncodeBase58Check (Span< const unsigned char > input) |
Encode a byte span into a base58-encoded string, including checksum. More... | |
static bool | DecodeBase58Check (const char *psz, std::vector< unsigned char > &vchRet, int max_ret_len) |
bool | DecodeBase58Check (const std::string &str, std::vector< unsigned char > &vchRet, int max_ret) |
Decode a base58-encoded string (str) that includes a checksum into a byte vector (vchRet), return true if decoding is successful. More... | |
Variables | |
static const char * | pszBase58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" |
All alphanumeric characters except for "0", "I", "O", and "l". More... | |
static const int8_t | mapBase58 [256] |
|
static |
Definition at line 40 of file base58.cpp.
bool DecodeBase58 | ( | const std::string & | str, |
std::vector< unsigned char > & | vchRet, | ||
int | max_ret_len | ||
) |
Decode a base58-encoded string (str) into a byte vector (vchRet).
return true if decoding is successful.
Definition at line 129 of file base58.cpp.
|
static |
Definition at line 146 of file base58.cpp.
bool DecodeBase58Check | ( | const std::string & | str, |
std::vector< unsigned char > & | vchRet, | ||
int | max_ret | ||
) |
Decode a base58-encoded string (str) that includes a checksum into a byte vector (vchRet), return true if decoding is successful.
Definition at line 163 of file base58.cpp.
std::string EncodeBase58 | ( | Span< const unsigned char > | input | ) |
Why base-58 instead of standard base-64 encoding?
Definition at line 89 of file base58.cpp.
std::string EncodeBase58Check | ( | Span< const unsigned char > | input | ) |
Encode a byte span into a base58-encoded string, including checksum.
Definition at line 137 of file base58.cpp.
|
static |
Definition at line 21 of file base58.cpp.
|
static |
All alphanumeric characters except for "0", "I", "O", and "l".
Definition at line 20 of file base58.cpp.