#base58 #string #decoding #binary

koibumi-base58

A Base58 encoder/decoder library

2 releases

0.0.1 Jan 6, 2021
0.0.0 Sep 6, 2020

#21 in #base58

Download history 4/week @ 2024-02-11 20/week @ 2024-02-18 30/week @ 2024-02-25 10/week @ 2024-03-03 7/week @ 2024-03-10

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

GPL-3.0-or-later

7KB
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);
use koibumi_base58 as base58;

let test = base58::decode("Cn8eVZg")?;
let expected = b"hello";
assert_eq!(test, expected);

Dependencies

~505KB
~11K SLoC