Incorrect V for EIP712 signature#152
Conversation
|
@digiwand @lambertkevin Could we test this implementation against https://github.com/MetaMask/eth-sig-util to prevent issues like this in the future? It may be out of scope for this PR. |
Hi @FrederikBolding ! Well the problem is that to my knowledge, @metamask/eth-sig-utils And that's actually the reason why the issue is noticed only now that people start using ECDSA verification onchain with EIP-712 messages, because contrary to those libs, |
There was a problem hiding this comment.
Tested the code with macOS x Chrome x Nano X using the test-dapp. LGTM! Thanks @lambertkevin
will hold on merging for @FrederikBolding, or another dev, to review
|
I am seeing this issue as well, where signatures are different by decimal 27 between Ledger Live and Metamask+Ledger |
As described by #134 and #151, the V parsed by Metamask for a
signTypedDatais incorrect. The signature is not expected to be composed with the parity/recovery but with the classic27or28.This PR fixes this and updates the CI tests.
Thanks 🙏