3 releases (unstable)

1.0.0-beta.2 Dec 20, 2022
0.7.0 Jul 26, 2024
0.6.0 Nov 30, 2023

#26 in #sha-2

Download history 3043/week @ 2024-06-27 2561/week @ 2024-07-04 2874/week @ 2024-07-11 7961/week @ 2024-07-18 3957/week @ 2024-07-25 3319/week @ 2024-08-01 3328/week @ 2024-08-08 3119/week @ 2024-08-15 3415/week @ 2024-08-22 2668/week @ 2024-08-29 3733/week @ 2024-09-05 4472/week @ 2024-09-12 4404/week @ 2024-09-19 3137/week @ 2024-09-26 3090/week @ 2024-10-03 3057/week @ 2024-10-10

14,781 downloads per month
Used in 4 crates (2 directly)

Apache-2.0

10KB
175 lines

ethereum_hashing

This package contains optimized implementations of hashing functions for Ethereum.

It is maintained by Sigma Prime for use in Lighthouse, with an eye to being useful in the Rust Ethereum ecosystem more broadly. We welcome new contributors!

Please see the docs for more information.


lib.rs:

Optimized SHA256 for use in Ethereum.

The initial purpose of this crate was to provide an abstraction over the hash function used in the beacon chain. 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

~5.5–8MB
~232K SLoC