8 #include "validation.h" 18 static const std::array<unsigned char, 32> buff = {
20 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
21 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
33 static const std::array<unsigned char, 32> buff = {
35 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
36 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
40 std::vector<unsigned char> vch;
41 vch.assign(buff.begin(), buff.end());
50 const char* addr =
"17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem";
51 std::vector<unsigned char> vch;
bool DecodeBase58(const char *psz, std::vector< unsigned char > &vch)
Decode a base58-encoded string (psz) into a byte vector (vchRet).
std::string EncodeBase58(const unsigned char *pbegin, const unsigned char *pend)
Why base-58 instead of standard base-64 encoding?
std::string EncodeBase58Check(const std::vector< unsigned char > &vchIn)
Encode a byte vector into a base58-encoded string, including checksum.