Trait rabe_bn::Group

source ·
pub trait Group: 'static + Send + Sync + Copy + Clone + PartialEq + Eq + Serialize + DeserializeOwned + 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 + ?Sized>(rng: &mut R) -> Self;
    fn is_zero(&self) -> bool;
    fn into_bytes(&self) -> Vec<u8>;
    fn normalize(&mut self);
}

Required Methods§

source

fn zero() -> Self

source

fn one() -> Self

source

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

source

fn is_zero(&self) -> bool

source

fn into_bytes(&self) -> Vec<u8>

source

fn normalize(&mut self)

Object Safety§

This trait is not object safe.

Implementors§

source§

impl Group for G1

source§

impl Group for G2