|
| using | AccumulateHook = std::function< void(Chonk &, size_t)> |
| | Hook fired after each accumulate() inside run_ivc.
|
| |
|
| static void | tamper_with_proof (HonkProof &proof, size_t public_inputs_offset) |
| | Tamper with a proof.
|
| |
| static std::pair< ChonkProof, std::shared_ptr< MegaZKFlavor::VKAndHash > > | run_ivc (size_t num_app_circuits, TestSettings settings={}, const AccumulateHook &post_hook=nullptr, bool check_circuit_sizes=false) |
| |
| static std::pair< ChonkProof, std::shared_ptr< MegaZKFlavor::VKAndHash > > | run_ivc (std::vector< bool > leading_is_kernel_flags, TestSettings settings={}, const AccumulateHook &post_hook=nullptr, bool check_circuit_sizes=false) |
| |
| static std::pair< ChonkProof, std::shared_ptr< MegaZKFlavor::VKAndHash > > | accumulate_and_prove_ivc (size_t num_app_circuits, TestSettings settings={}, bool check_circuit_sizes=false) |
| |
| static bool | verify_chonk (const ChonkProof &proof, const std::shared_ptr< MegaZKFlavor::VKAndHash > &vk_and_hash) |
| |
| static void | test_app_io_tampering () |
| | Helper function to test tampering with AppIO pairing inputs.
|
| |
| static void | test_kernel_io_tampering (KernelIOField field_to_tamper) |
| | Helper function to test tampering with KernelIO fields.
|
| |
| static void | test_kernel_return_data_propagation () |
| | Helper function to test HidingKernelIO field propagation consistency.
|
| |
Definition at line 43 of file chonk.test.cpp.
◆ AccumulateHook
Hook fired after each accumulate() inside run_ivc.
Definition at line 62 of file chonk.test.cpp.
◆ Builder
◆ ChonkVerifier
◆ CircuitProducer
◆ Commitment
◆ DeciderProver
◆ FF
◆ Flavor
◆ ProverInstance
◆ VerificationKey
◆ VerifierInstance
◆ accumulate_and_prove_ivc()
◆ run_ivc() [1/2]
◆ run_ivc() [2/2]
◆ run_ivc_impl()
◆ SetUpTestSuite()
| static void ChonkTests::SetUpTestSuite |
( |
| ) |
|
|
inlinestaticprotected |
◆ tamper_with_proof()
| static void ChonkTests::tamper_with_proof |
( |
HonkProof & |
proof, |
|
|
size_t |
public_inputs_offset |
|
) |
| |
|
inlinestatic |
Tamper with a proof.
The first value in the proof after the public inputs is the commitment to the wire w.l (see OinkProver). We modify the commitment by adding Commitment::one().
Definition at line 70 of file chonk.test.cpp.
◆ test_app_io_tampering()
| static void ChonkTests::test_app_io_tampering |
( |
| ) |
|
|
inlinestatic |
Helper function to test tampering with AppIO pairing inputs.
Accumulates circuits, changes the app pairing points (creating valid but different points), and verifies that the final Chonk proof fails verification.
Definition at line 119 of file chonk.test.cpp.
◆ test_kernel_io_tampering()
| static void ChonkTests::test_kernel_io_tampering |
( |
KernelIOField |
field_to_tamper | ) |
|
|
inlinestatic |
Helper function to test tampering with KernelIO fields.
Accumulates circuits, tampers with the specified field in the Init Kernel proof, and verifies that the final Chonk proof fails verification.
Definition at line 150 of file chonk.test.cpp.
◆ test_kernel_return_data_propagation()
| static void ChonkTests::test_kernel_return_data_propagation |
( |
| ) |
|
|
inlinestatic |
Helper function to test HidingKernelIO field propagation consistency.
Accumulates circuits, extracts the specified field from Tail kernel's proof, generates the final proof (which creates HidingKernel), and verifies the field propagated correctly to the HidingKernel's proof.
Note: This test does not perform proof tampering. Changing the public inputs of HidingKernel would lead to wrong challenges throughout the proof, so instead we verify that the expected input from the Tail kernel matches the expected output in the HidingKernel.
Definition at line 205 of file chonk.test.cpp.
◆ verify_chonk()
The documentation for this class was generated from the following file: