Function renvm_sig::hash_message[][src]

pub fn hash_message<S>(message: S) -> [u8; 32] where
    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.