eth_sign returns an Ethereum specific signature with Keccak256.
Usage
eth_sign(address, message)
Arguments
address
Address - Address of the user.
message
String - Message to sign.
Value
Data - Signature.
Details
By adding a prefix to the message makes the calculated signature recognisable
as an Ethereum specific signature. This prevents misuse where a malicious
DApp can sign arbitrary data (e.g. transaction) and use the signature to
impersonate the victim. Note the address to sign with must be unlocked.