alloy-rs / core

High-performance, well-tested & documented core libraries for Ethereum, in Rust
https://alloy.rs
Apache License 2.0
763 stars 137 forks source link

feat: support Keccak with sha3 #737

Closed xJonathanLEI closed 9 hours ago

xJonathanLEI commented 6 days ago

Adds a new feature sha3-keccak to alloy-primitives that when enabled, uses sha3 for Keccak. This can be desirable as in some cases sha3 is faster.

This feature is added in a completely backward-compatible way: tiny-keccak is still the default, and downstream libs/apps will not suddenly start using sha3 by just doing cargo update.

xJonathanLEI commented 1 day ago

Yo any update on this?

onbjerg commented 12 hours ago

yeah they do produce the same hashes, both crates are impls of https://csrc.nist.gov/pubs/fips/202/final