Closed maptuhec closed 1 year ago
Which version web3
are you using? Possibly using ^1.0.0, since the params look swapped https://web3js.readthedocs.io/en/v1.2.1/web3-eth.html#sign compared to https://github.com/ethereum/wiki/wiki/JavaScript-API#web3ethsign, just want to confirm.
I am using version 1.2.1
Any update on this issue? It has been two months now?
This issue has been automatically marked as stale because it has not had recent activity in the last 90 days. It will be closed in 45 days if there is no further activity. The MetaMask team intends on reviewing this issue before close, and removing the stale label if it is still a bug. We welcome new comments on this issue. We do not intend on closing issues if they report bugs that are still reproducible. Thank you for your contributions.
This issue was closed because there has been no follow up activity in the last 45 days. If you feel this was closed in error, please reopen and provide evidence on the latest release of the extension. Thank you for your contributions.
Describe the bug When signing a message with metamask and trezor wallet I get invalid singature. I am using web3js for triggering the msg sign. When I get the signature, etherscan verifications says that the signature can't be verified. The second check was to run it against ecrecover, and the result from it is wrong address(not the one used to sign the message).
This is what I am using in the js code:
let signature = await $web3.eth.sign($web3.utils.sha3(msg), _coinbase)
where msg is the msg to sign and coinbase is the ETH publickeyTo Reproduce Steps to reproduce the behavior:
ak_TgaLnCYN1wtXP9KKQz3apMNzXMuUJa9gXbv4o5uW73tRW8Gue
with an eth account: I have used0x284aa677bf83a0e7e5f3ba13ddda1f9569132807
Expected behavior Expectations were that the signed message can be verified. After ecrecovering the msg hash with the signature, expected result is the ETH address used to sign the message.
Screenshots
Result from ecrecover the msg hash and signature:
Browser details (please complete the following information):