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

Name

Description

str

The string to decode.

limit

The maximum accepted string length.

Created with MrDocs