mirror of openzeppelin-contracts
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openzeppelin-contracts/contracts/mocks/ECRecoveryMock.sol

26 lines
401 B

pragma solidity ^0.4.24;
import "../ECRecovery.sol";
contract ECRecoveryMock {
using ECRecovery for bytes32;
function recover(bytes32 _hash, bytes _signature)
public
pure
returns (address)
{
return _hash.recover(_signature);
}
function toEthSignedMessageHash(bytes32 _hash)
public
pure
returns (bytes32)
{
return _hash.toEthSignedMessageHash();
}
}