16 static const std::array<unsigned char, 32> buff = {
18 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
19 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
31 static const std::array<unsigned char, 32> buff = {
33 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203, 163, 36, 58, 147,
34 227, 139, 2, 215, 100, 91, 38, 11, 141, 253, 40, 117, 21, 16, 90,
46 const char* addr =
"17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem";
47 std::vector<unsigned char> vch;
std::string EncodeBase58(Span< const unsigned char > input)
Why base-58 instead of standard base-64 encoding?
std::string EncodeBase58Check(Span< const unsigned char > input)
Encode a byte span into a base58-encoded string, including checksum.
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).
static void Base58Decode(benchmark::Bench &bench)
BENCHMARK(Base58Encode, benchmark::PriorityLevel::HIGH)
static void Base58Encode(benchmark::Bench &bench)
static void Base58CheckEncode(benchmark::Bench &bench)
Main entry point to nanobench's benchmarking facility.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Bench & batch(T b) noexcept
Sets the batch size.
Bench & unit(char const *unit)
Sets the operation unit.