Wagmi's signTypedDataAsync does not match with ECDSA's recover. #3712
-
I am getting signature by using Wagmi's signTypedDataAsync function as below.
Here is OrderStruct.sol file content.
And here is Hashing.sol file content.
Here is Verifier.sol file content.
After getting hash value of order by using hashOrder function, I invoked verifyECDSASignature function with order's signer and signature, and hash value as structHash, but it returns false, and signer is really not the same with ECDSA.recover(structHash, signature) value. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Whenever you make signature, you need to include domain info. |
Beta Was this translation helpful? Give feedback.
Whenever you make signature, you need to include domain info.
Please check this article.