Skip to content

Commit 4fbdc2b

Browse files
committed
identity -> zero for Affine
1 parent f2e53be commit 4fbdc2b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/groups/curves/short_weierstrass/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,7 @@ where
209209
let (x, y, z) = match f() {
210210
Ok(ge) => {
211211
let ge = ge.into_affine();
212-
if ge.is_identity() {
212+
if ge.is_zero() {
213213
(
214214
Ok(P::BaseField::zero()),
215215
Ok(P::BaseField::one()),

src/groups/curves/short_weierstrass/non_zero_affine.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ where
7575
.double()
7676
.into_affine();
7777
// Panic if the result is zero.
78-
assert!(!result.is_identity());
78+
assert!(!result.is_zero());
7979
Ok(Self::new(F::constant(result.x), F::constant(result.y)))
8080
} else {
8181
let (x1, y1) = (&self.x, &self.y);

0 commit comments

Comments
 (0)