14 #ifndef BITCOIN_BASE58_H 15 #define BITCOIN_BASE58_H 24 std::string
EncodeBase58(
const unsigned char* pbegin,
const unsigned char* pend);
29 std::string
EncodeBase58(
const std::vector<unsigned char>& vch);
36 bool DecodeBase58(
const char* psz, std::vector<unsigned char>& vchRet);
42 bool DecodeBase58(
const std::string& str, std::vector<unsigned char>& vchRet);
59 bool DecodeBase58Check(
const std::string& str, std::vector<unsigned char>& vchRet);
61 #endif // BITCOIN_BASE58_H bool DecodeBase58(const char *psz, std::vector< unsigned char > &vchRet)
Decode a base58-encoded string (psz) into a byte vector (vchRet).
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.
std::string EncodeBase58Check(const std::vector< unsigned char > &vchIn)
Encode a byte vector into a base58-encoded string, including checksum.
std::string EncodeBase58(const unsigned char *pbegin, const unsigned char *pend)
Why base-58 instead of standard base-64 encoding?