Skip to content

Commit c32129a

Browse files
committed
elliptic-curve: remove ShrAssign bound on Scalars
Removes the bound from the `CurveArithmetic::Scalar` associated type. I was attempting to figure out why this issue didn't result in any bugs: RustCrypto/elliptic-curves#1319 It appears to be completely unused. The easiest way to fix that bug is to delete all of the relevant code.
1 parent a10ef18 commit c32129a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

elliptic-curve/src/arithmetic.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
33
use crate::{
44
Curve, CurveGroup, Error, FieldBytes, Group, NonZeroScalar, PrimeCurve, ScalarPrimitive,
5-
ops::{Invert, LinearCombination, Mul, Reduce, ShrAssign},
5+
ops::{Invert, LinearCombination, Mul, Reduce},
66
point::{AffineCoordinates, NonIdentity},
77
scalar::{FromUintUnchecked, IsHigh},
88
};
@@ -81,7 +81,6 @@ pub trait CurveArithmetic: Curve {
8181
+ for<'a> Mul<&'a Self::ProjectivePoint, Output = Self::ProjectivePoint>
8282
+ PartialOrd
8383
+ Reduce<Self::Uint, Bytes = FieldBytes<Self>>
84-
+ ShrAssign<usize>
8584
+ TryInto<NonZeroScalar<Self>, Error = Error>
8685
+ ff::Field
8786
+ ff::PrimeField<Repr = FieldBytes<Self>>;

0 commit comments

Comments
 (0)