mirror of
https://github.com/arnaucube/ark-curves-cherry-picked.git
synced 2026-01-08 23:11:29 +01:00
Optimizations to field and curve arithmetic
This commit is contained in:
@@ -11,9 +11,9 @@ test_field!(fq6; Fq6);
|
||||
#[test]
|
||||
fn test_fq3_more() {
|
||||
let mut rng = test_rng();
|
||||
let a: Fq3 = rng.gen();
|
||||
let mut a: Fq3 = rng.gen();
|
||||
assert_eq!(
|
||||
a * Fq6Config::NONRESIDUE,
|
||||
<Fp6ConfigWrapper<Fq6Config>>::mul_base_field_by_nonresidue(&a)
|
||||
*<Fp6ConfigWrapper<Fq6Config>>::mul_base_field_by_nonresidue_in_place(&mut a)
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user