ECRecovery
library ECRecovery
Source: ECRecovery.sol
Reference
Functions
recover
function recover(bytes32 hash, bytes sig) internal pure returns (address)
Recover signer address from a message by using their signature.
- Parameters:
hash
- bytes32 message, the hash is the signed message. What is recovered is the signer address.sig
- bytes signature, the signature is generated using web3.eth.sign()- Returns:
- address
toEthSignedMessageHash
function toEthSignedMessageHash(bytes32 hash) internal pure returns (bytes32)
ToEthSignedMessageHash, and hash the result.
- Parameters:
hash
- bytes32- Returns:
- bytes32