• 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
.github Loading commit data...
_data Loading commit data...
accounts Loading commit data...
build Loading commit data...
cmd Loading commit data...
common Loading commit data...
compression/rle Loading commit data...
console Loading commit data...
containers Loading commit data...
contracts Loading commit data...
core Loading commit data...
crypto Loading commit data...
errs Loading commit data...
eth Loading commit data...
ethclient Loading commit data...
ethdb Loading commit data...
event Loading commit data...
generators Loading commit data...
internal Loading commit data...
light Loading commit data...
logger Loading commit data...
metrics Loading commit data...
miner Loading commit data...
node Loading commit data...
p2p Loading commit data...
params Loading commit data...
pow Loading commit data...
rlp Loading commit data...
rpc Loading commit data...
swarm Loading commit data...
tests Loading commit data...
trie Loading commit data...
vendor Loading commit data...
whisper Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
.mailmap Loading commit data...
.travis.yml Loading commit data...
.zshrc Loading commit data...
AUTHORS Loading commit data...
COPYING Loading commit data...
COPYING.LESSER Loading commit data...
Makefile Loading commit data...
README.md Loading commit data...
VERSION Loading commit data...
appveyor.yml Loading commit data...
circle.yml Loading commit data...
interfaces.go Loading commit data...
vendor.conf Loading commit data...