Skip to content

Commit

Permalink
Fix another mistake in a comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
ebfull committed Jan 23, 2019
1 parent 2fc052c commit 36877d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/edwards.rs
Expand Up @@ -391,7 +391,7 @@ impl ConstantTimeEq for EdwardsPoint {
// We would like to check that the point (X/Z, Y/Z) is equal to
// the point (X'/Z', Y'/Z') without converting into affine
// coordinates (x, y) and (x', y'), which requires two inversions.
// We have that X = xZ and X' = x'Z. Thus, x = x' is equivalent to
// We have that X = xZ and X' = x'Z'. Thus, x = x' is equivalent to
// (xZ)Z' = (x'Z')Z, and similarly for the y-coordinate.

(&self.X * &other.Z).ct_eq(&(&other.X * &self.Z))
Expand Down

0 comments on commit 36877d1

Please sign in to comment.