bech32::Decode

Decode a Bech32 or Bech32m string.

Synopsis

Declared in <bech32.h>

DecodeResult
Decode(
    std::string const& str,
    CharLimit limit = CharLimit::BECH32);

Return Value

The decode result; its encoding is Encoding::INVALID on failure.

Parameters

NameDescription
strThe string to decode.
limitThe maximum accepted string length.