Skip to content

Commit

Permalink
fix: remove duplicate constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklaayush authored Feb 18, 2024
1 parent d0bc5ec commit 00dd356
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions evm_arithmetization/src/keccak/keccak_stark.rs
Original file line number Diff line number Diff line change
Expand Up @@ -279,11 +279,6 @@ impl<F: RichField + Extendable<D>, const D: usize> Stark<F, D> for KeccakStark<F
let filter = local_values[reg_step(NUM_ROUNDS - 1)];
yield_constr.constraint(filter * (filter - P::ONES));

// If this is not the final step, the filter must be off.
let final_step = local_values[reg_step(NUM_ROUNDS - 1)];
let not_final_step = P::ONES - final_step;
yield_constr.constraint(not_final_step * filter);

// If this is not the final step or a padding row,
// the local and next timestamps must match.
let sum_round_flags = (0..NUM_ROUNDS)
Expand Down Expand Up @@ -451,12 +446,6 @@ impl<F: RichField + Extendable<D>, const D: usize> Stark<F, D> for KeccakStark<F
let constraint = builder.mul_sub_extension(filter, filter, filter);
yield_constr.constraint(builder, constraint);

// If this is not the final step, the filter must be off.
let final_step = local_values[reg_step(NUM_ROUNDS - 1)];
let not_final_step = builder.sub_extension(one_ext, final_step);
let constraint = builder.mul_extension(not_final_step, filter);
yield_constr.constraint(builder, constraint);

// If this is not the final step or a padding row,
// the local and next timestamps must match.
let sum_round_flags =
Expand Down

0 comments on commit 00dd356

Please sign in to comment.