2 releases

0.0.1 Jan 6, 2021
0.0.0 Sep 6, 2020

#7 in #base58

21 downloads per month
Used in 11 crates (via koibumi-core)

GPL-3.0-or-later

6KB
93 lines

This crate is a Base58 encoder/decoder library.

The library is intended to be used to implement a Bitmessage address encoder/decoder.


lib.rs:

This crate is a Base58 encoder/decoder library.

The library is intended to be used to implement a Bitmessage address encoder/decoder.

Examples

use koibumi_base58 as base58;

let test = base58::encode(b"hello");
let expected = "Cn8eVZg";
assert_eq!(test, expected);
# Ok::<(), Box<dyn std::error::Error>>(())
use koibumi_base58 as base58;

let test = base58::decode("Cn8eVZg")?;
let expected = b"hello";
assert_eq!(test, expected);
# Ok::<(), Box<dyn std::error::Error>>(())

Dependencies

~470KB
~10K SLoC