#crypto #bitcoin #hash #digest

bitcoin_hashes

Hash functions used by rust-bitcoin which support rustc 1.29.0

23 releases

0.11.0 Jun 27, 2022
0.10.0 Jul 5, 2021
0.9.7 Jun 18, 2021
0.9.4 Oct 25, 2020
0.1.0 Dec 8, 2018

#1962 in Magic Beans

Download history 17358/week @ 2022-04-21 19056/week @ 2022-04-28 20200/week @ 2022-05-05 18043/week @ 2022-05-12 28495/week @ 2022-05-19 20751/week @ 2022-05-26 22266/week @ 2022-06-02 27584/week @ 2022-06-09 25994/week @ 2022-06-16 26694/week @ 2022-06-23 26543/week @ 2022-06-30 28125/week @ 2022-07-07 28711/week @ 2022-07-14 26648/week @ 2022-07-21 32137/week @ 2022-07-28 27219/week @ 2022-08-04

119,786 downloads per month
Used in 283 crates (61 directly)

CC0 license

185KB
4K SLoC

Status

Bitcoin Hashes Library

This is a simple, no-dependency library which implements the hash functions needed by Bitcoin. These are SHA1, SHA256, SHA256d, SHA512, and RIPEMD160. As an ancilliary thing, it exposes hexadecimal serialization and deserialization, since these are needed to display hashes anway.

Documentation

Minimum Supported Rust Version (MSRV)

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

Contributions

Contributions are welcome, including additional hash function implementations.


lib.rs:

Rust hashes library.

This is a simple, no-dependency library which implements the hash functions needed by Bitcoin. These are SHA256, SHA256d, and RIPEMD160. As an ancillary thing, it exposes hexadecimal serialization and deserialization, since these are needed to display hashes anway.

Dependencies

~0–355KB