18 const std::string random_string(buffer.begin(), buffer.end());
25 const std::string reencoded =
bech32::Encode(r1.encoding, r1.hrp, r1.data);
29 std::vector<unsigned char> input;
30 ConvertBits<8, 5, true>([&](
unsigned char c) { input.push_back(c); }, buffer.begin(), buffer.end());
32 if (input.size() + 3 + 6 <= 90) {
38 assert(r2.encoding == encoding);