Move additive CurveProjective operators to traits

This commit is contained in:
Jack Grigg 2019-05-27 17:15:16 +01:00
parent 6db281d137
commit 2013561f4c
3 changed files with 2 additions and 4 deletions

View File

@ -413,10 +413,6 @@ impl CurveProjective for Fr {
self.0 = <Fr as Field>::double(self).0;
}
fn add_assign(&mut self, other: &Self) {
AddAssign::add_assign(self, other);
}
fn add_assign_mixed(&mut self, other: &Self) {
AddAssign::add_assign(self, other);
}

View File

@ -1,6 +1,7 @@
use ff::PrimeField;
use group::{CurveAffine, CurveProjective};
use pairing::{Engine, PairingCurveAffine};
use std::ops::AddAssign;
use super::{PreparedVerifyingKey, Proof, VerifyingKey};

View File

@ -5,6 +5,7 @@ use futures::Future;
use group::{CurveAffine, CurveProjective};
use std::io;
use std::iter;
use std::ops::AddAssign;
use std::sync::Arc;
use super::SynthesisError;