elliptic-curve-solidity icon indicating copy to clipboard operation
elliptic-curve-solidity copied to clipboard

zeroProj fix & small optimization

Open Arvolear opened this issue 1 year ago • 0 comments

  1. As I see here, zeroProj function has to return the (0, 0, 1) point instead of (0, 1, 0).
  2. Noticed that P[2] in the toProjectivePoint() function is always equal to 1, so several function calls and checks may be safely removed.

Arvolear avatar Nov 04 '24 11:11 Arvolear