We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea5106e commit fdff330Copy full SHA for fdff330
elliptic-curve/src/public_key.rs
@@ -20,7 +20,7 @@ use generic_array::ArrayLength;
20
///
21
/// These are a thin wrapper around [`AffinePoint`] which simplifies
22
/// encoding/decoding.
23
-#[derive(Copy, Clone, Debug)]
+#[derive(Clone, Debug)]
24
pub struct PublicKey<C>
25
where
26
C: Curve + ProjectiveArithmetic,
@@ -185,6 +185,15 @@ where
185
}
186
187
188
+impl<C> Copy for PublicKey<C>
189
+where
190
+ C: Curve + ProjectiveArithmetic,
191
+ FieldBytes<C>: From<Scalar<C>> + for<'r> From<&'r Scalar<C>>,
192
+ Scalar<C>: PrimeField<Repr = FieldBytes<C>>,
193
+ AffinePoint<C>: Copy + Clone + Debug,
194
+{
195
+}
196
+
197
impl<C> Eq for PublicKey<C>
198
199
0 commit comments