Skip to content

Commit

Permalink
minor updates #116
Browse files Browse the repository at this point in the history
  • Loading branch information
tshchelovek committed Mar 22, 2023
1 parent 207a935 commit a3354b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions include/nil/blueprint/utils/satisfiability_check.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ namespace nil {
}
}

if (!must_pass) {
std::cout << "All constraints are satisfied." << std::endl;
return false;
}
return true;
}

Expand Down
6 changes: 5 additions & 1 deletion test/test_plonk_component.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,11 @@ namespace nil {
bool verifier_res = zk::snark::placeholder_verifier<BlueprintFieldType, placeholder_params>::process(
public_preprocessed_data, proof, bp, fri_params);

BOOST_CHECK(verifier_res);
if (must_pass) {
BOOST_CHECK(verifier_res);
} else {
BOOST_CHECK(!verifier_res);
}
#endif
}
} // namespace crypto3
Expand Down

0 comments on commit a3354b5

Please sign in to comment.