• bas-vk's avatar
    internal/ethapi: add personal_sign and fix eth_sign to hash message (#2940) · b59c8399
    bas-vk authored
    This commit includes several API changes:
    
    - The behavior of eth_sign is changed. It now accepts an arbitrary
      message, prepends the well-known string
    
            \x19Ethereum Signed Message:\n<length of message>
    
      hashes the result using keccak256 and calculates the signature of
      the hash. This breaks backwards compatability!
      
    - personal_sign(hash, address [, password]) is added. It has the same
      semantics as eth_sign but also accepts a password. The private key
      used to sign the hash is temporarily unlocked in the scope of the
      request.
      
    - personal_recover(message, signature) is added and returns the
      address for the account that created a signature.
    b59c8399
Name
Last commit
Last update
..
compiler Loading commit data...
httpclient Loading commit data...
math Loading commit data...
number Loading commit data...
registrar Loading commit data...
.gitignore Loading commit data...
.travis.yml Loading commit data...
README.md Loading commit data...
big.go Loading commit data...
big_test.go Loading commit data...
bytes.go Loading commit data...
bytes_test.go Loading commit data...
debug.go Loading commit data...
format.go Loading commit data...
icap.go Loading commit data...
icap_test.go Loading commit data...
list.go Loading commit data...
main_test.go Loading commit data...
path.go Loading commit data...
size.go Loading commit data...
size_test.go Loading commit data...
test_utils.go Loading commit data...
types.go Loading commit data...
types_template.go Loading commit data...
types_test.go Loading commit data...