When doing Ethereum signTypedData, and the primaryType="EIP712Domain", we completely ignore the "message" part and only sign the domain. According to the community, this is technically allowed by the spec, and may be used by ETH smart contracts to save on gas. Test case generated by @MetaMask/eth-sig-util's library. See: https://ethereum-magicians.org/t/eip-712-standards-clarification-primarytype-as-domaintype/3286pull/2061/head
parent
b2136e35d4
commit
5c4703c9bb
@ -0,0 +1 @@
|
||||
Fix domain-only EIP-712 hashes (i.e. when `primaryType`=`EIP712Domain`)
|
@ -0,0 +1 @@
|
||||
Fix domain-only EIP-712 hashes (i.e. when `primaryType`=`EIP712Domain`)
|
@ -0,0 +1,2 @@
|
||||
Allow passing empty `message_hash` for domain-only EIP-712 hashes
|
||||
for Trezor T1 (i.e. when `primaryType`=`EIP712Domain`)
|
Loading…
Reference in new issue