Add more superclasses to Group.

This commit is contained in:
Sean Bowe 2016-09-11 22:04:37 -06:00
parent f2dae1e1de
commit 41ef5fdef0
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ impl Mul for Fr {
fn mul(self, other: Fr) -> Fr { Fr(self.0 * other.0) }
}
pub trait Group: Copy + Clone + PartialEq + Eq + Sized + Add<Self> + Sub<Self> + Neg + Mul<Fr> {
pub trait Group: 'static + Send + Copy + Clone + PartialEq + Eq + Sized + Add<Self, Output=Self> + Sub<Self, Output=Self> + Neg<Output=Self> + Mul<Fr, Output=Self> {
fn zero() -> Self;
fn one() -> Self;
fn random<R: Rng>(rng: &mut R) -> Self;