12 std::vector<uint8_t> buffer = {17, 79, 8, 99, 150, 189, 208, 162,
13 22, 23, 203, 163, 36, 58, 147, 227,
14 139, 2, 215, 100, 91, 38, 11, 141,
15 253, 40, 117, 21, 16, 90, 200, 24};
22 const char *addrWithPrefix =
23 "bitcoincash:qprnwmr02d7ky9m693qufj5mgkpf4wvssv0w86tkjd";
24 const char *addrNoPrefix =
"qprnwmr02d7ky9m693qufj5mgkpf4wvssv0w86tkjd";
static void CashAddrEncode(benchmark::Bench &bench)
BENCHMARK(CashAddrEncode)
static void CashAddrDecode(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.
std::pair< std::string, data > Decode(const std::string &str, const std::string &default_prefix)
Decode a cashaddr string.
std::string Encode(const std::string &prefix, const data &payload)
Encode a cashaddr string.