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

struct  VKTestParams< Flavor_, IO_ >
 
class  NativeVerificationKeyTests< Params >
 

Typedefs

using TestTypes = testing::Types< VKTestParams< UltraFlavor, stdlib::recursion::honk::DefaultIO< UltraCircuitBuilder > >, VKTestParams< UltraFlavor, stdlib::recursion::honk::RollupIO >, VKTestParams< UltraKeccakFlavor, stdlib::recursion::honk::DefaultIO< UltraCircuitBuilder > >, VKTestParams< MegaFlavor, stdlib::recursion::honk::DefaultIO< MegaCircuitBuilder > > >
 

Functions

 TYPED_TEST_SUITE (NativeVerificationKeyTests, TestTypes)
 
 TYPED_TEST (NativeVerificationKeyTests, VKHashingConsistency)
 Checks that the hash produced from calling hash() is the same as hash_with_origin_tagging().
 
 TYPED_TEST (NativeVerificationKeyTests, VKSizeCheck)
 Check that size of a ultra honk proof matches the corresponding constant.
 

Typedef Documentation

◆ TestTypes

Function Documentation

◆ TYPED_TEST() [1/2]

TYPED_TEST ( NativeVerificationKeyTests  ,
VKHashingConsistency   
)

Checks that the hash produced from calling hash() is the same as hash_with_origin_tagging().

Definition at line 59 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 83 of file native_verification_key.test.cpp.

◆ TYPED_TEST_SUITE()

TYPED_TEST_SUITE ( NativeVerificationKeyTests  ,
TestTypes   
)