pub fn eip191_message<T: AsRef<[u8]>>(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