|
Barretenberg
The ZK-SNARK library at the core of Aztec
|
#include "barretenberg/ecc/curves/bn254/fq.hpp"#include "barretenberg/ecc/curves/bn254/fr.hpp"#include "barretenberg/ecc/curves/secp256k1/secp256k1.hpp"#include "barretenberg/ecc/curves/secp256r1/secp256r1.hpp"#include "barretenberg/numeric/random/engine.hpp"#include "barretenberg/numeric/uint256/uint256.hpp"#include "barretenberg/serialize/test_helper.hpp"#include <gtest/gtest.h>Go to the source code of this file.
Classes | |
| class | PrimeFieldTest< F > |
| class | PrimeFieldSqrtTest< typename > |
| class | PrimeFieldCubeRootTest< typename > |
| class | PrimeFieldTwoFiftySixTest< typename > |
| class | PrimeFieldTwoFiftyFourTest< typename > |
Typedefs | |
| using | PrimeFieldTypes = ::testing::Types< bb::fq, bb::fr, secp256k1::fq, secp256k1::fr, secp256r1::fq, secp256r1::fr > |
| using | SqrtFieldTypes = ::testing::Types< bb::fq, bb::fr, secp256k1::fq, secp256r1::fq > |
| using | CubeRootFieldTypes = ::testing::Types< bb::fq, bb::fr, secp256k1::fq, secp256k1::fr > |
| using | TwoFiftySixBitFieldTypes = ::testing::Types< secp256k1::fq, secp256k1::fr > |
| using | TwoFiftyFourBitFieldTypes = ::testing::Types< bb::fq, bb::fr > |
| using CubeRootFieldTypes = ::testing::Types<bb::fq, bb::fr, secp256k1::fq, secp256k1::fr> |
Definition at line 77 of file prime_field.test.cpp.
| using PrimeFieldTypes = ::testing::Types<bb::fq, bb::fr, secp256k1::fq, secp256k1::fr, secp256r1::fq, secp256r1::fr> |
Definition at line 71 of file prime_field.test.cpp.
| using SqrtFieldTypes = ::testing::Types<bb::fq, bb::fr, secp256k1::fq, secp256r1::fq> |
Definition at line 74 of file prime_field.test.cpp.
| using TwoFiftyFourBitFieldTypes = ::testing::Types<bb::fq, bb::fr> |
Definition at line 83 of file prime_field.test.cpp.
| using TwoFiftySixBitFieldTypes = ::testing::Types<secp256k1::fq, secp256k1::fr> |
Definition at line 80 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldCubeRootTest | , |
| CubeRootOfUnity | |||
| ) |
Definition at line 290 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldSqrtTest | , |
| SqrtConsistency | |||
| ) |
Definition at line 273 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldSqrtTest | , |
| SqrtOfOne | |||
| ) |
Definition at line 262 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| AdditionModular | |||
| ) |
Definition at line 168 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| BatchInvert | |||
| ) |
Definition at line 346 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| BoundaryArithmetic | |||
| ) |
Definition at line 563 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| CompileTimeEquality | |||
| ) |
Definition at line 102 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| CompileTimeSmallAddSubMul | |||
| ) |
Definition at line 134 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| CompileTimeUint256Conversion | |||
| ) |
Definition at line 154 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| CrossLimbMultiplication | |||
| ) |
Definition at line 497 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| IsZeroOnModulusForm | |||
| ) |
Definition at line 120 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| MontgomeryRoundtrip | |||
| ) |
Definition at line 249 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| Msgpack | |||
| ) |
Definition at line 623 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| MsgpackRejectsNonCanonical | |||
| ) |
Definition at line 635 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| MultiplicationModular | |||
| ) |
Definition at line 202 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| NearModulusMultiplication | |||
| ) |
Definition at line 532 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| PlusEqualsInt | |||
| ) |
Definition at line 372 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| PostfixIncrement | |||
| ) |
Definition at line 401 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| PowOneExponent | |||
| ) |
Definition at line 318 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| PowThree | |||
| ) |
Definition at line 334 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| PowTwo | |||
| ) |
Definition at line 326 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| PowZeroExponent | |||
| ) |
Definition at line 309 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| PrefixIncrement | |||
| ) |
Definition at line 388 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| SingleLimbArithmetic | |||
| ) |
Definition at line 455 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| SquaringModular | |||
| ) |
Definition at line 219 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| SubtractionModular | |||
| ) |
Definition at line 185 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTest | , |
| Uint256Roundtrip | |||
| ) |
Definition at line 234 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTwoFiftyFourTest | , |
| FromMontgomeryFormNoReductionNeeded | |||
| ) |
Test that from_montgomery_form produces results in the valid range, [0, 2p - 1], WITHOUT needing further reduction.
Definition at line 688 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTwoFiftyFourTest | , |
| ToMontgomeryFormNoReductionNeeded | |||
| ) |
Test that to_montgomery_form produces results in the valid range, [0, 2p - 1], WITHOUT needing further reduction.
Definition at line 736 of file prime_field.test.cpp.
| TYPED_TEST | ( | PrimeFieldTwoFiftySixTest | , |
| AddYieldsLimbsBiggerThanModulus | |||
| ) |
Definition at line 420 of file prime_field.test.cpp.
| TYPED_TEST_SUITE | ( | PrimeFieldCubeRootTest | , |
| CubeRootFieldTypes | |||
| ) |
| TYPED_TEST_SUITE | ( | PrimeFieldSqrtTest | , |
| SqrtFieldTypes | |||
| ) |
| TYPED_TEST_SUITE | ( | PrimeFieldTest | , |
| PrimeFieldTypes | |||
| ) |
| TYPED_TEST_SUITE | ( | PrimeFieldTwoFiftyFourTest | , |
| TwoFiftyFourBitFieldTypes | |||
| ) |
| TYPED_TEST_SUITE | ( | PrimeFieldTwoFiftySixTest | , |
| TwoFiftySixBitFieldTypes | |||
| ) |