Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ztgx/basex-rs

base58 with anything alphabet
https://github.com/ztgx/basex-rs

base58 bitcoin flickr ripple rust

Last synced: 2 days ago
JSON representation

base58 with anything alphabet

Awesome Lists containing this project

README

        

# [basex-rs](https://github.com/zTgx/basex-rs.git) [![crate](https://img.shields.io/crates/v/basex-rs.svg)](https://crates.io/crates/basex-rs)

# Usage
Add dependencies
```
[dependencies]
basex-rs = "0.2.0"
```

```rust
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());
```