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
14,781 downloads per month
Used in 4 crates
(2 directly)
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