cardano::BASE58 class

A static class to encode and decode bytes to and from base58.

Public static functions

static auto decode(std::string_view str) →  std::vector<uint8_t>
Static method to decode a base58 hex string to a raw byte string.
static auto decode_hex(std::string_view str) →  std::string
Static method to decode a base58 hex string to a raw hex string.
static auto encode(std::span<const uint8_t> values) →  std::string
Static method to encode a raw byte string into a base58 hex string.
static auto encode_hex(std::string_view hex_values) →  std::string
Static method to encode a raw hex string into a base58 hex string.

Function documentation

static std::vector<uint8_t> cardano::BASE58::decode(std::string_view str)

Static method to decode a base58 hex string to a raw byte string.

Parameters
str The base58 hex string to decode.
Returns The decoded raw byte string.

static std::string cardano::BASE58::decode_hex(std::string_view str)

Static method to decode a base58 hex string to a raw hex string.

Parameters
str The base58 hex string to decode.
Returns The decoded raw hex string.

static std::string cardano::BASE58::encode(std::span<const uint8_t> values)

Static method to encode a raw byte string into a base58 hex string.

Parameters
values The raw byte string to encode.
Returns The encoded base58 hex string.

static std::string cardano::BASE58::encode_hex(std::string_view hex_values)

Static method to encode a raw hex string into a base58 hex string.

Parameters
hex_values The raw hex string to encode.
Returns The encoded base58 hex string.