|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include "barretenberg/common/thread.hpp"#include "barretenberg/honk/library/grand_product_library.hpp"#include "barretenberg/honk/relation_checker.hpp"#include "barretenberg/translator_vm/translator_flavor.hpp"#include "barretenberg/translator_vm/translator_proving_key.hpp"#include <gtest/gtest.h>#include <unordered_set>Go to the source code of this file.
Classes | |
| class | TranslatorRelationCorrectnessTests |
Functions | |
| TEST_F (TranslatorRelationCorrectnessTests, TranslatorExtraRelationsCorrectness) | |
| Test the correctness of TranslatorFlavor's extra relations (TranslatorOpcodeConstraintRelation and TranslatorAccumulatorTransferRelation) | |
| TEST_F (TranslatorRelationCorrectnessTests, Decomposition) | |
| Test the correctness of TranslatorFlavor's Decomposition Relation. | |
| TEST_F (TranslatorRelationCorrectnessTests, NonNative) | |
| Test the correctness of TranslatorFlavor's NonNativeField Relation. | |
| TEST_F (TranslatorRelationCorrectnessTests, ZeroKnowledgePermutation) | |
| TEST_F (TranslatorRelationCorrectnessTests, ZeroKnowledgeDeltaRange) | |
| TEST_F | ( | TranslatorRelationCorrectnessTests | , |
| Decomposition | |||
| ) |
Test the correctness of TranslatorFlavor's Decomposition Relation.
Decompose a standard 68-bit limb of binary into 5 14-bit limbs and the 6th limb that is the same as the 5th but shifted by 2 bits
Decompose a standard 50-bit top limb into 4 14-bit limbs and the 5th limb that is the same as 5th, but shifted by 6 bits
Decompose the 60-bit top limb of z1 or z2 into 5 14-bit limbs and a 6th limb which is equal to the 5th, but shifted by 10 bits.
Decompose the 52-bit top limb of quotient into 4 14-bit limbs and the 5th limb that is the same as 5th, but shifted by 4 bits
Decompose relation wide limb into 6 14-bit limbs
Definition at line 92 of file relation_correctness.test.cpp.
| TEST_F | ( | TranslatorRelationCorrectnessTests | , |
| NonNative | |||
| ) |
Test the correctness of TranslatorFlavor's NonNativeField Relation.
Definition at line 438 of file relation_correctness.test.cpp.
| TEST_F | ( | TranslatorRelationCorrectnessTests | , |
| TranslatorExtraRelationsCorrectness | |||
| ) |
Test the correctness of TranslatorFlavor's extra relations (TranslatorOpcodeConstraintRelation and TranslatorAccumulatorTransferRelation)
Definition at line 21 of file relation_correctness.test.cpp.
| TEST_F | ( | TranslatorRelationCorrectnessTests | , |
| ZeroKnowledgeDeltaRange | |||
| ) |
Definition at line 628 of file relation_correctness.test.cpp.
| TEST_F | ( | TranslatorRelationCorrectnessTests | , |
| ZeroKnowledgePermutation | |||
| ) |
Definition at line 571 of file relation_correctness.test.cpp.