immutability-io / vault-ethereum

A plugin that turns Vault into an Ethereum wallet.
243 stars 65 forks source link

Add Support to Eth_Sign #82

Closed elranu closed 3 years ago

elranu commented 3 years ago

Description

Add new endpoint supporting: sign messages an ECDSA signature for:

keccack256("\x19Ethereum Signed Message:\n" + len(message) + message).

More info: https://eth.wiki/json-rpc/API#eth_sign

Motivation and Context

Users need to sign messages for example for Gasless transactions

How Has This Been Tested?

For the moment it has been only been tested on a development environment. But the signature has been validated here: https://etherscan.io/verifySig/2156

Types of changes

Checklist: