pub trait Fp2Parameters:
'static
+ Copy
+ Clone
+ Default
+ Debug
+ PartialEq
+ Eq
+ Hash
+ Serialize
+ for<'a> Deserialize<'a>
+ Send
+ Sync {
type Fp: PrimeField;
const FROBENIUS_COEFF_FP2_C1: [Self::Fp; 2];
const NONRESIDUE: Self::Fp;
const QUADRATIC_NONRESIDUE: (Self::Fp, Self::Fp);
// Provided method
fn mul_fp_by_nonresidue(fe: &Self::Fp) -> Self::Fp { ... }
}
Required Associated Constants§
Sourceconst FROBENIUS_COEFF_FP2_C1: [Self::Fp; 2]
const FROBENIUS_COEFF_FP2_C1: [Self::Fp; 2]
Coefficients for the Frobenius automorphism.
const NONRESIDUE: Self::Fp
const QUADRATIC_NONRESIDUE: (Self::Fp, Self::Fp)
Required Associated Types§
type Fp: PrimeField
Provided Methods§
fn mul_fp_by_nonresidue(fe: &Self::Fp) -> Self::Fp
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.
Implementations on Foreign Types§
Source§impl Fp2Parameters for Fq2Parameters
impl Fp2Parameters for Fq2Parameters
Source§const FROBENIUS_COEFF_FP2_C1: [Fp384<FqParameters>; 2]
const FROBENIUS_COEFF_FP2_C1: [Fp384<FqParameters>; 2]
Coefficients for the Frobenius automorphism.
Source§const NONRESIDUE: Fp384<FqParameters>
const NONRESIDUE: Fp384<FqParameters>
NONRESIDUE = -5
Source§const QUADRATIC_NONRESIDUE: (Fp384<FqParameters>, Fp384<FqParameters>)
const QUADRATIC_NONRESIDUE: (Fp384<FqParameters>, Fp384<FqParameters>)
QUADRATIC_NONRESIDUE = U