Classes | |
struct | DecodeResult |
Enumerations | |
enum class | Encoding { INVALID , BECH32 , BECH32M } |
Functions | |
std::string | encode (const std::string &hrp, const data &values, Encoding encoding) |
DecodeResult | decode (const std::string &str) |
std::string | encode (const std::string &hrp, const std::vector< uint8_t > &values, Encoding encoding) |
|
strong |
DecodeResult bech32::decode | ( | const std::string & | str | ) |
Decode a Bech32 or Bech32m string.
std::string bech32::encode | ( | const std::string & | hrp, |
const data & | values, | ||
Encoding | encoding | ||
) |
Encode a Bech32 or Bech32m string.
std::string bech32::encode | ( | const std::string & | hrp, |
const std::vector< uint8_t > & | values, | ||
Encoding | encoding | ||
) |
Encode a Bech32 or Bech32m string. If hrp contains uppercase characters, this will cause an assertion error. Encoding must be one of BECH32 or BECH32M.