Created
February 16, 2018 03:27
-
-
Save dominiek/44830cf4bdc5c40088acd1bd3f8def2c to your computer and use it in GitHub Desktop.
ethereum_smart_contract_ecrecover_evm_asm.sol
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
bool ret; | |
address addr; | |
assembly { | |
let size := mload(0x40) | |
mstore(size, msgHash) | |
mstore(add(size, 32), v) | |
mstore(add(size, 64), r) | |
mstore(add(size, 96), s) | |
ret := call(3000, 1, 0, size, 128, size, 32) | |
addr := mload(size) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment