QUADRATIC_NONRESIDUE is never used, remove (#104)

* `QUADRATIC_NONRESIDUE` is never used, remove

* Update CHANGELOG.md

* Remove unused imports
This commit is contained in:
Marcin
2022-06-30 20:00:01 +02:00
committed by GitHub
parent 9a89ea8adc
commit 76579d0fbb
7 changed files with 6 additions and 41 deletions

View File

@@ -1,6 +1,6 @@
use ark_ff::{
fields::fp2::{Fp2, Fp2Config},
MontFp, QuadExt,
MontFp,
};
use crate::{Fq, FQ_ONE};
@@ -16,11 +16,6 @@ impl Fp2Config for Fq2Config {
/// the same as that used in [`libff`](https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L102).
const NONRESIDUE: Fq = MontFp!(Fq, "17");
/// The quadratic non-residue in F<sub>p</sub><sup>2</sup> that is used
/// in the computation of square roots is (8, 1), the same as that in
/// [`libff`](https://github.com/scipr-lab/libff/blob/c927821ebe02e0a24b5e0f9170cec5e211a35f08/libff/algebra/curves/mnt/mnt4/mnt4_init.cpp#L103)
const QUADRATIC_NONRESIDUE: Fq2 = QuadExt!(MontFp!(Fq, "8"), FQ_ONE);
/// Precomputed coefficients:
/// `[1, 475922286169261325753349249653048451545124879242694725395555128576210262817955800483758080]`
const FROBENIUS_COEFF_FP2_C1: &'static [Self::Fp] = &[