mrdocs::fromBase58Str

Parse the base58 string form of a SymbolID.

Synopsis

std::optional<SymbolID>
fromBase58Str(std::string_view str);

Description

This is the inverse of toBase58Str, used to decode the ids that appear in the generated output (e.g. when a template or extension looks a symbol up by its id).

Return Value

The SymbolID, or std::nullopt if str is not a valid encoding of a 20‐byte SymbolID.

Parameters

Name

Description

str

The base58 string to parse.

Created with MrDocs