[][src]Crate koibumi_base58

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

InvalidCharacter

Indicates that an invalid Base58 character was found.

Functions

decode

Decodes Base58 string into byte array.

encode

Encodes byte array into Base58 string.