![]() |
Bitcoin Core 22.99.0
P2P Digital Currency
|
Classes | |
| struct | DecodeResult |
Enumerations | |
| enum class | Encoding { INVALID , BECH32 , BECH32M } |
Functions | |
| std::string | Encode (Encoding encoding, const std::string &hrp, const data &values) |
| Encode a Bech32 or Bech32m string. More... | |
| DecodeResult | Decode (const std::string &str) |
| Decode a Bech32 or Bech32m string. More... | |
| std::string | Encode (Encoding encoding, const std::string &hrp, const std::vector< uint8_t > &values) |
| Encode a Bech32 or Bech32m string. More... | |
|
strong |
| DecodeResult bech32::Decode | ( | const std::string & | str | ) |
Decode a Bech32 or Bech32m string.
Definition at line 198 of file bech32.cpp.
| std::string bech32::Encode | ( | Encoding | encoding, |
| const std::string & | hrp, | ||
| const data & | values | ||
| ) |
Encode a Bech32 or Bech32m string.
Definition at line 182 of file bech32.cpp.
| std::string bech32::Encode | ( | Encoding | encoding, |
| const std::string & | hrp, | ||
| const std::vector< uint8_t > & | values | ||
| ) |
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.