Expand description
Multibase encode/decode. Decoding is panic-free on arbitrary input, including strings whose first character is multi-byte.
Enums§
- Base58
Error - Error returned when base58btc decoding fails.
- Multibase
Error - 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
zprefix. - bytes_
to_ multibase_ base64url - Encode bytes using multibase base64url with the
uprefix. - multibase_
to_ bytes - Decode a supported multibase string to raw bytes.