Bitcoin Core 28.99.0
P2P Digital Currency
Classes | Namespaces | Enumerations | Functions | Variables
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.

Classes

struct  bech32::DecodeResult
 

Namespaces

namespace  bech32
 

Enumerations

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

Functions

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...
 

Variables

constexpr size_t bech32::CHECKSUM_SIZE = 6
 The Bech32 and Bech32m checksum size. More...