Definition at line 23 of file chonk.test.cpp.
◆ Builder
◆ ChonkVerifier
◆ CircuitProducer
◆ Commitment
◆ DeciderProver
◆ FF
◆ Flavor
◆ ProverInstance
◆ VerificationKey
◆ VerifierInstance
◆ HidingKernelIOField
Enum for specifying which HidingKernelIO field to test for propagation consistency.
| Enumerator |
|---|
| PAIRING_INPUTS | |
| KERNEL_RETURN_DATA | |
| ECC_OP_TABLES | |
Definition at line 84 of file chonk.test.cpp.
◆ KernelIOField
Enum for specifying which KernelIO field to tamper with in tests.
| Enumerator |
|---|
| PAIRING_INPUTS | |
| ACCUMULATOR_HASH | |
| KERNEL_RETURN_DATA | |
| APP_RETURN_DATA | |
| ECC_OP_TABLES | |
Definition at line 79 of file chonk.test.cpp.
◆ accumulate_and_prove_ivc()
◆ 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 45 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, doubles the app pairing points (creating valid but different points), and verifies that the final Chonk proof fails verification.
Definition at line 91 of file chonk.test.cpp.
◆ test_hiding_kernel_io_propagation()
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 202 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 135 of file chonk.test.cpp.
◆ verify_chonk()
The documentation for this class was generated from the following file: