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

Commit

Permalink
Add comments for evm and keccack number of rows
Browse files Browse the repository at this point in the history
  • Loading branch information
davidnevadoc committed Jun 20, 2023
1 parent 5556178 commit 0722616
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bus-mapping/src/circuit_input_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,15 @@ impl CircuitInputBuilder<DynamicCParams> {
* 2
+ 2;
let max_rws: usize = self.block_ctx.rwc.into();
// Computing the number of rows for the EVM circuit requires the size of ExecStep,
// which is determined in the code of zkevm-circuits and cannot be imported here.
// When the evm circuit receives a 0 value it dynamically computes the minimum
// number of rows necessary.
let max_evm_rows = 0;
// Similarly, computing the number of rows for the Keccak circuit requires
// constants that cannot be accessed from here (NUM_ROUNDS and KECCAK_ROWS).
// With a 0 value the keccak circuit computes dynamically the minimum number of rows
// needed.
let max_keccak_rows = 0;
FixedCParams {
max_rws: max_rws + 1,
Expand Down

0 comments on commit 0722616

Please sign in to comment.