@@ -4,7 +4,7 @@ use crate::{
4
4
point:: NonIdentity , AffinePoint , CurveArithmetic , Error , NonZeroScalar , ProjectivePoint , Result ,
5
5
} ;
6
6
use core:: fmt:: Debug ;
7
- use group:: { Curve as _ , Group } ;
7
+ use group:: { Curve , Group } ;
8
8
9
9
#[ cfg( feature = "alloc" ) ]
10
10
use alloc:: boxed:: Box ;
20
20
crate :: {
21
21
point:: PointCompression ,
22
22
sec1:: { CompressedPoint , EncodedPoint , FromEncodedPoint , ModulusSize , ToEncodedPoint } ,
23
- Curve , FieldBytesSize ,
23
+ FieldBytesSize ,
24
24
} ,
25
25
core:: cmp:: Ordering ,
26
26
subtle:: CtOption ,
@@ -122,7 +122,6 @@ where
122
122
#[ cfg( feature = "sec1" ) ]
123
123
pub fn from_sec1_bytes ( bytes : & [ u8 ] ) -> Result < Self >
124
124
where
125
- C : Curve ,
126
125
FieldBytesSize < C > : ModulusSize ,
127
126
AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
128
127
{
@@ -139,7 +138,7 @@ where
139
138
#[ cfg( feature = "alloc" ) ]
140
139
pub fn to_sec1_bytes ( & self ) -> Box < [ u8 ] >
141
140
where
142
- C : CurveArithmetic + PointCompression ,
141
+ C : PointCompression ,
143
142
AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
144
143
FieldBytesSize < C > : ModulusSize ,
145
144
{
@@ -167,7 +166,7 @@ where
167
166
#[ cfg( feature = "jwk" ) ]
168
167
pub fn from_jwk ( jwk : & JwkEcKey ) -> Result < Self >
169
168
where
170
- C : Curve + JwkParameters ,
169
+ C : JwkParameters ,
171
170
AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
172
171
FieldBytesSize < C > : ModulusSize ,
173
172
{
@@ -178,7 +177,7 @@ where
178
177
#[ cfg( feature = "jwk" ) ]
179
178
pub fn from_jwk_str ( jwk : & str ) -> Result < Self >
180
179
where
181
- C : Curve + JwkParameters ,
180
+ C : JwkParameters ,
182
181
AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
183
182
FieldBytesSize < C > : ModulusSize ,
184
183
{
@@ -189,7 +188,7 @@ where
189
188
#[ cfg( feature = "jwk" ) ]
190
189
pub fn to_jwk ( & self ) -> JwkEcKey
191
190
where
192
- C : Curve + JwkParameters ,
191
+ C : JwkParameters ,
193
192
AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
194
193
FieldBytesSize < C > : ModulusSize ,
195
194
{
@@ -200,7 +199,7 @@ where
200
199
#[ cfg( feature = "jwk" ) ]
201
200
pub fn to_jwk_string ( & self ) -> String
202
201
where
203
- C : Curve + JwkParameters ,
202
+ C : JwkParameters ,
204
203
AffinePoint < C > : FromEncodedPoint < C > + ToEncodedPoint < C > ,
205
204
FieldBytesSize < C > : ModulusSize ,
206
205
{
0 commit comments