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);
 
@ INVALID
Failed decoding.
@ BECH32
Bech32 encoding as defined in BIP173.
@ BECH32M
Bech32m encoding as defined in BIP350.
std::string Encode(Encoding encoding, const std::string &hrp, const data &values)
Encode a Bech32 or Bech32m string.
DecodeResult Decode(const std::string &str)
Decode a Bech32 or Bech32m string.
bool CaseInsensitiveEqual(const std::string &s1, const std::string &s2)