Replies: 3 comments
-
I haven't used EIP-712 much, but this has come up many times before and it is always an issue with constructing the payload to verify against. EIP-712 is very complex, so hopefully someone out there can help figure out the issue. If anyone has a good online example/tutorial, it would also be appreciated. I also do not believe you should be able to omit the domain, as that would defeat its purpose and be a security issue. If anyone knows better though, please let me know. |
Beta Was this translation helpful? Give feedback.
-
Struggling with a similar issue but I can definitely affirm the domain is absolutely mandatory |
Beta Was this translation helpful? Give feedback.
-
I had a similar issue. Later I realized the |
Beta Was this translation helpful? Give feedback.
-
Ethers Version
5.6.8
Search Terms
signTypedData, verifyTypedData, ECDSA.tryRecover
Describe the Problem
I am able to validate the signature with ethers verifyTypedData.
In the contract, I'm unable to retrieve the correct signer using ECDSA.tryRecover.
Also not sure if i'm suppose to include the domain or not based on previous issues I think it's now "ok" to leave it.
Code Snippet
Contract ABI
No response
Errors
No response
Environment
Hardhat
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions