Skip to content

Commit

Permalink
Fixing is_zero for twisted edwards curve.
Browse files Browse the repository at this point in the history
  • Loading branch information
martun committed May 21, 2024
1 parent 4661461 commit 0385295
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ namespace nil {
* @return true if element from group G1 is the point at infinity
*/
constexpr bool is_zero() const {
return (this->X.is_zero() && this->T.is_zero() && this->Z.is_zero());
return this->X.is_zero() && this->T.is_zero();
}

/** @brief
Expand Down

0 comments on commit 0385295

Please sign in to comment.