Function eip191_message
pub fn eip191_message<T>(message: T) -> Vec<u8> ⓘ
Expand description
Constructs a message according to EIP-191 (version 0x01
).
The final message is a UTF-8 string, encoded as follows:
"\x19Ethereum Signed Message:\n" + message.length + message