8static constexpr size_t SMALL_LOG_2_NUM_GATES = 5;
17 size_t num_app_circuits = 1)
20 const size_t num_circuits = circuit_producer.total_num_circuits;
21 Chonk ivc{ num_circuits };
23 TestSettings settings{ .log2_num_gates = SMALL_LOG_2_NUM_GATES };
24 for (
size_t j = 0; j < num_circuits; ++j) {
25 circuit_producer.construct_and_accumulate_next_circuit(ivc, settings);
27 return { ivc.prove(), ivc.get_hiding_kernel_vk_and_hash() };
33 auto [proof1, vk1] = generate_chonk_proof();
34 auto [proof2, vk2] = generate_chonk_proof();
45 auto [proof,
vk] = generate_chonk_proof();
61 auto [proof1, vk1] = generate_chonk_proof();
62 auto [proof2, vk2] = generate_chonk_proof();
65 ASSERT_FALSE(proof2.goblin_proof.ipa_proof.empty());
66 proof2.goblin_proof.ipa_proof[0] = proof2.goblin_proof.ipa_proof[0] +
bb::fr(1);
82 auto [proof1, vk1] = generate_chonk_proof();
83 auto [proof2, vk2] = generate_chonk_proof();
86 std::swap(proof1.goblin_proof, proof2.goblin_proof);
#define BB_DISABLE_ASSERTS()
TEST_F(ChonkBatchVerifierTests, BatchVerifyTwoValidProofs)
static void SetUpTestSuite()
PrivateFunctionExecutionMockCircuitProducer CircuitProducer
static std::pair< ChonkProof, std::shared_ptr< MegaZKFlavor::VKAndHash > > generate_chonk_proof(size_t num_app_circuits=1)
static bool verify(std::span< const Input > inputs)
Verify multiple Chonk proofs with batched IPA verification.
The IVC scheme used by the aztec client for private function execution.
std::filesystem::path bb_crs_path()
void init_file_crs_factory(const std::filesystem::path &path)
Entry point for Barretenberg command-line interface.
::testing::Types< BN254Settings, GrumpkinSettings > TestSettings
field< Bn254FrParams > fr
VerifierCommitmentKey< Curve > vk
constexpr decltype(auto) get(::tuplet::tuple< T... > &&t) noexcept