Expand description
§ZKEVM-Gadgets
A collection of reusable gadgets for the zk_evm circuits.
Modules§
- BatchedIsZero chip works as follows:
- The binary number chip implements functionality to represent any given value in binary bits, which can be compared against a value or expression for equality.
- IsZero gadget works as follows:
- Lt chip can be used to compare LT for two expressions LHS and RHS.
- Chip that implements instructions to check: a * b + c == d (mod 2^256) where a, b, c and d are all 256-bit words.
- Chip that implements permutation fingerprints fingerprints &= \prod_{row_j} \left ( \alpha - \sum_k (\gamma^k \cdot cell_j(k)) \right ) power of gamma are defined in columns to trade more columns with less degrees
- Utility traits, functions used in the crate.
Macros§
- Implementation trait
Expr
for type able to be casted to u64 - Implementation trait
Scalar
for type able to be casted to u64
Functions§
- Restrict an expression to be a boolean.
- Restrict an expression such that 0 <= word < range.