ff: Move pow_vartime back into Field trait

The only places we don't use constant u64 limbs, we use PrimeField::char
instead (except in a single test where we use a field element).
This commit is contained in:
Jack Grigg 2020-05-02 17:57:19 +12:00
parent a0177b6108
commit 80a0c777bb
6 changed files with 6 additions and 6 deletions

View File

@ -11,7 +11,7 @@
//! [`EvaluationDomain`]: crate::domain::EvaluationDomain
//! [Groth16]: https://eprint.iacr.org/2016/260
use ff::{Field, PowVartime, PrimeField, ScalarEngine};
use ff::{Field, PrimeField, ScalarEngine};
use group::CurveProjective;
use std::ops::{AddAssign, MulAssign, SubAssign};

View File

@ -1,4 +1,4 @@
use ff::{PowVartime, PrimeField, ScalarEngine};
use ff::{Field, PrimeField, ScalarEngine};
use crate::{ConstraintSystem, LinearCombination, SynthesisError, Variable};

View File

@ -1,6 +1,6 @@
//! Helpers for testing circuit implementations.
use ff::{Endianness, Field, PowVartime, PrimeField, ScalarEngine};
use ff::{Endianness, Field, PrimeField, ScalarEngine};
use crate::{ConstraintSystem, Index, LinearCombination, SynthesisError, Variable};

View File

@ -2,7 +2,7 @@ use rand_core::RngCore;
use std::ops::{AddAssign, MulAssign};
use std::sync::Arc;
use ff::{Field, PowVartime};
use ff::Field;
use group::{CurveAffine, CurveProjective, Wnaf};
use pairing::Engine;

View File

@ -1,4 +1,4 @@
use ff::{Field, PowVartime, PrimeField, ScalarEngine};
use ff::{Field, PrimeField, ScalarEngine};
use group::{CurveAffine, CurveProjective, EncodedPoint, GroupDecodingError};
use pairing::{Engine, PairingCurveAffine};

View File

@ -1,4 +1,4 @@
use ff::{Field, PowVartime, PrimeField};
use ff::{Field, PrimeField};
use pairing::Engine;
mod dummy_engine;