-
Notifications
You must be signed in to change notification settings - Fork 12
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
crypto: testing signature check #1243
base: main
Are you sure you want to change the base?
Conversation
Just an FYI, it appears that our personal sign authenticator does not match the previous functionality. Previously, it would ignore the 65th byte (the recovery ID). It no longer does this. This caused the JS SDK to break. I've left this in draft because this was just to diagnose the issue. We can discuss more tomorrow. |
if signature[ethCrypto.RecoveryIDOffset] == 27 || | ||
signature[ethCrypto.RecoveryIDOffset] == 28 { | ||
// Transform yellow paper V from 27/28 to 0/1 | ||
signature[ethCrypto.RecoveryIDOffset] -= 27 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, this is what is missing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although modifying the input slice is probably not good.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KwilLuke once you verify that Jon's fix works will you close this PR?
Trying to help luke debug something.
Based on #1231
CC @KwilLuke