6 releases (3 breaking)
| 0.4.0 | Feb 23, 2026 |
|---|---|
| 0.3.0 | Dec 27, 2025 |
| 0.2.0 | Dec 11, 2024 |
| 0.1.100 | May 27, 2026 |
| 0.1.0 | Apr 2, 2024 |
#245 in Magic Beans
477,246 downloads per month
Used in 739 crates
(8 directly)
535KB
10K
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:
-
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 a Rust-idiomatic API.
-
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. -
base58check Adds checksum to the
base58crate and depends on sha2 for hashing. Appears unmaintained.
This crate uses bitcoin_hashes when hashing to calculate the checksum.