witnet / elliptic-curve-solidity

Elliptic Curve arithmetic operations written in Solidity
MIT License
169 stars 41 forks source link

small change to avoid overflow #19

Closed clbartoli closed 4 years ago

clbartoli commented 4 years ago

This PR changes thesqrt function in FastEcMul.sol to avoid overflow. This vulnerability was found by the auditors, closes #21