@ -1,17 +1,17 @@ |
|||||
use ark_algebra_test_templates::curves::{curve_tests, sw_tests};
|
use ark_algebra_test_templates::curves::{curve_tests, sw_tests};
|
||||
use ark_ec::AffineCurve;
|
use ark_ec::AffineCurve;
|
||||
|
|
||||
use crate::{G1Affine, G1Projective, PallasParameters};
|
|
||||
|
use crate::{Affine, PallasParameters, Projective};
|
||||
|
|
||||
#[test]
|
#[test]
|
||||
fn test_projective_curve() {
|
fn test_projective_curve() {
|
||||
curve_tests::<G1Projective>();
|
|
||||
|
curve_tests::<Projective>();
|
||||
sw_tests::<PallasParameters>();
|
sw_tests::<PallasParameters>();
|
||||
}
|
}
|
||||
|
|
||||
#[test]
|
#[test]
|
||||
fn test_generator() {
|
fn test_generator() {
|
||||
let generator = G1Affine::prime_subgroup_generator();
|
|
||||
|
let generator = Affine::prime_subgroup_generator();
|
||||
assert!(generator.is_on_curve());
|
assert!(generator.is_on_curve());
|
||||
assert!(generator.is_in_correct_subgroup_assuming_on_curve());
|
assert!(generator.is_in_correct_subgroup_assuming_on_curve());
|
||||
}
|
}
|
@ -1,17 +1,17 @@ |
|||||
use ark_algebra_test_templates::curves::{curve_tests, sw_tests};
|
use ark_algebra_test_templates::curves::{curve_tests, sw_tests};
|
||||
use ark_ec::AffineCurve;
|
use ark_ec::AffineCurve;
|
||||
|
|
||||
use crate::{G1Affine, G1Projective, VestaParameters};
|
|
||||
|
use crate::{Affine, Projective, VestaParameters};
|
||||
|
|
||||
#[test]
|
#[test]
|
||||
fn test_projective_curve() {
|
fn test_projective_curve() {
|
||||
curve_tests::<G1Projective>();
|
|
||||
|
curve_tests::<Projective>();
|
||||
sw_tests::<VestaParameters>();
|
sw_tests::<VestaParameters>();
|
||||
}
|
}
|
||||
|
|
||||
#[test]
|
#[test]
|
||||
fn test_generator() {
|
fn test_generator() {
|
||||
let generator = G1Affine::prime_subgroup_generator();
|
|
||||
|
let generator = Affine::prime_subgroup_generator();
|
||||
assert!(generator.is_on_curve());
|
assert!(generator.is_on_curve());
|
||||
assert!(generator.is_in_correct_subgroup_assuming_on_curve());
|
assert!(generator.is_in_correct_subgroup_assuming_on_curve());
|
||||
}
|
}
|