|
| 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.
|
| |
Definition at line 43 of file chonk.test.cpp.
◆ AccumulateHook
Hook fired after each accumulate() inside run_ivc.
Definition at line 58 of file chonk.test.cpp.
◆ Builder
◆ ChonkVerifier
◆ CircuitProducer
◆ Commitment
◆ DeciderProver
◆ FF
◆ 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 66 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 115 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 146 of file chonk.test.cpp.
◆ verify_chonk()
The documentation for this class was generated from the following file: