Removed safeRecover, using ecrecover method instead, recovering signature from entire hash

This commit is contained in:
Augusto
2017-07-14 10:10:06 -03:00
committed by Francisco Giordano
parent a68eaa4e2d
commit 478d1b1a93
4 changed files with 878 additions and 74 deletions

View File

@ -1,14 +1,9 @@
ECReovery
=============================================
Recover the signer address of messages using elliptic curve signatures.
safeRecover(bytes32 hash, uint8 v, bytes32 r, bytes32 s) internal returns (bool, address)
"""""""""""""""""""""""""""""""""""""""""""""""""
Returns the signer of the the hash using the signature divided in v, r, and s values.
recover(bytes32 hash, bytes sig) internal returns (address)
"""""""""""""""""""""""""""""""""""""""""""""""""
Returns the signer of the the hash using the signature that provides the web3.sign() method.
Returns the signer of the the hash using the signature that provides the web3.eth.sign() method.