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.
20 lines
379 B
20 lines
379 B
pragma solidity ^0.4.11;
|
|
|
|
|
|
import '../../contracts/ECRecovery.sol';
|
|
|
|
|
|
contract ECRecoveryMock {
|
|
|
|
bool public result;
|
|
address public signer;
|
|
|
|
function safeRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) {
|
|
(result, signer) = ECRecovery.safeRecover(hash, v, r, s);
|
|
}
|
|
|
|
function recover(bytes32 hash, bytes sig) {
|
|
signer = ECRecovery.recover(hash, sig);
|
|
}
|
|
|
|
}
|
|
|