pub trait IsModulus<U>: Debug {
    const MODULUS: U;
}
Expand description

This trait is necessary for us to be able to use unsigned integer types bigger than u128 (the biggest native unit) as constant generics. This trait should be removed when Rust supports this feature.

Required Associated Constants§

source

const MODULUS: U

Object Safety§

This trait is not object safe.

Implementors§

source§

impl IsModulus<UnsignedInteger<1>> for MontgomeryConfigBabybear31PrimeField

source§

const MODULUS: U64 = _

source§

impl IsModulus<UnsignedInteger<1>> for MontgomeryConfigU64GoldilocksPrimeField

source§

const MODULUS: U64 = _

source§

impl IsModulus<UnsignedInteger<1>> for MontgomeryConfigMersenne31PrimeField

source§

const MODULUS: U64 = _

source§

impl IsModulus<UnsignedInteger<4>> for FqConfig

source§

const MODULUS: U256 = BANDERSNATCH_PRIME_FIELD_ORDER

source§

impl IsModulus<UnsignedInteger<4>> for lambdaworks_math::elliptic_curve::short_weierstrass::curves::bls12_381::default_types::FrConfig

Modulus of bls 12 381 subgroup

source§

impl IsModulus<UnsignedInteger<4>> for lambdaworks_math::elliptic_curve::short_weierstrass::curves::bn_254::default_types::FrConfig

Modulus of bn 254 subgroup r = 21888242871839275222246405745257275088548364400416034343698204186575808495617, aka order

source§

impl IsModulus<UnsignedInteger<4>> for BN254FieldModulus

source§

const MODULUS: U256 = BN254_PRIME_FIELD_ORDER

source§

impl IsModulus<UnsignedInteger<4>> for lambdaworks_math::elliptic_curve::short_weierstrass::curves::grumpkin::curve::FrConfig

Modulus (Order) of Grumpkin Fr

source§

impl IsModulus<UnsignedInteger<4>> for GrumpkinFieldModulus

source§

const MODULUS: U256 = GRUMPKIN_PRIME_FIELD_ORDER

source§

impl IsModulus<UnsignedInteger<4>> for MontgomeryConfigStark252PrimeField

source§

impl IsModulus<UnsignedInteger<4>> for MontgomeryConfigPallas255PrimeField

source§

impl IsModulus<UnsignedInteger<4>> for MontgomeryConfigVesta255PrimeField

source§

impl IsModulus<UnsignedInteger<6>> for BLS12377FieldModulus

source§

const MODULUS: U384 = BLS12377_PRIME_FIELD_ORDER

source§

impl IsModulus<UnsignedInteger<6>> for BLS12381FieldModulus

source§

const MODULUS: U384 = BLS12381_PRIME_FIELD_ORDER

source§

impl IsModulus<UnsignedInteger<6>> for TestCurve2Modulus

source§

const MODULUS: U384 = TEST_CURVE_2_PRIME_FIELD_ORDER