Skip to content

feat: email recovery flow for 7702 based smart accounts with passkeys #17

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 19 commits into from
May 29, 2025

Conversation

Dhruv-2003
Copy link
Contributor

Description

This PR adds a new flow to the email-recovery-demo ui for showing the ability of recovering 7702 based smart accounts (EOA) controlled by passkeys using the universal email recovery module.

The flow is as such:

  • A burner EOA is created for the session, which is then upgraded to a safe based smart account ( with erc7579 capabilities) to enable the batching and other benefits
  • They add a secondary signer, which is a passkey in this case
  • Install the email-recovery-module
  • Add an email guardian
  • Start a recovery request to update the secondary signer to another signer

Type of change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Testing was done by manually replaying the flow

Notes

  • As instructed, local storage slots are not conflicting with the burner flow
  • Significant part of the 7702 flow is reusing the old logic for guardian related setup but because of changes in signers and burners, the code had to be duplicated

Possible improvements in the flow and code quality, if no time-constraints

@Dhruv-2003 Dhruv-2003 marked this pull request as ready for review May 23, 2025 12:45
@Dhruv-2003
Copy link
Contributor Author

code related to connecting an external wallet is left rn, can be removed if it's no longer required

@rutefig rutefig self-requested a review May 29, 2025 11:12
@rutefig rutefig merged commit 399531c into zkemail:main May 29, 2025
3 of 4 checks passed
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