#crypto #bitcoin #hash #digest

bitcoin_hashes

Hash functions used by rust-bitcoin which support rustc 1.14.0

15 unstable releases (6 breaking)

Uses old Rust 2015

0.7.6 Apr 5, 2020
0.7.4 Jan 14, 2020
0.7.3 Dec 18, 2019
0.7.2 Nov 30, 2019
0.1.0 Dec 8, 2018

#86 in Cryptocurrencies

Download history 1737/week @ 2020-04-18 2259/week @ 2020-04-25 1909/week @ 2020-05-02 2217/week @ 2020-05-09 1982/week @ 2020-05-16 1677/week @ 2020-05-23 3706/week @ 2020-05-30 4897/week @ 2020-06-06 3435/week @ 2020-06-13 1768/week @ 2020-06-20 2473/week @ 2020-06-27 1860/week @ 2020-07-04 1898/week @ 2020-07-11 2316/week @ 2020-07-18 1947/week @ 2020-07-25 2294/week @ 2020-08-01

6,279 downloads per month
Used in 66 crates (29 directly)

CC0 license

165KB
3.5K 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, 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.22.

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