Create an Ethereum-specific signature for a message.
This function is equivalent to the eth_sign Ethereum JSON-RPC method as specified in EIP-1417, as well as the MetaMask's personal_sign method.
eth_sign
personal_sign
The personal sign options.
The hex data to sign.
The key to sign with.
The '0x'-prefixed hex encoded signature.
Create an Ethereum-specific signature for a message.
This function is equivalent to the
eth_sign
Ethereum JSON-RPC method as specified in EIP-1417, as well as the MetaMask'spersonal_sign
method.