openvm_pairing_guest::bn254

Type Alias Scalar

Source
pub type Scalar = Bn254Scalar;

Aliased Type§

struct Scalar(/* private fields */);

Trait Implementations§

Source§

impl Field for Scalar

Source§

const ZERO: Self = <Self as IntMod>::ZERO

The zero element of the field, the additive identity.
Source§

const ONE: Self = <Self as IntMod>::ONE

The one element of the field, the multiplicative identity.
Source§

type SelfRef<'a> = &'a Bn254Scalar

Source§

fn double_assign(&mut self)

Doubles self in-place.
Source§

fn square_assign(&mut self)

Square self in-place
Source§

fn invert(&self) -> Self

Unchecked inversion. See DivUnsafe. Read more