Created
September 28, 2018 16:05
-
-
Save aleph-v/e3e9093bf184fa92033d7c75737001d7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function negModN(uint256 s) returns(bytes32){ | |
return bytes32(0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 - s); | |
} //0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141 is the order of the Ethereum elliptic curve |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment