Crate zkevm_hashes

Source

Modules§

keccak
The zkEVM keccak circuit implementation, with some modifications. Credit goes to https://github.com/privacy-scaling-explorations/zkevm-circuits/tree/main/zkevm-circuits/src/keccak_circuit
sha256
Brecht’s SHA-256 circuit implementation, which he modified from the Keccak bit implementation. Note this circuit does not use lookup tables, only custom gates. The number of columns are fixed (~130). Unlike keccak, it is not configurable.
util
Util

Macros§

address
Create an Address from a hex string. Panics on invalid input.
impl_expr
Implementation trait Expr for type able to be casted to u64
word
Create a Word from a hex string. Panics on invalid input.
word_map
Create a Word to Word HashMap from pairs of hex strings. Panics on invalid input.