Get the message hashed with hash('\x19Ethereum Signed Message:\n32', hash(message)). The hash used is Keccak-256,
and the output should match the hashes used by eth_sign.
Sign a message with the private key. When deterministic is set to true (default), this will use RFC6979
to generate a deterministic k value, otherwise a random k value is used. If a chainId is specified, this will use
EIP-155 for the v value.
Note that the message is automatically hashed and prefixed, to match the hashes used by eth_sign, unless prefix
is disabled.
Generate a deterministic value for
k
, according to RFC6979.