2 unstable releases

0.2.0 Jul 29, 2021
0.1.0 Jul 31, 2019

#12 in #hash-ring

Download history 548/week @ 2024-01-06 432/week @ 2024-01-13 732/week @ 2024-01-20 689/week @ 2024-01-27 616/week @ 2024-02-03 630/week @ 2024-02-10 635/week @ 2024-02-17 669/week @ 2024-02-24 436/week @ 2024-03-02 479/week @ 2024-03-09 389/week @ 2024-03-16 261/week @ 2024-03-23 534/week @ 2024-03-30 1188/week @ 2024-04-06 1292/week @ 2024-04-13 802/week @ 2024-04-20

3,851 downloads per month

Apache-2.0

9KB
175 lines

Optimized SHA256 for use in Ethereum 2.0.

The initial purpose of this crate was to provide an abstraction over the hash function used in Ethereum 2.0. The hash function changed during the specification process, so defining it once in this crate made it easy to replace.

Now this crate serves primarily as a wrapper over two SHA256 crates: sha2 and ring – which it switches between at runtime based on the availability of SHA intrinsics.

Dependencies

~7.5MB
~229K SLoC