|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include <cstddef>#include <cstdint>#include <gtest/gtest.h>#include <vector>#include "barretenberg/commitment_schemes/verification_key.hpp"#include "barretenberg/ecc/curves/grumpkin/grumpkin.hpp"#include "barretenberg/eccvm/eccvm_circuit_builder.hpp"#include "barretenberg/eccvm/eccvm_prover.hpp"#include "barretenberg/eccvm/eccvm_verifier.hpp"#include "barretenberg/honk/library/grand_product_delta.hpp"#include "barretenberg/numeric/uint256/uint256.hpp"#include "barretenberg/relations/permutation_relation.hpp"#include "barretenberg/relations/relation_parameters.hpp"#include "barretenberg/srs/global_crs.hpp"#include "barretenberg/sumcheck/sumcheck.hpp"#include "barretenberg/sumcheck/sumcheck_round.hpp"Go to the source code of this file.
Classes | |
| class | ECCVMTests |
Typedefs | |
| using | FF = ECCVMFlavor::FF |
| using | PK = ECCVMFlavor::ProvingKey |
| using | Transcript = ECCVMFlavor::Transcript |
Functions | |
| ECCVMCircuitBuilder | generate_circuit (numeric::RNG *engine=nullptr) |
| Adds operations in BN254 to the op_queue and then constructs and ECCVM circuit from the op_queue. | |
| ECCVMCircuitBuilder | generate_zero_circuit (numeric::RNG *engine=nullptr, bool zero_scalars=1) |
| void | complete_proving_key_for_test (bb::RelationParameters< FF > &relation_parameters, std::shared_ptr< PK > &pk, std::vector< FF > &gate_challenges) |
| TEST_F (ECCVMTests, ZeroesCoefficients) | |
| TEST_F (ECCVMTests, PointAtInfinity) | |
| TEST_F (ECCVMTests, ScalarEdgeCase) | |
| TEST_F (ECCVMTests, ProofLengthCheck) | |
| Check that size of a ECCVM proof matches the corresponding constant. | |
| TEST_F (ECCVMTests, BaseCaseFixedSize) | |
| TEST_F (ECCVMTests, EqFailsFixedSize) | |
| TEST_F (ECCVMTests, CommittedSumcheck) | |
| TEST_F (ECCVMTests, FixedVK) | |
| Test that the fixed VK from the default constructor agrees with the one computed for an arbitrary circuit. | |
| using FF = ECCVMFlavor::FF |
Definition at line 20 of file eccvm.test.cpp.
| using PK = ECCVMFlavor::ProvingKey |
Definition at line 21 of file eccvm.test.cpp.
| using Transcript = ECCVMFlavor::Transcript |
Definition at line 22 of file eccvm.test.cpp.
| void complete_proving_key_for_test | ( | bb::RelationParameters< FF > & | relation_parameters, |
| std::shared_ptr< PK > & | pk, | ||
| std::vector< FF > & | gate_challenges | ||
| ) |
Definition at line 96 of file eccvm.test.cpp.
| ECCVMCircuitBuilder generate_circuit | ( | numeric::RNG * | engine = nullptr | ) |
Adds operations in BN254 to the op_queue and then constructs and ECCVM circuit from the op_queue.
| engine |
Definition at line 37 of file eccvm.test.cpp.
| ECCVMCircuitBuilder generate_zero_circuit | ( | numeric::RNG * | engine = nullptr, |
| bool | zero_scalars = 1 |
||
| ) |
Definition at line 71 of file eccvm.test.cpp.
| TEST_F | ( | ECCVMTests | , |
| BaseCaseFixedSize | |||
| ) |
Definition at line 193 of file eccvm.test.cpp.
| TEST_F | ( | ECCVMTests | , |
| CommittedSumcheck | |||
| ) |
Definition at line 226 of file eccvm.test.cpp.
| TEST_F | ( | ECCVMTests | , |
| EqFailsFixedSize | |||
| ) |
Definition at line 208 of file eccvm.test.cpp.
| TEST_F | ( | ECCVMTests | , |
| FixedVK | |||
| ) |
Test that the fixed VK from the default constructor agrees with the one computed for an arbitrary circuit.
Definition at line 294 of file eccvm.test.cpp.
| TEST_F | ( | ECCVMTests | , |
| PointAtInfinity | |||
| ) |
Definition at line 138 of file eccvm.test.cpp.
| TEST_F | ( | ECCVMTests | , |
| ProofLengthCheck | |||
| ) |
Check that size of a ECCVM proof matches the corresponding constant.
If this test FAILS, then the following (non-exhaustive) list should probably be updated as well:
Definition at line 183 of file eccvm.test.cpp.
| TEST_F | ( | ECCVMTests | , |
| ScalarEdgeCase | |||
| ) |
Definition at line 152 of file eccvm.test.cpp.
| TEST_F | ( | ECCVMTests | , |
| ZeroesCoefficients | |||
| ) |
Definition at line 124 of file eccvm.test.cpp.