#crypto #bitcoin #hash #digest

bitcoin_hashes

Hash functions used by rust-bitcoin which support rustc 1.14.0

13 releases (6 breaking)

0.7.4 Jan 14, 2020
0.7.3 Dec 18, 2019
0.7.2 Nov 30, 2019
0.7.0 Jul 22, 2019
0.1.0 Dec 8, 2018

#87 in Cryptography

Download history 742/week @ 2019-10-07 867/week @ 2019-10-14 813/week @ 2019-10-21 687/week @ 2019-10-28 933/week @ 2019-11-04 1047/week @ 2019-11-11 849/week @ 2019-11-18 1443/week @ 2019-11-25 2250/week @ 2019-12-02 2680/week @ 2019-12-09 1676/week @ 2019-12-16 725/week @ 2019-12-23 608/week @ 2019-12-30 1715/week @ 2020-01-06 1343/week @ 2020-01-13

5,402 downloads per month
Used in 40 crates (25 directly)

CC0 license

155KB
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.

Ok, there is one dependency -- byteorder -- which is used to manage endianness.

Documentation

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