plebble
|
Functions | |
std::string | decode_string (const std::string &s) |
std::vector< unsigned char > | decode (const std::string &s) |
std::string | encode (const std::string &s) |
constexpr bool | is_space (char c) noexcept |
bool | decode (const char *psz, std::vector< unsigned char > &vch) |
bool | decode (const char *psz, std::array< unsigned char, 32 > &vch) |
std::string | encode (const unsigned char *pbegin, const unsigned char *pend) |
std::string | encode (const std::vector< unsigned char > &vch) |
bool | decode (const std::string &str, std::vector< unsigned char > &vchRet) |
Variables | |
static const char * | pszBase58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" |
static const int8_t | mapBase58 [256] |
bool us::gov::crypto::b58::decode | ( | const char * | psz, |
std::array< unsigned char, 32 > & | vch | ||
) |
bool us::gov::crypto::b58::decode | ( | const char * | psz, |
std::vector< unsigned char > & | vch | ||
) |
std::vector< unsigned char > us::gov::crypto::b58::decode | ( | const std::string & | s | ) |
Referenced by decode(), decode_string(), and us::gov::crypto::ec::keys::pub_t::read_b58().
bool us::gov::crypto::b58::decode | ( | 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.
References decode().
std::string us::gov::crypto::b58::decode_string | ( | const std::string & | ) |
Decode a base58-encoded string (psz) into a byte vector (vchRet). return true if decoding is successful. psz cannot be NULL.
References decode().
std::string us::gov::crypto::b58::encode | ( | const std::string & | ) |
Encode a byte sequence as a base58-encoded string. pbegin and pend cannot be NULL, unless both are.
Referenced by encode(), and us::gov::crypto::ec::keys::pub_t::to_b58().
std::string us::gov::crypto::b58::encode | ( | const std::vector< unsigned char > & | vch | ) |
Encode a byte vector as a base58-encoded string
References encode().
std::string us::gov::crypto::b58::encode | ( | const unsigned char * | pbegin, |
const unsigned char * | pend | ||
) |
References pszBase58.
|
inlineconstexprnoexcept |
|
static |
Referenced by decode().
|
static |
Referenced by encode().