Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions barretenberg/cpp/src/barretenberg/goblin/batch_merge.test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,22 @@ class TweakableBatchMergeProver : public BatchMergeProver {
}

// Step 6: degree-check poly
bool is_too_many_subtables = flattened_cols.size() > num_degree_check_challenges;
if (is_too_many_subtables) {
// This is the case in which we test that if the prover sends more columns than the max number of tables
// then the verifier rejects
degree_check_challenges.push_back(degree_check_challenges.back() * degree_check_challenge);
}

Polynomial degree_check_poly =
compute_degree_check_polynomial(flattened_cols, degree_check_challenges, max_shift_size);

if (is_too_many_subtables) {
// Remove the extra challenge added above to keep the degree check poly consistent with the rest of the
// proof
degree_check_challenges.pop_back();
}

if (fault_mode == FaultMode::BAD_DEGREE_CHECK_POLY && !degree_check_poly.is_empty()) {
degree_check_poly.at(0) += FF(1);
}
Expand Down
Loading