diff --git a/cp6_782/src/curves/g1.rs b/cp6_782/src/curves/g1.rs index beffd1c..4b83f3e 100644 --- a/cp6_782/src/curves/g1.rs +++ b/cp6_782/src/curves/g1.rs @@ -41,7 +41,7 @@ impl<'a> From<&'a G1Projective> for G1Prepared { impl G1Prepared { pub fn is_zero(&self) -> bool { - self.0.is_identity() + self.0.is_zero() } } diff --git a/cp6_782/src/curves/g2.rs b/cp6_782/src/curves/g2.rs index 7796db0..b427f8d 100644 --- a/cp6_782/src/curves/g2.rs +++ b/cp6_782/src/curves/g2.rs @@ -41,7 +41,7 @@ impl<'a> From<&'a G2Projective> for G2Prepared { impl G2Prepared { pub fn is_zero(&self) -> bool { - self.0.is_identity() + self.0.is_zero() } }