• 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
..
state Loading commit data...
types Loading commit data...
vm Loading commit data...
.gitignore Loading commit data...
asm.go Loading commit data...
bench_test.go Loading commit data...
block_validator.go Loading commit data...
block_validator_test.go Loading commit data...
blockchain.go Loading commit data...
blockchain_test.go Loading commit data...
blocks.go Loading commit data...
chain_makers.go Loading commit data...
chain_makers_test.go Loading commit data...
chain_pow.go Loading commit data...
chain_pow_test.go Loading commit data...
config.go Loading commit data...
dao.go Loading commit data...
dao_test.go Loading commit data...
database_util.go Loading commit data...
database_util_test.go Loading commit data...
default_genesis.go Loading commit data...
error.go Loading commit data...
events.go Loading commit data...
execution.go Loading commit data...
fees.go Loading commit data...
filter_test.go Loading commit data...
gaspool.go Loading commit data...
genesis.go Loading commit data...
headerchain.go Loading commit data...
helper_test.go Loading commit data...
state_processor.go Loading commit data...
state_transition.go Loading commit data...
tx_list.go Loading commit data...
tx_list_test.go Loading commit data...
tx_pool.go Loading commit data...
tx_pool_test.go Loading commit data...
types.go Loading commit data...
vm_env.go Loading commit data...