Bitcoin Core 31.0.0
P2P Digital Currency
Loading...
Searching...
No Matches
bech32::DecodeResult Struct Reference

#include <bech32.h>

Public Member Functions

 DecodeResult ()
 DecodeResult (Encoding enc, std::string &&h, std::vector< uint8_t > &&d)

Public Attributes

Encoding encoding
 What encoding was detected in the result; Encoding::INVALID if failed.
std::string hrp
 The human readable part.
std::vector< uint8_t > data
 The payload (excluding checksum).

Detailed Description

Definition at line 46 of file bech32.h.

Constructor & Destructor Documentation

◆ DecodeResult() [1/2]

bech32::DecodeResult::DecodeResult ( )
inline

Definition at line 52 of file bech32.h.

◆ DecodeResult() [2/2]

bech32::DecodeResult::DecodeResult ( Encoding enc,
std::string && h,
std::vector< uint8_t > && d )
inline

Definition at line 53 of file bech32.h.

Member Data Documentation

◆ data

std::vector<uint8_t> bech32::DecodeResult::data

The payload (excluding checksum).

Definition at line 50 of file bech32.h.

◆ encoding

Encoding bech32::DecodeResult::encoding

What encoding was detected in the result; Encoding::INVALID if failed.

Definition at line 48 of file bech32.h.

◆ hrp

std::string bech32::DecodeResult::hrp

The human readable part.

Definition at line 49 of file bech32.h.


The documentation for this struct was generated from the following file: