Skip to content

fix: make sign and verify symmetrical #10614

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

Merged
merged 1 commit into from
May 23, 2025

Conversation

mattsse
Copy link
Member

@mattsse mattsse commented May 23, 2025

closes #10613

sign does this:

wallet.sign_message(&Self::hex_str_to_bytes(&message)?).await?

while verify didn't

this adds the same call to verify, although I'm not 100% sure we can do this without causing side-effects

@mattsse mattsse merged commit 1353416 into master May 23, 2025
22 checks passed
@mattsse mattsse deleted the matt/make-sign-verify-symmetrical branch May 23, 2025 21:17
@github-project-automation github-project-automation bot moved this to Done in Foundry May 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cast Command: cast
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

cast wallet verify fails to validate hex-prefixed 0x messages
2 participants