-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong v
value on ethereum signature
#6
Comments
The eth sign test passed as shown in commit 8b87d9f If possible, could you show me your data, including the content hash, privKey, and the expected signature helping me debug? |
I'm testing with this params:
but I'm getting -> If I use |
You can also take a look at this playground using another library and it's indeed returning the signature with https://zapp.run/edit/dart-zow060qox06?entry=lib/main.dart&file=lib/main.dart |
The result from web3dart is not convincing, please try other lib to validate. |
I can also provide you this JS (using viem) playground with the exact same result @c0mm4nd https://stackblitz.com/edit/node-js-playground-qsoa9p?file=index.js Please let me know if you need furthers assistance. This package is pretty important to us and we need this to continue our development! |
Hey @c0mm4nd please take a look at teammate’s @josher8a PR. He is solving the issue based on this https://ethereum.stackexchange.com/a/53182 |
Thank you and your great team. I have already merged the PR and published a new version on pub.dev https://pub.dev/packages/ecdsa/versions/0.1.1 |
Hey @c0mm4nd
I've using your library and I just realized there is something wrong with the calculation of
v
.In one signature it should return
v = 0
but instead is returningv = 1
. This is basically changing the end of the signature from...1b
to...1c
. Any idea why is this happening?The text was updated successfully, but these errors were encountered: