2 unstable releases

0.2.0 Dec 11, 2024
0.1.0 Apr 2, 2024

#333 in Magic Beans

Download history 13533/week @ 2024-08-30 14730/week @ 2024-09-06 13242/week @ 2024-09-13 14884/week @ 2024-09-20 13854/week @ 2024-09-27 19468/week @ 2024-10-04 20741/week @ 2024-10-11 16683/week @ 2024-10-18 20804/week @ 2024-10-25 21265/week @ 2024-11-01 19359/week @ 2024-11-08 21586/week @ 2024-11-15 19640/week @ 2024-11-22 21064/week @ 2024-11-29 27622/week @ 2024-12-06 20286/week @ 2024-12-13

92,517 downloads per month
Used in 240 crates (2 directly)

CC0 license

310KB
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.63.0.

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