16#ifndef BITCOIN_BASE58_H
17#define BITCOIN_BASE58_H
46 std::vector<uint8_t> &
vchRet,
std::string EncodeBase58(Span< const uint8_t > input)
Why base-58 instead of standard base-64 encoding?
std::string EncodeBase58Check(Span< const uint8_t > input)
Encode a byte span into a base58-encoded string, including checksum.
bool DecodeBase58Check(const std::string &str, std::vector< uint8_t > &vchRet, int max_ret_len)
Decode a base58-encoded string (str) that includes a checksum into a byte vector (vchRet),...
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).
A Span is an object that can refer to a contiguous sequence of objects.
T GetRand(T nMax=std::numeric_limits< T >::max()) noexcept
Generate a uniform random integer of type T in the range [0..nMax) nMax defaults to std::numeric_limi...