Skip to content

Recommend Ethers.Signature over the EOA-only verification helpers#268

Merged
alisinabh merged 1 commit into
mainfrom
docs/typed-data-universal-verification
Jul 19, 2026
Merged

Recommend Ethers.Signature over the EOA-only verification helpers#268
alisinabh merged 1 commit into
mainfrom
docs/typed-data-universal-verification

Conversation

@alisinabh

Copy link
Copy Markdown
Member

Follow-up to #266. Ethers.Signature.verify_typed_data/4 / verify_message/4 already provide universal (EOA + ERC-1271 + ERC-6492) verification, but the EOA-only helpers didn't steer readers to them — backends using Ethers.TypedData.valid_signature?/3 or Ethers.PersonalMessage.verify/3 silently reject all smart-wallet users.

This documents those helpers (plus recover_signer/2, which is inherently EOA-only — contract wallets have no recoverable signer) with an explicit recommendation: prefer Ethers.Signature to support smart-contract wallets too; use the pure helpers when you specifically need an RPC-free check for signatures known to come from EOA keys.

Doc-only change; no behavior affected.

🤖 Generated with Claude Code

Document Ethers.TypedData.recover_signer/2, valid_signature?/3 and
Ethers.PersonalMessage.verify/3 as EOA-only and explicitly recommend
Ethers.Signature.verify_typed_data/4 / verify_message/4 which also
support smart-contract wallets (ERC-1271/ERC-6492).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@alisinabh
alisinabh merged commit 997d9a5 into main Jul 19, 2026
5 checks passed
@alisinabh
alisinabh deleted the docs/typed-data-universal-verification branch July 19, 2026 05:59
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.

1 participant