---
eip: 7093
label: ERC-7093
title: Social Recovery Interface
status: Draft
type: Standards Track
category: ERC
created: 2023-05-29
requires: 1271
official: https://eips.ethereum.org/EIPS/eip-7093
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7093.md
canonical: https://eips.huatuo.xyz/eip-7093/
lang: en
tldr: A draft interface for smart-account social recovery that separates who the guardians are, how their signatures or proofs are checked, and which policy is enough, so accounts can use passkeys, email, NFTs or friends as guardians without upgrading the wallet.
tags: [account-abstraction, social-recovery, smart-wallet, guardians, security]
---

# ERC-7093: Social Recovery Interface

> Interfaces for social recovery account supporting various guardian types and customizable recovery policies.

**TL;DR:** A draft interface for smart-account social recovery that separates who the guardians are, how their signatures or proofs are checked, and which policy is enough, so accounts can use passkeys, email, NFTs or friends as guardians without upgrading the wallet.

## What problem does it solve?

Lose the key to a normal wallet and the funds are gone. **Social recovery** lets a group of trusted *guardians* approve moving a smart account to a new owner key. Existing implementations tend to hard-code one guardian type (usually other Ethereum accounts) and one rule (M of N), baked into the account contract.

ERC-7093 makes recovery pluggable. Guardians can be anything that can produce something verifiable on-chain, such as a passkey (WebAuthn) signature, an email DKIM signature, an OpenID token, a zero-knowledge proof or an NFT/SBT, and the recovery rules can be changed without changing the account's code.

## How it works

Four building blocks:

- **Identity** — `{ guardianVerifier, signer }`. If `signer` is empty, `guardianVerifier` is itself an EOA or contract account, and its signature is checked as ECDSA or [ERC-1271](/eip-1271/). Otherwise `signer` is, for example, a public key or email hash, and the check is delegated to the `guardianVerifier` contract.
- **`IPermissionVerifier`** — verifies a non-account guardian: `isValidPermission(hash, signer, signature)` and a batch version.
- **`IRecoveryPolicyVerifier`** (optional) — `verifyRecoveryPolicy(permissions, properties)` decides whether the guardians who signed meet the policy. Each guardian has a `property` (a weight, percentage or role) and the config has a list of `{threshold, lockPeriod}`.
- **`IRecoveryAccount`** (or a **RecoveryModule** for modular accounts) — the account side: `updateGuardians`, `startRecovery`, `executeRecovery`, `cancelRecovery`, `cancelRecoveryByGuardians`, plus status queries and events.

Typical flow from the spec's example:

1. Guardians A (weight 30), B (30) and C (40); thresholds `50 → 24h lock` and `100 → no lock`.
2. A and B each sign an [EIP-712](/eip-712/) `StartRecovery` message (config index, new owners, recovery nonce).
3. A relayer or bundler calls `startRecovery`. Signatures are checked, and the policy sums 60, which passes the first threshold with a 24-hour lock.
4. The account stores the pending owner change and emits `RecoveryStarted`. The real owner can cancel during the lock.
5. After the lock, anyone calls `executeRecovery`, which rotates the owner key.

The recovery nonce is kept separate from the account's transaction nonce and stops guardian approvals from being replayed.

## Sample code

A guardian signing a recovery approval (ethers v6), using the typed data from the spec's example:

```ts
const domain = {
  name: await account.DOMAIN_SEPARATOR_NAME(),
  version: await account.DOMAIN_SEPARATOR_VERSION(),
  chainId,
  verifyingContract: accountAddress,   // check this is really the user's account
};
const types = {
  StartRecovery: [
    { name: "configIndex", type: "uint256" },
    { name: "newOwners", type: "bytes" },
    { name: "nonce", type: "uint256" },
  ],
};
const message = { configIndex: 0n, newOwners, nonce: await account.getRecoveryNonce() };

const signature = await guardianWallet.signTypedData(domain, types, message);
// EOA guardian: signer is empty, guardianVerifier is the guardian's address
const permission = { guardian: { guardianVerifier: guardianWallet.address, signer: "0x" }, signature };

// later, a relayer submits all collected permissions
await account.startRecovery(0n, newOwners, [permission, otherPermission]);
```

## Things to know

- **Status: Draft.** Reference implementation is "TBD" and Security Considerations say "Needs discussion".
- The spec text has some inconsistencies (e.g. the type string for `StartRecovery` and the example message fields do not fully match the struct). Expect changes before relying on exact hashes.
- Guardians should check the EIP-712 domain (`verifyingContract`, chain id) and the new owner before signing; a convincing request to "help me recover" is a classic phishing route.
- Use a lock period for lower thresholds so the real owner can notice and cancel a hostile recovery.
- Fits smart accounts built on [ERC-4337](/eip-4337/) and modular designs such as [ERC-6900](/eip-6900/) and [ERC-7579](/eip-7579/).


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-7093
