Adding trait implementations (#12)

This commit is contained in:
Kevin Lewi
2021-09-28 19:44:57 -07:00
committed by GitHub
parent 4206fdbf48
commit 85fb480b78
6 changed files with 330 additions and 175 deletions
+5
View File
@@ -119,6 +119,11 @@ pub trait Group:
/// Compares in constant time if the scalars are equal
fn ct_equal_scalar(s1: &Self::Scalar, s2: &Self::Scalar) -> bool;
/// Set the contents of self to the identity value
fn zeroize(&mut self) {
*self = <Self as Group>::identity();
}
}
#[cfg(test)]