Trait Group

Source
pub trait Group:
    Send
    + Sync
    + Copy
    + Clone
    + PartialEq
    + Eq
    + Sized
    + Add<Self, Output = Self>
    + Sub<Self, Output = Self>
    + Neg<Output = Self>
    + Mul<Fr, Output = Self> {
    // Required methods
    fn zero() -> Self;
    fn one() -> Self;
    fn random<R: Rng>(rng: &mut R) -> Self;
    fn is_zero(&self) -> bool;
    fn normalize(&mut self);
    fn multiexp(items: &[(Self, Fr)]) -> Self;
}

Required Methods§

Source

fn zero() -> Self

Source

fn one() -> Self

Source

fn random<R: Rng>(rng: &mut R) -> Self

Source

fn is_zero(&self) -> bool

Source

fn normalize(&mut self)

Source

fn multiexp(items: &[(Self, Fr)]) -> Self

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Group for G1

Source§

impl Group for G2