How to use yParity instead of v? #3649
Unanswered
Robsonsjre
asked this question in
Q&A
Replies: 2 comments
-
Apparently, if if (![27, 28].includes(v)) v += 27; |
Beta Was this translation helpful? Give feedback.
0 replies
-
Don't just “add 27” to it. The calculations of V is somewhat complicated, depending on the range it belongs to. You are using an old version of ethers, please make sure you use the latest version. In the case of |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Ethers Version
5.5.1
Search Terms
eth_signTypedData_v4, signature, "v"
Describe the Problem
Hello, I'm receiving 0 for the "v" value of the signature object. Hence, when passing this to the contract, the transaction is reverting with the msg error:
“execution reverted: ECDSA: invalid signature ‘v’ value”.
What could be causing this issue?
Some specs to generate the signature;
Code Snippet
No response
Contract ABI
No response
Errors
No response
Environment
Ethereum (mainnet/ropsten/rinkeby/goerli)
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions