src/Bech32.cpp
Data expand_hrp(const std::string& hrp) {
    Data ret;
    ret.resize(hrp.size() * 2 + 1);
    for (size_t i = 0; i < hrp.size(); ++i) {
        unsigned char c = hrp[i];
        ret[i] = c >> 5;
        ret[i + hrp.size() + 1] = c & 0x1f;
    }
    ret[hrp.size()] = 0;
    return ret;
}
/** Expand a HRP for use in checksum computation. */
Expand a HRP for use in checksum computation.
Expand a HRP for use in checksum computation .
Data expand_hrp(const std::string& hrp) {
    Data ret;
    ret.resize(hrp.size() * 2 + 1);
    for (size_t i = 0; i < hrp.size(); ++i) {
        unsigned char c = hrp[i];
        ret[i] = c >> 5;
        ret[i + hrp.size() + 1] = c & 0x1f;
    }
    ret[hrp.size()] = 0;
    return ret;
}
Data expand_hrp ( const std :: string & hrp ) { Data ret ; ret . resize ( hrp . size ( ) * 2 + 1 ) ; for ( size_t i = 0 ; i < hrp . size ( ) ; ++ i ) { unsigned char c = hrp [ i ] ; ret [ i ] = c >> 5 ; ret [ i + hrp . size ( ) + 1 ] = c & 0x1f ; } ret [ hrp . size ( ) ] = 0 ; return ret ; }
Expand a HRP for use in checksum computation.
Expand a HRP for use in checksum computation .