This repository has been archived by the owner on Dec 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Sync with the recent changes in ark-algebra on pairing and testing (#116
) * Fix another typo in the Jubjub curve comment * fix * progress * get_point_from_x_unchecked * fix * soft link * Fix Bandersnatch * Fix Edwards form of Bandersnatch * Actually fix ed_on_bls12_381_bandersnatch/src/curves/mod.rs * fix * fix * curve-benches * fix the last mul_by_a; fmt Co-authored-by: onewayfunc <[email protected]> Co-authored-by: Pratyush Mishra <[email protected]>
- Loading branch information
1 parent
4228924
commit 3c4c67f
Showing
113 changed files
with
313 additions
and
1,075 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,9 @@ | ||
use ark_algebra_test_templates::{ | ||
curves::*, generate_bilinearity_test, generate_g1_test, generate_g2_test, msm::*, | ||
}; | ||
use ark_ec::{AffineCurve, PairingEngine}; | ||
use ark_ff::{ | ||
fields::{Field, PrimeField}, | ||
One, | ||
}; | ||
use ark_std::{rand::Rng, test_rng}; | ||
use core::ops::MulAssign; | ||
use ark_algebra_test_templates::*; | ||
use ark_ff::fields::Field; | ||
|
||
use crate::{g1, g2, Bn254, Fq12, Fr, G1Affine, G1Projective, G2Affine, G2Projective}; | ||
use crate::{Bn254, G1Projective, G2Projective}; | ||
|
||
generate_g1_test!(bn254; curve_tests; sw_tests;); | ||
generate_g2_test!(bn254; curve_tests; sw_tests;); | ||
generate_bilinearity_test!(Bn254, Fq12); | ||
test_group!(g1; G1Projective; sw); | ||
test_group!(g2; G2Projective; sw); | ||
test_group!(pairing_output; ark_ec::pairing::PairingOutput<Bn254>; msm); | ||
test_pairing!(pairing; crate::Bn254); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE-APACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE-MIT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,8 @@ | ||
use ark_algebra_test_templates::{ | ||
curves::*, generate_bilinearity_test, generate_g1_test, generate_g2_test, msm::*, | ||
}; | ||
use ark_ec::{AffineCurve, PairingEngine}; | ||
use ark_ff::{Field, One, PrimeField}; | ||
use ark_std::{rand::Rng, test_rng}; | ||
use core::ops::MulAssign; | ||
|
||
use crate::*; | ||
use ark_algebra_test_templates::*; | ||
use ark_ff::Field; | ||
|
||
generate_g1_test!(bw6_761; curve_tests; sw_tests;); | ||
generate_g2_test!(bw6_761; curve_tests; sw_tests;); | ||
generate_bilinearity_test!(BW6_761, Fq6); | ||
test_group!(g1; G1Projective; sw); | ||
test_group!(g2; G2Projective; sw); | ||
test_group!(pairing_output; ark_ec::pairing::PairingOutput<BW6_761>; msm); | ||
test_pairing!(pairing; crate::BW6_761); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,7 @@ | ||
use ark_algebra_test_templates::{ | ||
fields::*, generate_field_serialization_test, generate_field_test, | ||
}; | ||
use ark_ff::{Field, One, PrimeField, UniformRand, Zero}; | ||
use ark_serialize::{buffer_bit_byte_size, CanonicalSerialize}; | ||
use ark_std::{rand::Rng, test_rng}; | ||
use core::ops::{AddAssign, MulAssign, SubAssign}; | ||
|
||
use crate::*; | ||
use ark_algebra_test_templates::*; | ||
|
||
generate_field_test!(bw6_761; fq3; fq6_2_on_3; false; mont(12, 6); ); | ||
generate_field_serialization_test!(bw6_761;); | ||
test_field!(fr; Fr; mont_prime_field); | ||
test_field!(fq; Fq; mont_prime_field); | ||
test_field!(fq3; Fq3); | ||
test_field!(fq6; Fq6); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE-APACHE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../LICENSE-MIT |
Oops, something went wrong.