Skip to content
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

Handle recovery bytes starting at 0 #19

Merged
merged 2 commits into from
Aug 4, 2022
Merged

Handle recovery bytes starting at 0 #19

merged 2 commits into from
Aug 4, 2022

Conversation

sbihel
Copy link
Member

@sbihel sbihel commented Aug 4, 2022

Close #18

Depends on spruceid/siwe#95

@sbihel sbihel requested a review from theosirian August 4, 2022 17:00
@sbihel sbihel merged commit fc1b037 into main Aug 4, 2022
@sbihel sbihel deleted the fix/modulo_sig branch August 4, 2022 17:19
@afa7789
Copy link

afa7789 commented Aug 4, 2022

How exactly this fixes it?
tnks guys.

@sbihel
Copy link
Member Author

sbihel commented Aug 4, 2022

How exactly this fixes it?

There is a discrepancy between the standard ECDSA recovery byte format and Ethereum’s -- basically it tries to encode more data in it, whilst keeping the same functionality. I believe they can include the chain ID now, so we’ll probably have to revisit this in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Edge case , that works on siwe-js and does not work on siwe-go
3 participants