1 unstable release

0.1.0 Apr 2, 2024

#18 in #base58

Download history 4078/week @ 2024-07-22 6012/week @ 2024-07-29 6779/week @ 2024-08-05 8643/week @ 2024-08-12 12126/week @ 2024-08-19 11829/week @ 2024-08-26 14562/week @ 2024-09-02 13682/week @ 2024-09-09 13513/week @ 2024-09-16 13906/week @ 2024-09-23 15725/week @ 2024-09-30 19505/week @ 2024-10-07 20140/week @ 2024-10-14 17767/week @ 2024-10-21 20759/week @ 2024-10-28 21940/week @ 2024-11-04

81,736 downloads per month
Used in 145 crates (via bitcoin)

CC0 license

300KB
6K SLoC

Bitcoin base58 encoding

This crate provides encoding and decoding of base58 strings as defined by the Bitcoin ecosystem including the checksum.

There are a bunch of crates on crates.io that implement base58 encoding and decoding. The more obviously named ones differ from this crate because:

  1. bitcoin-base58 is transpiled from the C++ code in Bitcoin Core as part of a large long-term transpilation project, whereas this crate is a pure Rust implementation intended to be production-ready and to provide an Rust-idiomatic API.

  2. base58 implements parsing but does not validate checksums (see base58check). It may be appropriate in cases where performance is more important than safety. Appears unmaintained.

  3. base58check Adds checksum to the base58 crate and depends on sha2 for hashing. Appears unmaintained.

This crate uses bitcoin_hashes when hashing to calculate the checksum.

Minimum Supported Rust Version (MSRV)

This library should always compile with any combination of features on Rust 1.56.1.

Licensing

The code in this project is licensed under the Creative Commons CC0 1.0 Universal license. We use the SPDX license list and SPDX IDs.

Dependencies

~155KB