13 static const std::vector<uint8_t> buffer = {
14 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203,
15 163, 36, 58, 147, 227, 139, 2, 215, 100, 91, 38,
16 11, 141, 253, 40, 117, 21, 16, 90, 200, 24};
21 static const std::vector<uint8_t> buffer = {
22 17, 79, 8, 99, 150, 189, 208, 162, 22, 23, 203,
23 163, 36, 58, 147, 227, 139, 2, 215, 100, 91, 38,
24 11, 141, 253, 40, 117, 21, 16, 90, 200, 24};
31 const char *addr =
"17VZNX1SN5NtKa8UQFxwQbFeFc3iqRYhem";
32 std::vector<uint8_t> vch;
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 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).
static void Base58Decode(benchmark::Bench &bench)
static void Base58Encode(benchmark::Bench &bench)
static void Base58CheckEncode(benchmark::Bench &bench)
Main entry point to nanobench's benchmarking facility.
ANKERL_NANOBENCH(NODISCARD) std Bench & batch(T b) noexcept
Sets the batch size.
Bench & run(char const *benchmarkName, Op &&op)
Repeatedly calls op() based on the configuration, and performs measurements.
Bench & unit(char const *unit)
Sets the operation unit.