Files
openzeppelin-contracts/contracts/mocks/ECRecoveryMock.sol
2018-07-31 13:06:53 -03:00

26 lines
389 B
Solidity

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