Removed ECRecovery mock contract, ECRecovery funcions are public constants

This commit is contained in:
Augusto
2017-06-15 20:25:29 -03:00
committed by Francisco Giordano
parent 227c7aae0f
commit 635c04378d
3 changed files with 17 additions and 39 deletions

View File

@ -8,7 +8,7 @@ pragma solidity ^0.4.11;
library ECRecovery {
// Duplicate Solidity's ecrecover, but catching the CALL return value
function safeRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal returns (bool, address) {
function safeRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) constant returns (bool, address) {
// We do our own memory management here. Solidity uses memory offset
// 0x40 to store the current end of memory. We write past it (as
// writes are memory extensions), but don't update the offset so
@ -33,8 +33,8 @@ library ECRecovery {
return (ret, addr);
}
function recover(bytes32 hash, bytes sig) internal returns (address) {
function recover(bytes32 hash, bytes sig) constant returns (address) {
bytes32 r;
bytes32 s;
uint8 v;