#base58

bs58

Another Base58 codec implementation

5 releases

0.2.2 Sep 15, 2018
0.2.1 Jul 12, 2018
0.2.0 Jan 7, 2017
0.1.3 Nov 5, 2016
0.1.2 Nov 2, 2016

#10 in Encoding

Download history 897/week @ 2018-11-17 869/week @ 2018-11-24 828/week @ 2018-12-01 1070/week @ 2018-12-08 842/week @ 2018-12-15 85/week @ 2018-12-22 523/week @ 2018-12-29 942/week @ 2019-01-05 1309/week @ 2019-01-12 1285/week @ 2019-01-19 1522/week @ 2019-01-26 1325/week @ 2019-02-02 1562/week @ 2019-02-09 1703/week @ 2019-02-16 1722/week @ 2019-02-23

3,505 downloads per month
Used in 63 crates (19 directly)

MIT/Apache

37KB
497 lines

bs58 travis-badge cargo-badge license-badge rust-version-badge

Another Rust Base58 codec implementation.

Compared to base58 this is significantly faster at decoding (about 2.4x as fast when decoding 32 bytes), almost the same speed for encoding (about 3% slower when encoding 32 bytes), doesn't have the 128 byte limitation and supports a configurable alphabet.

Compared to rust-base58 this is massively faster (over ten times as fast when decoding 32 bytes, almost 40 times as fast when encoding 32 bytes), has no external dependencies and supports a configurable alphabet.

Minimum Version

bs58 is currently targeted to compile back to Rust 1.13. This is guaranteed to continue working until a non-(cargo)semver compatible update. Optional features are excluded from this policy, they rely on dependencies that do not have such a stable minimum version policy.

Developing

This project uses clippy and denies warnings in CI builds. To ensure your changes will be accepted please check them with cargo clippy (available via rustup component add clippy-preview on nightly rust) before submitting a pull request (along with cargo test as usual).

The nightly date used in CI (and as a consequence, clippy version) is pinned in the .travis.yml to avoid breaking on new warning additions, feel free to update to a new version anytime as part of a pull request.

License

Licensed under either of

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you shall be dual licensed as above, without any additional terms or conditions.

Dependencies

~46KB

  • check? sha2 0.7.1