Skip to content
This repository has been archived by the owner on May 3, 2024. It is now read-only.

Commit

Permalink
saving progress
Browse files Browse the repository at this point in the history
  • Loading branch information
ggkitsas committed Aug 15, 2023
1 parent 7007092 commit e6328d7
Show file tree
Hide file tree
Showing 3 changed files with 177 additions and 141 deletions.
5 changes: 5 additions & 0 deletions zkevm-circuits/src/table/keccak_table.rs
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ impl KeccakTable2 {
let mut keccak = Keccak::default();
keccak.update(input);
let output = keccak.digest();

// println!("keccak_table2 input = {:x?}", input);
// println!("keccak_table2 input len = {:?}", input_len);
// println!("keccak_table2 digest = {:x?}", output);
let output_hi = output.iter().take(16).fold(F::ZERO, |acc, byte| {
acc * F::from(BYTE_POW_BASE) + F::from(*byte as u64)
});
Expand Down Expand Up @@ -272,6 +276,7 @@ impl KeccakTable2 {
for row in Self::assignments(input, challenges) {
// let mut column_index = 0;
for (column, value) in keccak_table_columns.iter().zip_eq(row) {
// println!("keccak table row {}", offset);
region.assign_advice(
|| format!("keccak table row {}", offset),
TryInto::<Column<Advice>>::try_into(*column).unwrap(),
Expand Down
Loading

0 comments on commit e6328d7

Please sign in to comment.