Updating transcript computation for 3DH (#143)

This commit is contained in:
Kevin Lewi
2021-02-19 12:02:44 -08:00
committed by GitHub
parent 782eeb7090
commit a457d82793
7 changed files with 237 additions and 231 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ use zeroize::Zeroize;
/// A prime-order subgroup of a base field (EC, prime-order field ...). This
/// subgroup is noted additively — as in the draft RFC — in this trait.
pub trait Group: Sized + for<'a> Mul<&'a <Self as Group>::Scalar, Output = Self> {
pub trait Group: Copy + Sized + for<'a> Mul<&'a <Self as Group>::Scalar, Output = Self> {
/// The type of base field scalars
type Scalar: Zeroize + Clone;
/// The byte length necessary to represent scalars