Skip to content

Commit c00ebdd

Browse files
authored
chore: Don't generate proofs of verifier circuits in test (#10405)
To test circuit logic we don't need to generate proofs. Running the circuit checker is much faster and more memory efficient.
1 parent e1e5906 commit c00ebdd

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

barretenberg/cpp/src/barretenberg/stdlib/plonk_recursion/verifier/verifier.test.cpp

+1-7
Original file line numberDiff line numberDiff line change
@@ -345,14 +345,8 @@ template <typename OuterComposer> class stdlib_verifier : public testing::Test {
345345
static void check_recursive_verification_circuit(OuterBuilder& outer_circuit, bool expected_result)
346346
{
347347
info("number of gates in recursive verification circuit = ", outer_circuit.get_estimated_num_finalized_gates());
348-
OuterComposer outer_composer;
349-
auto prover = outer_composer.create_prover(outer_circuit);
350-
auto verifier = outer_composer.create_verifier(outer_circuit);
351-
auto proof = prover.construct_proof();
352-
auto result = verifier.verify_proof(proof);
353-
// bool result = CircuitChecker::check(outer_circuit);
348+
const bool result = CircuitChecker::check(outer_circuit);
354349
EXPECT_EQ(result, expected_result);
355-
static_cast<void>(expected_result);
356350
auto g2_lines = srs::get_bn254_crs_factory()->get_verifier_crs()->get_precomputed_g2_lines();
357351
EXPECT_EQ(check_pairing_point_accum_public_inputs(outer_circuit, g2_lines), true);
358352
}

0 commit comments

Comments
 (0)