Crate koibumi_base58

source ·
Expand description

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);

Structs§

Functions§

  • Decodes Base58 string into byte array.
  • Encodes byte array into Base58 string.