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.
Adds a new feature
sha3-keccak
toalloy-primitives
that when enabled, usessha3
for Keccak. This can be desirable as in some casessha3
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 usingsha3
by just doingcargo update
.