-
Notifications
You must be signed in to change notification settings - Fork 347
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
feat: erc 6492 signature validation #744
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@guru-web3 is attempting to deploy a commit to the Reown Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the PR, You're awesome! Left comments for two required changes 💯
@ganchoradkov have addressed the comments, review when free please |
PR Documentation Outline:
Title: Add ERC-6942 Signature Validation for Pre-Deployed Contracts
Summary: This PR implements signature validation using ERC-6942, which enables verifying signatures for smart contract wallets even when they aren't deployed. This is necessary because some wallets delay contract deployment until the first transaction. By adopting ERC-6942, we validate signatures before wallet deployment.
Details:
Technical Changes:
Changes Made:
isValidateSignature()
method to support both deployed and pre-deployed contract signatures.Why This Change? Some smart contract wallets only deploy upon the first transaction. With ERC-6942, we can validate signatures before deployment, ensuring users experience seamless wallet interactions.
This diagram shows the two flows:
Deployed Contract: Traditional signature verification for deployed wallets.
Pre-Deployed Contract (ERC-6942): Signature verification for wallets that haven't been deployed yet.
universal validator ref: https://github.com/AmbireTech/signature-validator/blob/main/index.ts#L32