Skip to content

Commit d51af18

Browse files
committed
Drop CurveArithmetic requirement from CurveWithScalar
1 parent 9f43d0d commit d51af18

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ed448-goldilocks/src/field/scalar.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use core::ops::{
88
Add, AddAssign, Index, IndexMut, Mul, MulAssign, Neg, Shr, ShrAssign, Sub, SubAssign,
99
};
1010
use elliptic_curve::{
11-
CurveArithmetic, PrimeField,
11+
PrimeField,
1212
array::{
1313
Array, ArraySize,
1414
typenum::{Prod, Unsigned},
@@ -41,7 +41,7 @@ pub type ScalarBytes<C> = Array<u8, <C as CurveWithScalar>::ReprSize>;
4141
/// The number of bytes needed to represent the safely create a scalar from a random bytes
4242
pub type WideScalarBytes<C> = Array<u8, Prod<<C as CurveWithScalar>::ReprSize, U2>>;
4343

44-
pub trait CurveWithScalar: 'static + CurveArithmetic + Send + Sync {
44+
pub trait CurveWithScalar: 'static + Sized + Send + Sync {
4545
type ReprSize: ArraySize<ArrayType<u8>: Copy> + Mul<U2, Output: ArraySize<ArrayType<u8>: Copy>>;
4646

4747
fn from_bytes_mod_order_wide(input: &WideScalarBytes<Self>) -> Scalar<Self>;

0 commit comments

Comments
 (0)