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:
parent
06c2c37b28
commit
f490cdc674
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue