Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

namespace bb::stdlib::recursion::honk {

/**
* @brief Performs recursive verification of the Client IVC proof.
*
* @todo (https://github.com/AztecProtocol/barretenberg/issues/934): Add logic for accumulating the pairing points
* produced by the verifiers (and potentially IPA accumulators for ECCVM verifier)
*/
void ClientIVCRecursiveVerifier::verify(const ClientIVC::Proof& proof)
{
// Perform recursive folding verification
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ TEST_F(ClientIVCRecursionTests, Basic)
// Generate the recursive verification circuit
verifier.verify(proof);

info("Recursive Verifier: num gates = ", builder->num_gates);

EXPECT_EQ(builder->failed(), false) << builder->err();

EXPECT_TRUE(CircuitChecker::check(*builder));
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@

namespace bb::stdlib::recursion::honk {

/**
* @brief Runs the Goblin recursive verifier consisting of ECCVM, Translator and Merge verifiers.
*
* @todo https://github.com/AztecProtocol/barretenberg/issues/934: Add logic for accumulating the pairing points
* produced by the translator and merge verifier (and potentially IPA accumulators for ECCVM verifier)
*/
void GoblinRecursiveVerifier::verify(const GoblinProof& proof)
{
// Run the ECCVM recursive verifier
Expand All @@ -28,9 +34,7 @@ void GoblinRecursiveVerifier::verify(const GoblinProof& proof)
};
translator_verifier.verify_translation(translation_evaluations);

// TODO(https://github.com/AztecProtocol/barretenberg/issues/1024): Perform recursive merge verification once it
// works with Ultra arithmetization
// MergeVerifier merge_verified{ builder };
// [[maybe_unused]] auto merge_pairing_points = merge_verifier.verify_proof(proof.merge_proof);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it couldn't hurt to leave this pairing points stuff or a TODO or something just to highlight that this is incomplete. Maybe there's already an issue for the general lack of aggregation handling?

MergeVerifier merge_verifier{ builder };
merge_verifier.verify_proof(proof.merge_proof);
}
} // namespace bb::stdlib::recursion::honk