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.
25 lines
401 B
25 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();
|
|
}
|
|
}
|
|
|