Crates.io | basex-rs |
lib.rs | basex-rs |
version | 0.2.0 |
source | src |
created_at | 2019-08-08 05:06:31.220055 |
updated_at | 2023-04-02 11:27:30.133991 |
description | Base58 implementation. |
homepage | |
repository | https://github.com/zTgx/basex-rs.git |
max_upload_size | |
id | 154929 |
size | 17,329 |
Add dependencies
[dependencies]
basex-rs = "0.2.0"
use basex_rs::{BaseX, ALPHABET_BITCOIN};
let src = vec![28, 215, 33, 155];
let encoded = BaseX::with_alphabet(ALPHABET_BITCOIN).to_bs58(&src);
assert_eq!(encoded, "jkuzA".to_string());