Overview
The Account Recovery Component allows users to regain access to their Ethereum smart wallets using their email addresses. This approach uses ZK Email technology to verify email replies and trigger account recovery processes, all while maintaining high levels of security and privacy.
How it works
Simplified explanation
Concepts
The Account Recovery Component introduces several concepts that work together to provide a secure, privacy-preserving, and flexible framework for email-based wallet recovery and smart contract interactions.
Account Code and Salt
A random integer (Account Code) and its derivative (Account Salt) that together create a privacy layer between email addresses and Ethereum addresses. They enable deterministic wallet address generation and secure recovery without exposing user email addresses.
Invitation Code
A hex string composed of the account code and a prefix, included in email headers to verify user authenticity and prevent malicious activities during the recovery process. It ensures that only the rightful user can initiate account recovery by proving possession of the correct Invitation Code.
Subject Template
A predefined format for email subject lines that enables developers to create custom, application-specific email commands without modifying the underlying ZK circuits. It standardizes email communication for smart contract interactions, allowing for complex operations through simple email subjects.
Email-Auth Message
A data structure containing the user's email data, its zero-knowledge proof, and additional metadata for verifying email-based interactions with smart contracts. It facilitates secure communication between off-chain emails and on-chain smart contracts while preserving user privacy.
The isCodeExist boolean indicates the presence of an invitation code without disclosing its content.
Last updated