Skip to content

Commit

Permalink
Merge branch 'zkvm/keccak/framework' into zkvm/keccak/optimized
Browse files Browse the repository at this point in the history
  • Loading branch information
querolita committed Nov 2, 2023
2 parents 461f9f8 + 1b053ac commit fde4035
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
6 changes: 6 additions & 0 deletions kimchi/src/circuits/berkeley_columns.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ impl<F: Copy, const COLUMNS: usize> ColumnEvaluations<F>
Index(GateType::Rot64) => self
.rot_selector
.ok_or(ExprError::MissingIndexEvaluation(col)),
Index(GateType::KeccakRound) => self
.keccak_round_selector
.ok_or(ExprError::MissingIndexEvaluation(col)),
Index(GateType::KeccakSponge) => self
.keccak_sponge_selector
.ok_or(ExprError::MissingIndexEvaluation(col)),
Permutation(i) => Ok(self.s[i]),
Coefficient(i) => Ok(self.coefficients[i]),
LookupKindIndex(LookupPattern::Xor) => self
Expand Down
26 changes: 26 additions & 0 deletions kimchi/src/tests/keccak.rs

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions kimchi/src/verifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1042,6 +1042,18 @@ where
.as_ref()
.map(|_| Column::Index(GateType::Rot64)),
)
.chain(
verifier_index
.keccak_round_comm
.as_ref()
.map(|_| Column::Index(GateType::KeccakRound)),
)
.chain(
verifier_index
.keccak_sponge_comm
.as_ref()
.map(|_| Column::Index(GateType::KeccakSponge)),
)
//~~ * lookup commitments
//~
.chain(
Expand Down

0 comments on commit fde4035

Please sign in to comment.