Skip to content

feat: add preferVerificationMethod to verifyMessage / verifyHash#4395

Closed
jacopo-eth wants to merge 1 commit intowevm:mainfrom
slice-so:main
Closed

feat: add preferVerificationMethod to verifyMessage / verifyHash#4395
jacopo-eth wants to merge 1 commit intowevm:mainfrom
slice-so:main

Conversation

@jacopo-eth
Copy link
Copy Markdown
Contributor

Adds an optional verification preference for cases where the caller already knows the signature should be verified as an EOA.

Today, verifyHash and verifyMessage always begin with the default universal verification flow. That is the right default for interoperability, but in contexts where the verification method is known in advance, it can add unnecessary latency and RPC calls. For EOAs specifically, verification can often be resolved locally via signature recovery, so this change allows callers to prefer that path first.

What changed:

  • adds VerifyHashVerificationMethod
  • adds an optional preferVerificationMethod param to verifyHash and verifyMessage
  • supports preferring the EOA path first
  • preserves the original verification flow as the default and fallback behavior
  • adds focused tests for the preferred EOA path and fallback behavior

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Mar 12, 2026

⚠️ No Changeset found

Latest commit: f738f81

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 12, 2026

@jacopo-eth is attempting to deploy a commit to the Wevm Team on Vercel.

A member of the Team first needs to authorize it.

@jxom jxom force-pushed the main branch 2 times, most recently from bdf8494 to 69e0d6e Compare March 13, 2026 22:42
@jxom
Copy link
Copy Markdown
Member

jxom commented Mar 18, 2026

Closing in favor of #4405.

@jxom jxom closed this Mar 18, 2026
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