mirror of
https://github.com/pezkuwichain/bizinikiwi-bn.git
synced 2026-06-13 16:21:20 +00:00
More superclasses.
This commit is contained in:
+15
-1
@@ -50,7 +50,21 @@ impl Mul for Fr {
|
||||
fn mul(self, other: Fr) -> Fr { Fr(self.0 * other.0) }
|
||||
}
|
||||
|
||||
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> {
|
||||
pub trait Group:
|
||||
rustc_serialize::Encodable +
|
||||
rustc_serialize::Decodable +
|
||||
'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;
|
||||
|
||||
Reference in New Issue
Block a user