Social Recovery | Rasul Ibragimov, R&D Lab of Ethereum Foundation

Cyber Academy x cp0x Buenos Aires 2025 · 2 Dec 2025 · 10:03

Rasul Ibragimov of the Ethereum Foundation presents social recovery, a trust-minimized way to regain control of a non-custodial account without a support desk or a single master key. The talk contrasts offchain secret sharing with onchain guardian-based recovery, then describes the design goals and architecture of a social recovery SDK for wallets, comparing a monolithic recovery manager with a composable design built on Safe and CREATE2. It closes with open challenges: ZK Email and ZK JWT public key infrastructure, and recovery across multiple chains.

Speakers

Topics

From Cyber Academy x cp0x Buenos Aires 2025, hosted by Cyber Academy.

Transcript

Hello everyone, my name is Rosul. I work in PSC team of Ethereum Foundation and today I want to talk about social recovery. Uh so what is social recovery? Social recovery is a mechanism to restore control over an account uh when the original signing key is no longer usable by executing a predefined recovery procedure that involves other actors. So the target here is non-custodial accounts like EA or smart accounts and uh it's like usually applicable when the original key is lost or destroyed and uh recovery relies on protocol defined rules not on a support desk or a single masterpiece. So by itself social recovery should be

non-custodial as well. So there are types of touch recovery. First one is offchain recovery and another one is like onchain recovery. So offchain recovery is mostly uh when the like recovery like offchain recovery is when recovery process happens fully offchain. So a good example of this is let's say you have you have your private key and you want to split it across mu uh into multiple parts and uh give it give the shares to your friends and then when your friends present their share uh you can set also like n and m threshold parameters and when n of your friends present their share the private key will be restored and onchain recovery is basically fully uh onchain mechanism uh it's contract based and it it also

involves multiple actors ers uh we call them guardians and here guardians sign their transaction with their signing mechanism or uh some any others of method and then they can also jointly uh authorize a new key for your account. So what we are trying to build in our team is social recovery SDK so that wallets can integrate social recovery features. So right now as you as you know mo like most of the wallets they don't support social recovery features or at least they don't support trustless like self-custodial social recovery features. That's why we are trying to build this SDK.

Uh so before going further I want to tell to tell you that it's not public yet. It will be public soon but generally I think it's good to share the details of our work our progress our challenges. So first I want to share our design goals. So the design goals is basically that no single party can unilaterally take over accounts. Then also of course N ofM approval from multiple actors and of course time locks. Uh different authentification mechanisms uh we call we can call them classes as well for guardians with uh for for security guarantees is uh recommended to have like one or each class policy. no dependency on centralized services and also guardian

guardian privacy so that the guardian set shouldn't be trivally exposed on chain and also another important point here another important goal is to have really good UX so that recover my wallet procedure uh that non-developers can complete recover my wallet procedial procedure similar to forgot my password and what two so what is social recovery SDK basically it can It's we distinguish it at like uh into like two components why one is like smart contracts and uh it's basically interact interfaces and contracts for guardians uh we have op adapters is basically uh adapters on chain like smart contracts that verify different

off methods and uh something to manage recovery policies we call it recovery manager and client SDK is also kind of similar in that sense it's consist of al manager B basically bunch of different off methods like zk mail pass keys verifiable credentials etc and wallet UI helpers for configuration and recovery and uh for you to understand general flow is basically you have configuration you open the wallet like settings you pick uh all methods and guardians the number of guardians you define n of m and time locks and then for recovery uh basically you initiate recovery you initiate recovery like from guardian

hand side uh they authenticate uh authenticate and approve and then contracts enforce the policy and rotate the accounts key. So uh I think I'm going to skip this slide. So we had like two architectural options for launch recovery when we're designing this. So first option was to have like a monolithic recovery manager and another option was to have composable recovery. So what is monolithic recovery manager? It's basically one single smart contract that uh basically manages all of the logic and uh it's the same contract that verifies all guardian uh proofs like signature zika proof etc. And the same contracts perform uh owner and key

rotation on the target account. So pros of this model is basically it's very simple. It's uh one place for all the logic and cons it's that it's tightly coupled to specific off methods. It's not non-scalable. It's hard to add something new. So that's why there is like another option is called composable recovery. And here compos composable recovery is basically that authentification methods are implemented in guardian specific contracts not inside one monolith. And uh recovery manager is implemented using existing primitives for example safe and uh base account grants limited recovery privilege to a policy/ aggregator uh in our case it's safe contract. So pros

here is that it's easier to manage recovery policies but cons is that uh there is like additional deploy costs for guardian accounts. So like approximately uh design of composible approach is that first step you have to derive deterministic addresses uh using create 2 for guardians and uh store the commitments to guardians data instead of plain text. So basically it's uh it's needed for guardians privacy. Then we create special recovery uh per special purpose recovery safe uh I mean look multic where guardians are the signers and then in the safe we can configure nom policy and optionally install a time lock model

there and then we can give uh grant privilege to the smart account we are trying to to set social recovery for uh it can be a smart account or like 7702 enabled default EOA and then during recovery uh so yeah important point here is that when we uh set the guardians in the safe we don't even need to deploy the contracts we basically calculate the address using create 2 and only when recovery recovery happens we can we already will be able to deploy smart contracts for guardians and then uh recovery safe safe will collect will collect approvals

uh satisfy nom and call uh the smart account to execute the key rotation. Yeah. So that's generally it a few challenges that I want to talk about here is that there is public key infrastructure challenges for some off methods such as zk mail and zkwt. So the problem here is that zkmail and zkt guardians rely on signatures and public keys from external issuers like mail servers of and JWT providers. Onchain verification needs correct issuer public keys and there are no trustless way to port uh web two data into web 3 is basically like a oracle problem and uh some of the of like uh mail providers

they support DNS sack but like most of them don't don't support this and uh self-hosted DKIM and JWT registries can silently become outdated outdated as well. So possible solution here is that for now we are sticking to the first solution is basically self-updated registries with DAO governed registries as a fallback. So it's basically your registry and in the UI there is like some like from time to time it's like let's say one one time in every like each six months wallet pings you to update your uh self-hosted not self yeah self-hosted registry self to update the registry and if the user is not active uh we can just put it in protocol that

it will be switched to a DA D registry and another possible solution is C7969 9 but it's still in draft. It's basically a way that says that there should be like a DKIM registry on Ethereum directly. And another problem is also is is a crosschain recovery X. And problem here is that accounts and assets are spread across multiple chains. And when you do a recovery on one chain, let's say on Ethereum, uh you recovered your wallet, but then there is like notification, you should do that the same stuff, the same process through like for all other layer 2 for example.

And uh that's like very bad UX. And uh possible solution here is basically I don't know like to wait for this RP to to be accepted. It's like RP7728. It's uh L1s load premp file and key stores. Yeah. Yeah. So it's basically there's going to be like one one one one possible way to do it is there will be like a key store on layer one and uh when the recovery happens it will be updated in this specific case store and then all of the layer 2's they will be able to just read from this storage.

That's it. Thank you.

Related talks