ECRecovery library added with test and docs

This commit is contained in:
Augusto
2017-06-14 15:57:35 -03:00
committed by Francisco Giordano
parent b05fb9c200
commit 4201d50dcf
4 changed files with 153 additions and 0 deletions

View File

@ -0,0 +1,14 @@
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.