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

Fix: ETH verify_signature fails on checksummed addresses #29

Merged
merged 1 commit into from
May 22, 2023

Conversation

MHHukiewitz
Copy link
Member

Problem: As Ethereum addresses may contain checksum information in capitalizing their letters, comparing the input address and the resulting public_key of the signature verification process resulted in false negatives.

Solution: Casefold both the address and public key before comparing them. Added further tests to both ETH and SOL accounts to increase coverage and test for other unforeseen errors.

Copy link
Member

@hoh hoh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@hoh hoh merged commit 8aa9e6f into main May 22, 2023
@MHHukiewitz MHHukiewitz deleted the fix/eth-checksummed-verif branch May 22, 2023 09:55
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.

2 participants