Bitcoin
|
#include <base58.h>
#include <hash.h>
#include <uint256.h>
#include <util/strencodings.h>
#include <assert.h>
#include <string.h>
Functions | |
bool | DecodeBase58 (const char *psz, std::vector< unsigned char > &vch) |
std::string | EncodeBase58 (const unsigned char *pbegin, const unsigned char *pend) |
std::string | EncodeBase58 (const std::vector< unsigned char > &vch) |
bool | DecodeBase58 (const std::string &str, std::vector< unsigned char > &vchRet) |
std::string | EncodeBase58Check (const std::vector< unsigned char > &vchIn) |
bool | DecodeBase58Check (const char *psz, std::vector< unsigned char > &vchRet) |
bool | DecodeBase58Check (const std::string &str, std::vector< unsigned char > &vchRet) |
Variables | |
static const char * | pszBase58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" |
static const int8_t | mapBase58 [256] |
bool DecodeBase58 | ( | const char * | psz, |
std::vector< unsigned char > & | vchRet | ||
) |
Decode a base58-encoded string (psz) into a byte vector (vchRet). return true if decoding is successful. psz cannot be nullptr.
bool DecodeBase58 | ( | const std::string & | str, |
std::vector< unsigned char > & | vchRet | ||
) |
Decode a base58-encoded string (str) into a byte vector (vchRet). return true if decoding is successful.
bool DecodeBase58Check | ( | const char * | psz, |
std::vector< unsigned char > & | vchRet | ||
) |
Decode a base58-encoded string (psz) that includes a checksum into a byte vector (vchRet), return true if decoding is successful
bool DecodeBase58Check | ( | const std::string & | str, |
std::vector< unsigned char > & | vchRet | ||
) |
Decode a base58-encoded string (str) that includes a checksum into a byte vector (vchRet), return true if decoding is successful
std::string EncodeBase58 | ( | const unsigned char * | pbegin, |
const unsigned char * | pend | ||
) |
Why base-58 instead of standard base-64 encoding?
std::string EncodeBase58 | ( | const std::vector< unsigned char > & | vch | ) |
Encode a byte vector as a base58-encoded string
std::string EncodeBase58Check | ( | const std::vector< unsigned char > & | vchIn | ) |
Encode a byte vector into a base58-encoded string, including checksum
|
static |
|
static |
All alphanumeric characters except for "0", "I", "O", and "l"