Struct mina_curves::pasta::fields::fq::FqParameters
source · pub struct FqParameters;
Trait Implementations§
source§impl FftParameters for FqParameters
impl FftParameters for FqParameters
type BigInt = BigInt<4>
source§const TWO_ADICITY: u32 = 32u32
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 = _
const TWO_ADIC_ROOT_OF_UNITY: BigInteger = _
2^s root of unity computed by GENERATOR^t
source§const SMALL_SUBGROUP_BASE: Option<u32> = None
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
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
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 FqParameters
impl FpParameters for FqParameters
source§const R: BigInteger = _
const R: BigInteger = _
Let
M
be the power of 2^64 nearest to Self::MODULUS_BITS
. Then
R = M % Self::MODULUS
.source§const MODULUS_MINUS_ONE_DIV_TWO: BigInteger = _
const MODULUS_MINUS_ONE_DIV_TWO: BigInteger = _
(Self::MODULUS - 1) / 2
source§const T_MINUS_ONE_DIV_TWO: BigInteger = _
const T_MINUS_ONE_DIV_TWO: BigInteger = _
(t - 1) / 2
source§const GENERATOR: BigInteger = _
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
const MODULUS_BITS: u32 = 255u32
The number of bits needed to represent the
Self::MODULUS
.source§const CAPACITY: u32 = 254u32
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
const REPR_SHAVE_BITS: u32 = 1u32
The number of bits that must be shaved from the beginning of
the representation when randomly sampling.
impl Fp256Parameters for FqParameters
Auto Trait Implementations§
impl RefUnwindSafe for FqParameters
impl Send for FqParameters
impl Sync for FqParameters
impl Unpin for FqParameters
impl UnwindSafe for FqParameters
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