pub struct FrParameters;

Trait Implementations§

TWO_ADIC_ROOT_OF_UNITY = 8065159656716812877374967518403273466521432693661810619979959746626482506078 Encoded in Montgomery form, the value is (8065159656716812877374967518403273466521432693661810619979959746626482506078 * R % q) = 7039866554349711480672062101017509031917008525101396696252683426045173093960

TWO_ADIC_ROOT_OF_UNITY^2^i for i := 0..TWO_ADICITY-1
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. 2^s * t = MODULUS - 1 with t odd. This is the two-adicity of the prime. Read more
An integer b such that there exists a multiplicative subgroup of size b^k for some integer k. Read more
The integer k such that there exists a multiplicative subgroup of size Self::SMALL_SUBGROUP_BASE^k. Read more
GENERATOR^((MODULUS-1) / (2^s * SMALL_SUBGROUP_BASE^SMALL_SUBGROUP_BASE_ADICITY)) Used for mixed-radix FFT. Read more

GENERATOR = 22 Encoded in Montgomery form, so the value is (22 * R) % q = 5642976643016801619665363617888466827793962762719196659561577942948671127251

MODULUS = 8444461749428370424248824938781546531375899335154063827935233455917409239041

(r - 1)/2 = 4222230874714185212124412469390773265687949667577031913967616727958704619520

t = (r - 1) / 2^s = 60001509534603559531609739528203892656505753216962260608619555

(t - 1) / 2 = 30000754767301779765804869764101946328252876608481130304309777

The number of bits that can be reliably stored. (Should equal SELF::MODULUS_BITS - 1) Read more
INV = -(MODULUS^{-1} mod MODULUS) mod MODULUS
The number of bits needed to represent the Self::MODULUS.
R = 2^256 % Self::MODULUS
R2 = R^2 % Self::MODULUS
The number of bits that must be shaved from the beginning of the representation when randomly sampling. Read more
An array of the parameters optimized for constraints (rate, alpha, full_rounds, partial_rounds, skip_matrices) for rate = 2, 3, 4, 5, 6, 7, 8 Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

The alignment of pointer.
The type for initializers.
Initializes a with the given initializer. Read more
Dereferences the given pointer. Read more
Mutably dereferences the given pointer. Read more
Drops the object pointed to by the given pointer. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.