group: Default implementation of CurveProjective::batch_normalize

For convenience. Implementations will usually override this to take
advantage of implementation-specific batching optimisations.
This commit is contained in:
Jack Grigg 2020-05-21 11:58:57 +12:00
parent 06c2c37b28
commit f490cdc674
1 changed files with 0 additions and 8 deletions

View File

@ -396,14 +396,6 @@ impl PrimeGroup for Fr {}
impl CurveProjective for Fr {
type Affine = Fr;
fn batch_normalize(p: &[Self], q: &mut [Self::Affine]) {
assert_eq!(p.len(), q.len());
for (p, q) in p.iter().zip(q.iter_mut()) {
*q = p.to_affine();
}
}
fn to_affine(&self) -> Fr {
*self
}