Skip to content

Commit

Permalink
Revert the quick shift fix for public inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
jeanmon committed May 28, 2024
1 parent 9b10946 commit fe2716a
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions bberg/src/verifier_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,7 @@ impl VerifierBuilder for BBFiles {
// TODO(https://github.com/AztecProtocol/aztec-packages/issues/6361): we pad the points to the circuit size in order to get the correct evaluation.
// This is not efficient, and will not be valid in production.
std::vector<FF> new_points(circuit_size, 0);
// We need to shift the points by one to match the public inputs column in the circuit.
// Namely, the latter is prepended with an extra first row to support shifted polynomials.
ASSERT(circuit_size > points.size());
std::copy(points.begin(), points.end(), new_points.data() + 1);
std::copy(points.begin(), points.end(), new_points.data());
Polynomial<FF> polynomial(new_points);
return polynomial.evaluate_mle(challenges);
Expand Down

0 comments on commit fe2716a

Please sign in to comment.