pub struct BLS12Param;Trait Implementations§
Source§impl FpParams<LIMBS_256> for BLS12Param
impl FpParams<LIMBS_256> for BLS12Param
Source§const GENERATOR: Fp256<BLS12Param>
const GENERATOR: Fp256<BLS12Param>
A multiplicative generator of the field.
Self::GENERATOR is an element having multiplicative order
MODULUS - 1.Source§const HAS_MODULUS_SPARE_BIT: bool = _
const HAS_MODULUS_SPARE_BIT: bool = _
MODULUS has a spare bit in the most significant limb.Source§const R2: Uint<N> = _
const R2: Uint<N> = _
R2 = R^2 % MODULUS or R2 = (R^2 - 1) % MODULUS + 1 for convenience
of multiplication.Source§fn add_assign(a: &mut Fp<Self, N>, b: &Fp<Self, N>)
fn add_assign(a: &mut Fp<Self, N>, b: &Fp<Self, N>)
Set
a += b.Source§fn sub_assign(a: &mut Fp<Self, N>, b: &Fp<Self, N>)
fn sub_assign(a: &mut Fp<Self, N>, b: &Fp<Self, N>)
Set
a -= b.Source§fn double_in_place(a: &mut Fp<Self, N>)
fn double_in_place(a: &mut Fp<Self, N>)
Set
a = a + a.Source§fn neg_in_place(a: &mut Fp<Self, N>)
fn neg_in_place(a: &mut Fp<Self, N>)
Set
a = -a;Source§fn square_in_place(a: &mut Fp<Self, N>)
fn square_in_place(a: &mut Fp<Self, N>)
Set
a *= a.Source§fn from_bigint(num: Uint<N>) -> Fp<Self, N>
fn from_bigint(num: Uint<N>) -> Fp<Self, N>
Construct a field element from an integer. Read more
Source§fn into_bigint(elem: Fp<Self, N>) -> Uint<N>
fn into_bigint(elem: Fp<Self, N>) -> Uint<N>
Convert a field element to an integer less than
Self::MODULUS.Auto Trait Implementations§
impl Freeze for BLS12Param
impl RefUnwindSafe for BLS12Param
impl Send for BLS12Param
impl Sync for BLS12Param
impl Unpin for BLS12Param
impl UnwindSafe for BLS12Param
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more