Barretenberg
The ZK-SNARK library at the core of Aztec
Loading...
Searching...
No Matches
native_verification_key.test.cpp File Reference

Go to the source code of this file.

Classes

class  NativeVerificationKeyTests< Flavor >
 

Typedefs

using FlavorTypes = testing::Types< UltraFlavor, UltraKeccakFlavor, UltraRollupFlavor, MegaFlavor, ECCVMFlavor, TranslatorFlavor >
 

Functions

 TYPED_TEST_SUITE (NativeVerificationKeyTests, FlavorTypes)
 
 TYPED_TEST (NativeVerificationKeyTests, VKHashingConsistency)
 Checks that the hash produced from calling to_field_elements and then add_to_independent_hash_buffer is the same as the hash() call and also the same as the hash_through_transcript.
 
 TYPED_TEST (NativeVerificationKeyTests, VKSizeCheck)
 Check that size of a ultra honk proof matches the corresponding constant.
 

Typedef Documentation

◆ FlavorTypes

Function Documentation

◆ TYPED_TEST() [1/2]

TYPED_TEST ( NativeVerificationKeyTests  ,
VKHashingConsistency   
)

Checks that the hash produced from calling to_field_elements and then add_to_independent_hash_buffer is the same as the hash() call and also the same as the hash_through_transcript.

Definition at line 67 of file native_verification_key.test.cpp.

◆ TYPED_TEST() [2/2]

TYPED_TEST ( NativeVerificationKeyTests  ,
VKSizeCheck   
)

Check that size of a ultra honk proof matches the corresponding constant.

If this test FAILS, then the following (non-exhaustive) list should probably be updated as well:

  • VK length formula in ultra_flavor.hpp, mega_flavor.hpp, etc...
  • ultra_transcript.test.cpp
  • constants in yarn-project in: constants.nr, constants.gen.ts, ConstantsGen.sol, lib.nr in bb_proof_verification/src, main.nr of recursive acir_tests programs. with recursive verification circuits

Definition at line 102 of file native_verification_key.test.cpp.

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( NativeVerificationKeyTests  ,
FlavorTypes   
)