When a string is provided, we hash as a UTF-8 string using SHA-256.
When an object with personalSign property is provided, we hash using SHA-256 of the following format:
personalSign
0x19 <0x46 (F)> <uel Signed Message:\n" + len(message)> <message> Copy
0x19 <0x46 (F)> <uel Signed Message:\n" + len(message)> <message>
Following a similar approach to that of EIP-191.
When a string is provided, we hash as a UTF-8 string using SHA-256.
When an object with
personalSign
property is provided, we hash using SHA-256 of the following format:Following a similar approach to that of EIP-191.