7 #include <validation.h> 17 static const std::array<unsigned char, 32> buff = {
19 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
20 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
32 static const std::array<unsigned char, 32> buff = {
34 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
35 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
39 std::vector<unsigned char> vch;
40 vch.assign(buff.begin(), buff.end());
49 const char* addr =
"17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem";
50 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?
BENCHMARK(Base58Encode, 470 *1000)
std::string EncodeBase58Check(const std::vector< unsigned char > &vchIn)
Encode a byte vector into a base58-encoded string, including checksum.