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§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementors§
Source§impl IsModulus<UnsignedInteger<4>> for FqConfig
impl IsModulus<UnsignedInteger<4>> for FqConfig
Source§impl IsModulus<UnsignedInteger<4>> for lambdaworks_math::elliptic_curve::short_weierstrass::curves::bls12_381::default_types::FrConfig
Modulus of bls 12 381 subgroup
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
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
impl IsModulus<UnsignedInteger<4>> for BN254FieldModulus
Source§impl IsModulus<UnsignedInteger<4>> for lambdaworks_math::elliptic_curve::short_weierstrass::curves::grumpkin::curve::FrConfig
Modulus (Order) of Grumpkin Fr
impl IsModulus<UnsignedInteger<4>> for lambdaworks_math::elliptic_curve::short_weierstrass::curves::grumpkin::curve::FrConfig
Modulus (Order) of Grumpkin Fr