witnet / elliptic-curve-solidity

Elliptic Curve arithmetic operations written in Solidity
MIT License
166 stars 40 forks source link

fix: check if point coordinates are bigger than modulus #28

Closed mariocao closed 4 years ago

mariocao commented 4 years ago

This PR fixes the isOnCurve function in the EllipticCurve.sol contract because it was not checking if the point coordinates were bigger than the curve modulus.