pub fn hash_message<S>(message: S) -> H256where
    S: AsRef<[u8]>,
Expand description

Hash a message according to EIP-191.

The data is a UTF-8 encoded string and will enveloped as follows: "\x19Ethereum Signed Message:\n" + message.length + message and hashed using keccak256.