Created
June 6, 2019 17:44
-
-
Save rpaskin/39859e2917775900f344dd79ad2fe754 to your computer and use it in GitHub Desktop.
This Solidity smart contract will return the signer of a signed r, s, v package with content msgHash
This file contains hidden or 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
contract Recover { | |
function recoverAddr(bytes32 msgHash, bytes1 v, bytes32 r, bytes32 s) | |
pure public | |
returns (address) { | |
return ecrecover(msgHash, uint8(v), r, s); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment