Browse Source

`is_identity` -> `is_zero` (#125)

cherry-pick
Pratyush Mishra 2 years ago
committed by GitHub
parent
commit
55a092a6c7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      cp6_782/src/curves/g1.rs
  2. +1
    -1
      cp6_782/src/curves/g2.rs

+ 1
- 1
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()
}
}

+ 1
- 1
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()
}
}

Loading…
Cancel
Save