Skip to content

Commit

Permalink
Remove Group import
Browse files Browse the repository at this point in the history
  • Loading branch information
mmaker committed May 10, 2023
1 parent 0263f26 commit 2266869
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ec/src/scalar_mul/glv.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::Group;
use crate::AdditiveGroup;
use crate::{
short_weierstrass::{Affine, Projective, SWCurveConfig},
CurveGroup,
Expand Down
7 changes: 2 additions & 5 deletions ec/src/scalar_mul/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,8 @@ pub mod fixed_base;
pub mod variable_base;

use crate::PrimeGroup;
use crate::{
short_weierstrass::{Affine, Projective, SWCurveConfig},
Group,
};
use ark_ff::Zero;
use crate::short_weierstrass::{Affine, Projective, SWCurveConfig};
use ark_ff::{AdditiveGroup, Zero};
use ark_std::{
ops::{Add, AddAssign, Mul, Neg, Sub, SubAssign},
vec::Vec,
Expand Down
2 changes: 1 addition & 1 deletion ff/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ let d = a - b;
// ... double elements ...
assert_eq!(c + d, a.double());
// ... negate them ...
assert_eq!(d, F::zero() - d);
assert_ne!(d, -d);

// ... and multiply them by scalars:
let e = d * c;
Expand Down
2 changes: 1 addition & 1 deletion test-templates/src/glv.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ use std::ops::Mul;
use ark_ec::{
scalar_mul::{glv::GLVConfig, sw_double_and_add_affine, sw_double_and_add_projective},
short_weierstrass::{Affine, Projective},
AffineRepr, CurveGroup, Group,
AffineRepr, CurveGroup, PrimeGroup,
};
use ark_ff::PrimeField;
use ark_std::UniformRand;
Expand Down

0 comments on commit 2266869

Please sign in to comment.