Skip to content

Commit

Permalink
fix: add checks to tecurve::is_zero
Browse files Browse the repository at this point in the history
  • Loading branch information
shuklaayush committed Jun 27, 2023
1 parent 01d332c commit aa99176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noir_stdlib/src/ec/tecurve.nr
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ mod curvegroup {

// Check if zero
fn is_zero(self) -> bool {
let Self {x, y, t: _t, z} = self;
(x == 0) & (y == z)
let Self {x, y, t, z} = self;
(x == 0) & (y == z) & (y != 0) & (t == 0)
}

// Conversion to affine coordinates
Expand Down

0 comments on commit aa99176

Please sign in to comment.