Bitcoin Core  27.99.0
P2P Digital Currency
Classes | Namespaces | Enumerations | Functions
bech32.h File Reference
#include <stdint.h>
#include <string>
#include <vector>
Include dependency graph for bech32.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


struct  bech32::DecodeResult




enum class  bech32::Encoding { bech32::INVALID , bech32::BECH32 , bech32::BECH32M }
enum  bech32::CharLimit : size_t { bech32::BECH32 = 90 , bech32::BECH32 }
 Character limits for Bech32(m) encoded strings. More...


std::string bech32::Encode (Encoding encoding, const std::string &hrp, const std::vector< uint8_t > &values)
 Encode a Bech32 or Bech32m string. More...
DecodeResult bech32::Decode (const std::string &str, CharLimit limit)
 Decode a Bech32 or Bech32m string. More...
std::pair< std::string, std::vector< int > > bech32::LocateErrors (const std::string &str, CharLimit limit)
 Find index of an incorrect character in a Bech32 string. More...