elliptic-curve-solidity
elliptic-curve-solidity copied to clipboard
zeroProj fix & small optimization
- As I see here,
zeroProjfunction has to return the(0, 0, 1)point instead of(0, 1, 0). - Noticed that
P[2]in thetoProjectivePoint()function is always equal to1, so several function calls and checks may be safely removed.