Skip to content

Commit

Permalink
More fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
martun committed Feb 17, 2025
1 parent 531e7eb commit 4efc6fc
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ namespace nil {

// Takes out values of different polynomials at challenge point 'Y' from the evaluation proofs.
// All arguments except 'Z' and 'constraint_system' are output arguments.
static inline bool prepare_verifier_inputs(
static inline void prepare_verifier_inputs(
const eval_storage_type& Z,
const plonk_constraint_system<FieldType> &constraint_system,
const typename public_preprocessor_type::preprocessed_data_type::common_data_type &common_data,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,10 +236,12 @@ struct lookup_argument_test_runner {

typename field_type::value_type verifier_next_challenge = verifier_transcript.template challenge<field_type>();
typename field_type::value_type prover_next_challenge = prover_transcript.template challenge<field_type>();
BOOST_CHECK(verifier_next_challenge == prover_next_challenge);
if (verifier_next_challenge != prover_next_challenge) {
std::cout << "Challenge mismatch between prover/verifier.";
return false;
}

for (int i = 0; i < argument_size; i++) {
BOOST_CHECK(prover_res.F_dfs[i].evaluate(y) == verifier_res[i]);
if (prover_res.F_dfs[i].evaluate(y) != verifier_res[i]) {
std::cout << prover_res.F_dfs[i].evaluate(y) << "!=" << verifier_res[i] << std::endl;
}
Expand All @@ -248,13 +250,11 @@ struct lookup_argument_test_runner {
preprocessed_public_data.common_data->basic_domain->get_domain_element(j)) !=
field_type::value_type::zero()) {
std::cout << "![" << i << "][" << j << "]" << std::endl;

return false;
}
BOOST_CHECK(prover_res.F_dfs[i].evaluate(
preprocessed_public_data.common_data->basic_domain->get_domain_element(j)) ==
field_type::value_type::zero());
}
}
return true;
}

private:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ namespace nil {

// Takes out values of different polynomials at challenge point 'Y' from the evaluation proofs.
// All arguments except 'Z' and 'constraint_system' are output arguments.
static inline bool prepare_verifier_inputs(
static inline void prepare_verifier_inputs(
const eval_storage_type& Z,
const plonk_constraint_system<FieldType> &constraint_system,
const typename public_preprocessor_type::preprocessed_data_type::common_data_type &common_data,
Expand Down

0 comments on commit 4efc6fc

Please sign in to comment.