Skip to main content

codec_multibase/
lib.rs

1// SPDX-FileCopyrightText: Copyright © 2026 ReallyMe LLC. All rights reserved
2//
3// SPDX-License-Identifier: Apache-2.0
4
5//! Multibase encode/decode. Decoding is panic-free on arbitrary input, including strings whose first character is multi-byte.
6
7mod base58btc;
8mod decode;
9mod encode;
10mod error;
11
12pub use base58btc::{base58btc_decode, base58btc_encode, Base58Error, MAX_BASE58BTC_INPUT_LEN};
13pub use decode::multibase_to_bytes;
14pub use encode::{bytes_to_multibase58btc, bytes_to_multibase_base64url};
15pub use error::MultibaseError;