3 releases (unstable)
1.0.0-beta.2 | Dec 20, 2022 |
---|---|
0.7.0 | Jul 26, 2024 |
0.6.0 | Nov 30, 2023 |
#31 in #sha-2
12,791 downloads per month
Used in 5 crates
(3 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
~6–8MB
~235K SLoC