Skip to content

Instantly share code, notes, and snippets.

@rpaskin
Created June 6, 2019 17:44
Show Gist options
  • Save rpaskin/39859e2917775900f344dd79ad2fe754 to your computer and use it in GitHub Desktop.
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
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