base58ck

Crates.iobase58ck
lib.rsbase58ck
version0.2.0
sourcesrc
created_at2024-04-02 20:36:00.596195
updated_at2024-12-11 16:59:15.590848
descriptionBitcoin base58 encoding with checksum.
homepage
repositoryhttps://github.com/rust-bitcoin/rust-bitcoin/
max_upload_size
id1194278
size21,839
Andrew Poelstra (apoelstra)

documentation

README

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.

Commit count: 5381

cargo fmt