pub struct FpParameters;

Trait Implementations§

source§

impl FftParameters for FpParameters

§

type BigInt = BigInt<4>

source§

const TWO_ADICITY: u32 = 32u32

Let N be the size of the multiplicative group defined by the field. Then TWO_ADICITY is the two-adicity of N, i.e. the integer s such that N = 2^s * t for some odd integer t.
source§

const TWO_ADIC_ROOT_OF_UNITY: BigInteger = _

2^s root of unity computed by GENERATOR^t
source§

const SMALL_SUBGROUP_BASE: Option<u32> = None

An integer b such that there exists a multiplicative subgroup of size b^k for some integer k.
source§

const SMALL_SUBGROUP_BASE_ADICITY: Option<u32> = None

The integer k such that there exists a multiplicative subgroup of size Self::SMALL_SUBGROUP_BASE^k.
source§

const LARGE_SUBGROUP_ROOT_OF_UNITY: Option<Self::BigInt> = None

GENERATOR^((MODULUS-1) / (2^s * SMALL_SUBGROUP_BASE^SMALL_SUBGROUP_BASE_ADICITY)) Used for mixed-radix FFT.
source§

impl FpParameters for FpParameters

source§

const MODULUS: BigInteger = _

The modulus of the field.
source§

const R: BigInteger = _

Let M be the power of 2^64 nearest to Self::MODULUS_BITS. Then R = M % Self::MODULUS.
source§

const R2: BigInteger = _

R2 = R^2 % Self::MODULUS
source§

const MODULUS_MINUS_ONE_DIV_TWO: BigInteger = _

(Self::MODULUS - 1) / 2
source§

const T: BigInteger = _

t for 2^s * t = MODULUS - 1, and t coprime to 2.
source§

const T_MINUS_ONE_DIV_TWO: BigInteger = _

(t - 1) / 2
source§

const GENERATOR: BigInteger = _

A multiplicative generator of the field. Self::GENERATOR is an element having multiplicative order Self::MODULUS - 1.
source§

const MODULUS_BITS: u32 = 255u32

The number of bits needed to represent the Self::MODULUS.
source§

const CAPACITY: u32 = 254u32

The number of bits that can be reliably stored. (Should equal SELF::MODULUS_BITS - 1)
source§

const REPR_SHAVE_BITS: u32 = 1u32

The number of bits that must be shaved from the beginning of the representation when randomly sampling.
source§

const INV: u64 = 11_037_532_056_220_336_127u64

INV = -MODULUS^{-1} mod 2^64
source§

impl Fp256Parameters for FpParameters

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> Pointable for T

§

const ALIGN: usize = mem::align_of::<T>()

The alignment of pointer.
§

type Init = T

The type for initializers.
§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V