14 #ifndef BITCOIN_BASE58_H 15 #define BITCOIN_BASE58_H 25 std::string
EncodeBase58(std::span<const unsigned char> input);
31 [[nodiscard]]
bool DecodeBase58(
const std::string& str, std::vector<unsigned char>& vchRet,
int max_ret_len);
42 [[nodiscard]]
bool DecodeBase58Check(
const std::string& str, std::vector<unsigned char>& vchRet,
int max_ret_len);
44 #endif // BITCOIN_BASE58_H bool DecodeBase58Check(const std::string &str, std::vector< unsigned char > &vchRet, int max_ret_len)
Decode a base58-encoded string (str) that includes a checksum into a byte vector (vchRet), return true if decoding is successful.
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).
std::string EncodeBase58Check(std::span< const unsigned char > input)
Encode a byte span into a base58-encoded string, including checksum.
std::string EncodeBase58(std::span< const unsigned char > input)
Why base-58 instead of standard base-64 encoding?