Skip to main content

Module base32

Module base32 

Source
Expand description

Base 32 encoding

Enums§

Base32DecodeError
Failure to decode a raw base 32 string.
PrefixedDecodeError
Failure to decode a prefixed base 32 string into a value.

Constants§

FEDIMINT_PREFIX
Prefix used for some of the user-facing Base32 encodings in Fedimint to allow easy identification
RFC4648 🔒
Lowercase RFC 4648 Base32hex alphabet (32 characters).

Functions§

decode
Decodes a base 32 string back to raw bytes. Returns an error if any invalid character is encountered.
decode_prefixed
decode_prefixed_bytes
encode
Encodes the input bytes as Base32 (hex variant) using lowercase characters
encode_prefixed
encode_prefixed_bytes