Bitcoin ABC 0.26.3
P2P Digital Currency
|
#include <base58.h>
#include <hash.h>
#include <uint256.h>
#include <util/strencodings.h>
#include <util/string.h>
#include <cassert>
#include <cstdint>
#include <cstring>
#include <limits>
Go to the source code of this file.
Functions | |
static bool | DecodeBase58 (const char *psz, std::vector< uint8_t > &vch, int max_ret_len) |
std::string | EncodeBase58 (Span< const uint8_t > input) |
Why base-58 instead of standard base-64 encoding? | |
bool | DecodeBase58 (const std::string &str, std::vector< uint8_t > &vchRet, int max_ret_len) |
Decode a base58-encoded string (str) into a byte vector (vchRet). | |
std::string | EncodeBase58Check (Span< const uint8_t > input) |
Encode a byte span into a base58-encoded string, including checksum. | |
static bool | DecodeBase58Check (const char *psz, std::vector< uint8_t > &vchRet, int max_ret_len) |
bool | DecodeBase58Check (const std::string &str, std::vector< uint8_t > &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. | |
Variables | |
static const char * | pszBase58 |
All alphanumeric characters except for "0", "I", "O", and "l". | |
static const int8_t | mapBase58 [256] |
Definition at line 38 of file base58.cpp.
bool DecodeBase58 | ( | const std::string & | str, |
std::vector< uint8_t > & | 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 144 of file base58.cpp.
|
static |
Definition at line 160 of file base58.cpp.
bool DecodeBase58Check | ( | const std::string & | str, |
std::vector< uint8_t > & | 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 181 of file base58.cpp.
Why base-58 instead of standard base-64 encoding?
Definition at line 101 of file base58.cpp.
Encode a byte span into a base58-encoded string, including checksum.
Definition at line 152 of file base58.cpp.
|
static |
Definition at line 20 of file base58.cpp.
|
static |
All alphanumeric characters except for "0", "I", "O", and "l".
Definition at line 18 of file base58.cpp.