This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 682
ecrecover does not return consistently depending on digest despite correct signer #98
Comments
Seems like an ethers.js bug. |
This was referenced Nov 23, 2023
This was referenced Apr 16, 2024
This was referenced Oct 13, 2024
This was referenced Oct 20, 2024
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Using the following code:
For some inputs, e.g., with the
nonce
variable here that an account signs,ecrecover
does not correctly recover the address.Expected Behavior
ecrecover
should return the address of the account that signed the message.Current Behavior
ecrecover
does not return the address of the account that signed the message for "some" digests. I haven't figured out the pattern yet.Steps to Reproduce (for bugs)
I've made a repo here: https://github.com/snario/reproducible-ganache-bug
Context
I'm trying to sign messages roughly following the direction of EIP 155. GnosisSafe already implements this.
Your Environment
See the repo, ran inside a fresh
ubuntu
Docker container.The text was updated successfully, but these errors were encountered: