Skip to main content

Crate codec_multibase

Crate codec_multibase 

Source
Expand description

Multibase encode/decode. Decoding is panic-free on arbitrary input, including strings whose first character is multi-byte.

Enums§

Base58Error
Error returned when base58btc decoding fails.
MultibaseError
Error returned when decoding a multibase string fails.

Constants§

MAX_BASE58BTC_DECODED_LEN
Maximum decoded bytes whose worst-case base58btc spelling fits the text cap. Includes the two-byte multicodec prefix of a 4096-byte RSA public key.
MAX_BASE58BTC_INPUT_LEN
Maximum accepted base58btc input length.

Functions§

base58btc_decode
Decodes a base58btc string into bytes.
base58btc_encode
Encodes bytes as a base58btc string.
bytes_to_multibase58btc
Encode bytes using multibase base58btc with the z prefix.
bytes_to_multibase_base64url
Encode bytes using multibase base64url with the u prefix.
multibase_to_bytes
Decode a supported multibase string to raw bytes.