ERC–7947Account Abstraction Recovery Interface
Universal Account Recovery Standard (UARS) Proposal · 16 Jul 2025 · 45:49
Artem Chystiakov presents ERC-7947, a proposed account abstraction recovery interface that sets out a recovery process for Ethereum accounts. Recorded at the Ethereum Engineering Group meetup, with slides shared alongside the recording.
Speakers
Topics
From Universal Account Recovery Standard (UARS) Proposal, hosted by Ethereum Engineering Group.
Transcript
Hello and welcome everyone. My name is Peter Robinson and this is the Ethereum Engineering Group meetup. Today we've got Artum Chistov and he's going to talk about an EIP that he's been working on about account abstraction recovery. Um so please um Artum please introduce yourself before you present your slides. >> Hello everyone. So my name is Arson. So currently I'm absolutely developer at distributed u working on a lot of topics mostly connected with cryptography and u and the serum um and yeah author of three and today I would like to show you and
present you the latest one the uh 79 uh47 which is the account obstruction recovery interface and yeah I think I can share the the screen right away. >> Yes, please do. >> Yeah, just just a second. Just a second. This one. So, um yeah, just just today I said DRC uh 7947 and obstruction recovery interface.
We'll talk about it um in more detail um the motivation behind this CRC and also a bit beyond like what is um what I think can be done on top of this year going into the future. So let's start. So first of all the precap just uh I'm sure that you're all familiar with all those concepts but uh I'll be talking about them quite a lot. So let's just quickly go over them and um just remind ourselves the differences. So first of all externally owned account this is the
regular accounts on Ethereum. It has a private key. it can send transactions and importantly doesn't have bite code. So um before the latest pectra um uh fork on Ethereum this account could only like initiate transactions that was basically it. Uh so after pectra we have uh u 7702 that can uh place like a bite code under the EUA but this is uh we'll talk about it later. uh the smart contract the contract it doesn't have a private key so it can't initiate transactions but it has bite code which allows this contract to react
and um have really interesting logic uh written within and the seed phrase is uh just a randomness from which we derive a private key using a bit 39 standard um which is also used in Ethereum um and two um two um two main aspects that I wanted to highlight here. First is that before the beep 39 we we just had private keys lying around and it was really hard to remember them. So um some brilliant folks came up with with this concept of seed phrases where we can
break up this um this randomness into words uh like 12 words up to 24 words that we can easily course remember but actually it's really hard to um actually remember them. you can write them down and hide somewhere but to keep them in in your memory is uh quite challenging and this um be is quite uh quite old already it's like 10 years old and I think going forward we have much more clever solutions when it comes to seed phrases.
So the next one uh yeah the GX end game for CDM is basically to combine the externally on account smart contracts to have one um like one instance that can initiate transactions and where we can also have some bite code where we can react to to to those transactions and the importantly is to never deal with seed phrase is again if we could somehow yeah combine all those three this would be the best UX possible for Ethereum because the onboarding of new of new
users uh would be really simple no like remember write down the set phrase um and um we could do like multi calls u one transaction we could do transaction split sponsorship. So users uh wouldn't need to hold uh uh either to to to initiate transactions. We could do it because of this combination. Yes. Um so count obstruction is um quite a an important concept in terms of Ethereum ecosystem. It was around for for quite quite a while and basically it
tries to solve the the first uh problem the problem of combination of externally owned account and the contract but it doesn't uh like directly solve the problem of uh seed phrase. So by combining those um users can now operate smart contracts with custom logic. Yeah, we can do multi calls, we can do go sponsorship, we can do um I know for example when um when some wallet provides um this account for users, they can pay for every transaction uh initiated from that wallet. Also, we can
add logic for account recovery. we can add like a lot of um cool things impossible without this combination. Um and the most popular standards right now are uh ERC 4337 and the AP7702. Um so this one is an ERC because it doesn't require any protocol layer modifications and for three uh 37 is just a set of smart contracts and some offchain uh um components. I think they are called batchers. That's uh just you can deploy on any chain that's why it's
called an ERC and EAP702 has been recently um enabled with the backra fork on Ethereum and basically this this one allows you to set um like a special delegation by code underneath your externally owned account so that when you call your account you can execute custom logic for for the affirmation for the affforementioned um use cases. Um there is one um one caveat uh in regards to 7702 is that um the private key that controls
this account uh can always like unddlegate this logic that you set up. So basically you can set a new bite code and at any point of time you can unset this bite code and this basically means that um the private key that controls the account is a super user uh like that we can't um limit in any ways um which um which is not super cool. For example, if uh if your key gets uh uh compromised, there is no logic uh right now within the Ethereum that would allow you to
recover the funds because they can just undlegate your whole logic from the smart account. Um that is one caveat here with the the 4337. Um yeah, it's different. So no problem here. Yes, an account obstruction doesn't directly uh leave the requirement of seat phrases uh because it's a bit different concept. It doesn't actually care how uh you would derive this private key to control your account. It just aggregates um this logic.
And uh because smart accounts are basically smart contracts, they can be extended with clever standards and some advanced cryptography tech to improve the UX even further. Yeah. So one of the extensions that is uh possible um that uh yeah I came up with is the ground obstruction recovery interface. So actually there uh there were a lot of talks um with account obstruction that yeah we now have bite codes we now have smart contracts may maybe it's possible to do some social recovery within those smart accounts and
yeah it's possible to do it but how would you do it actually like there is no um interface to follow there's no um something that you and just um I know reads and and implements it. It's uh it was all like abstract in the air. So what's uh what I decided to do is just to define those interfaces very very simple form and um just yeah try to solve this uh this problem of on boarding.
So yeah, usually smart accounts are operated by some authority user that has private key which basically is needed to authenticate uh the action on this smart account. Uh how this private key gets derived is not our concern right now. But what is our concern is that if this private key gets lost. So um the very important word lost but not stolen. Um we can yeah so basically when it can get lost uh if you are using some wallet so it internally stores this private key and
if you uh if you uninstall this wallet then it's possible that you forgot to write down the seat phrase. So you you you don't have an access afterwards because it just gets deleted and that's it. But on the blockchain the funds are still there. So you would want to somehow recover them. But um computing the seed phrase is quite impossible. Computing the private key is also quite impossible. So uh the only way is to do some external um I know external proof that you that you actually owned this account
previously. So this external proof and method can be standardized. uh we can define some interfaces just to make it a bit more secure because it would go a lot through a lot of um preview peer review and uh because it's an ERC it would also be become available across the ecosystem for the further usage. So here is the code for the um account obstruction recovery standard.
Um so let's just quickly um understand it's it's a very simple interface. It's very simple standard. So uh how it works basically the uh the ERC defines two interfaces. The first one is uh account recovery. The second one is recovery provider. And basically it uh provides a means of of communication between between accounts and recovery providers where um when you have accounts available. So when you set it up when you're using it, you can subscribe to a recovery
provider. Um let's say you you you developed one yourself or you know a service that provides some recovery. You can subscribe to this recovery provider and uh like commit to to some um some secret that you would like to prove later that you are the owner of the smart account. So you subscribe and then after some time you can recover. Um yeah the the function is called recover but basically what it does is that inside it you have some proof that proves that you know the secret to the
commitment uh that you subscribe to. And if that's okay, if that passes, then recovery provider says cool, you know the secret, you can change the owner of the smart account. So this is basically the the whole flow. Um here are the interfaces and maybe this would be a bit more uh understandable. So basically four functions here and four functions there. Uh on the account recovery side we have add recovery provider function uh which should be uh access controlled.
So this is an interface. So uh it's just defined here but when you implement it in the actual account it needs to be access controlled. Um I know like only owner access and at any point of time uh the account the account can add the recovery provider this one and provide the recovery data. Recovery data is this commitment that we would like to commit to. This can be like a hash of uh of your pass password.
This can be some I don't know proof of passport commitment. This can be I know some other public key that uh you would want to know check the signature of this can be literally anything. And uh when when a user calls add recovery provider function it calls the subscribe function on provider. Then we have remove recovery provider which uh calls unsubscribe and basically removes all this data uh from the recovery on the recovery provider side.
Then a super simple function to check if recovery provider has been previously added to the account. And the most significant one is recover ownership uh where we pass the new owner that we would like to recover ownership to the recovery provider which has been previously added to the account and the proof of knowledge of this password or uh proof of passport or anything that basically gets uh transferred uh it gets called here and this proof is basically this proof and recovery provider can check um
this previous like commitment link and if it's okay then uh recovery provider returns true and we can change the owner of this accounts to this newly passed owner. So as simple as as that um let's check what is possible actually with with this kind of communication. So first of all u this very simple design which is basically two u interfaces is compatible with almost any smart account. So you can um use any existing implementation of a smart account from f
infinitism from uh I know metam mask from any um any library you you like and you can easily extend it with with those interfaces on the previous slide um because you would still have uh this ownership mechanism and just adding several uh new functions is not a big deal. Uh secondly, uh we can have like an ecosystem of those recovery providers living somewhere. This can be a website. This can be within the wallets. Um this can be like an aggregator of of
implementations and recovery providers may provide like a variety of recovery services like a password through national password socials easy ml like whatever you want and this is up to a provider to decide and to the user to decide which provider to uh to use which they like uh fully up to Um then we don't need to actually trust the recovery providers because we can use zero knowledge proofs uh for um like to to compute this uh secret on
your device and never never reveal it to the outside world. Because in the um subscribe function we are passing some bytes some commitment. Recovery provider doesn't know what what this commitment is. uh they just uh they they would just store it inside their like uh storage and then we are passing some abstract proof where we never reveal this um um this secrets and uh we would just check it um as normal zero knowledge proof. If it passes then
yes we know the secret to the previous commitment. So no data uh shared with anyone fully on device. Um pretty cool stuff. Then we also have a um economical um incentive here. So it's possible for recovery providers to charge some subscription fees if they want um because by design um the account has to call the subscribe function and inside the subscribe function recovery provider can uh try to I know transfer USDC or require the payment in ease
um which is u yeah which is pretty Then we can possibly have this recovery provider marketplaces uh emerged. Uh for example, this can remind you of unis swap version 4 hooks. Uh so there are like websites where a lot of community and um um and and um established companies um share their implementations of unis swap hooks.
Those hooks can also like charge fees or something, but uh they're like available to the public and this also allows this like marketplace to exist where basically user would would go to and with their metamas um they could sign up for the 7702 delegation where um user could choose which accounts to to use and inside this account they could also say that okay I want this recovery provider to be added as a recovery option
um and the the this is going a bit uh in the future going a bit forward so in combination with some 2FA uh like ZK 2FA where this uh second factor of syndicate two factor authentication is added to every function within the account. So when you want to transfer funds or you want to execute some logic um you would provide some additional authentication along with the private key signature and if we have this we no longer need to remember the seed phrase again. So why
why is that? Because um the sit phrase is just like something that's needed to authenticate yourself. But if we can authenticate with an additional method and then if we can recover to a new seed phrase basically whenever we want. So we don't need to to remember it again. We can use the wallets um as normal. We can delete this wallet and okay when you want to recover it you have means for that. If your seed phrase gets ever like stolen or
compromised, you still have a second uh two factor authentication that doesn't allow your funds to be just easily transferred from your account. Um and if that if that's the case, you still have some time um to recover to a new seed phrase like to recover to a new ownership. And basically the loop starts all over again. And that's why um like I I really love this phrase, the sentence the seed phrase is a toxic waste. So ideally going into the future, at least to me,
uh we no longer need to phrases and um ideally is is to like not store them anywhere. Um because we can always um like we we already have tech to uh generate private keys from better uh better randomness from better entropy than just seed phrase that you must remember somewhere. And uh yeah, one of the um one of the like options to to use here u to extract this entropy. This option is
called fuzzy extractor. And uh basically what it enables you to do is extract some random sample, some random string uh of fixed size from kind of biometric data, image data. And uh the cool part is it also has a noise tolerance. So it's it shouldn't be the exactly the same image, the exactly the same like biometric footprint.
uh this fuzzy extractor can is is clever enough to understand like the patterns and uh extract the exact private key even if there is some I know noise uh on the image and we can use some kind of those fuzzy extructors inside the wallets to generate private keys from real world objects only the user has access to. Uh so for example you I know you parked at some office and um
um opposite to an office there was a really cool I know view or there there was a very cool building that you remember and uh you can take a photo of this building so like I don't know some some angle or um the corner of this building. So only you would know where this private key gets derived off and you also would always remember this exact place because remembering uh the seat phrase is quite hard. So no one remembers this 12 words. But um remembering images, remembering places
is much uh easier for humans just than just uh birds. And um by uh with with some cool entropy we can yeah achieve the same like security um uh security aims and and you would also never like forget where to place your uh smartphone to to extract the same private key. and uh in combination with AI those fuzzy extractors can do like really cool cool things.
So um the the end game sort of for the u UX of course it's account obstruction. So account obstruction is needed for this custom smart contracts logic um to like merge the usage of like the current usage of externally owned accounts because they have private key they can initiate transactions with custom the smart contract logic to be able to actually implement all of that.
uh the usage of fuzzy extractors to uh generate private keys from real world objects to never have the seat phrase uh popping up ever again. So we can um have a UX where we display to a user that okay you need to generate a private key right now and uh take a photo of of something memorable something only you have access to um and uh um yeah after that the private key gets extracted from uh from this image which can be reproduced then for every action on the wallet is
to uh require a 2FA. This can be any CFA but um usually this would require also some zero knowledge proof and because we don't want to reveal those secrets to the outside world and currently it's already possible to have a very simple face recognition neural network to be like packed into the zero knowledge proof with uh some low low livess check. So the third point here is not like production safe uh as of now but uh I think in in several years it would be absolutely
possible to have uh like a really strong recognition network we put into ter proofs with a very high liess check. What I mean here is um this proof would also identify whether you took the picture like right now or it's just some random uh photo from the internet of of yourself. And if this liiness check is very high, we can be sure that whenever the user signs the transaction and we uh require this user to issue this proof is that he's issuing it like in real time right
now and yeah basically providing a two factor authentication and uh the last but not least is in case of a private key loss Um, so yes, of course, you can still reconstruct it from the real world object that you would hopefully remember much uh easier than remembering those uh 12 uh words. you could still recover an account uh to a different um fail world object sort of um
yeah and the recovery is basically made through showing the knowledge of some alternative secret zero knowledge proof which is basically the ERC that um uh the ERC 7947 that we were talking So, um, yep. The ERC is just one small small step in this, um, big picture of, uh, of really cool UX and, uh, um, I'm really hoping that in the future we will have it all. Um, but yeah, right now these are more like small steps in in in this big like
direction. And yeah, the ocean revolution is here. >> Yep. So that's it. >> Yeah. Well, >> um >> there there are some questions in the the chat um that were from um about 20 minutes or 10 minutes and 20 minutes ago slides ago. >> Um and I'll read them out. Um, so is the author is the authority a type of multi-IG.
>> Um, so I think it it was about this one. This is already >> Yeah. >> Um, yeah. But um the thing is for multisig we don't need account obstruction >> m >> um because um yeah multisigs exist and they're just regular smart contracts but here like an authority is is a actually user and I put um like this word here because this can be like like this user can have many like key
players let's say one can be like uh the sec one can be the baby jab job job because it's easier to proof uh those signatures in zero English proof proofs so that's why I put like authority here >> the other question that uh Deventron had was um so where so this was 22 pass. This is a few slides later, but where does the where does the proof get stored on chain and is it hashed and stored? If yes, what's is the hashing used or how how can it be used? So I think he was
looking at what you were saying and grappling with how does it you know like what is this what's the proof value and then what um you know I know what secret gets stored how does how say for instance um the simplest example I think being say a password how would that really work I think is what he's getting at >> yeah so um yeah basically Basically the first step is to provide this commitment to to some secrets. So um in its simplest form this can be a hash of the secret but storing hashes of secrets on chain is not really
a good um good security point because yeah anyone can like try to brute force it and um then your like password gets gets leaked. But um if it's something more complex than uh than that, let's say um this can be some very um very complex structure of of passports. So uh I've been working on on a project where we do those zero knowledge proofs of of passports on chain. And uh basically what's uh what this project does is that we store um
like we create sort of an identity and proof that your uh when you create this identity we prove that your password has been issued like correctly. we um rebuild all those signatures within within this uh passport issuance chain and uh yeah there are actually two levels of those signatures uh uh intermediate certificates and master certificates. So we can reconstruct this chain and prove that your like pass uh passport is a legit one issued by some uh legit government and because it's made in the zero knowledge proof no um
no data gets uh like shared with anyone only fully on your device and you can basically store this information um inside the commitment Yep. That that you have like certain password, certain data. Um and then in the proof this one when you recover the ownership, you can pass the data that would like um match the one that you committed to. And because this is fully fully done by by you,
you can store like basically anything here and prove anything here. And for the outside world um like no one would understand what you're doing here, what you're committing to, what you're proving. And uh yeah because if your private key gets lost so how uh how an attacker would understand what to do here. These are just some random like commitments. Um yeah, this is up to um up to wallet to decide up to um some website where where this interaction happens to decide what
uh what commitment means and what proofs to provide. But yeah, it it can be anything. Yep. You're muted. Y >> So when I was looking at that, I was thinking about how you would do it. And as you say, just a simple hash wouldn't work. And the reason I was thinking a simple hash wouldn't work is when you reveal the pre-image, someone could grab it and frontr run you with your pre-image, you know?
But you're you're never revealing your pre-image. That's the the beauty. >> Yeah. Well, you if you were just had a hash of the pre-image, um you'd need that would be the only way. Yeah, if you had a ZK thing, I I was wondering whether you couldn't have the um have like a secret like you know like a a um a word that you know like a password and you have as a public value just an integer and then you um you hash those together and then you prove that
in zero knowledge um somehow anyway I don't know maybe I guess I haven't thought through through I was thinking that that but how you're saying with essentially like a certificate authority improving that seems like a very good idea and also matches how governments do things >> yeah and in terms of fronts running just real quick so um you're yeah you're never revealing the actual secrets because it's hidden in the zero knowledge proof and what you are using as a public uh output is what you have committed previously. But to never get front run, you must also include this new owner address into the zero
knowledge proof. >> So then if you even get front run, you would still like recover to this owner your desired owner. So >> yeah, >> like you tie the two things together. >> Yep. Yep. So it's not an issue. >> Yeah, that's that sounds very good. Oh, >> but yeah, just one concern with the hashes is that you should shouldn't really store hashes of your passwords offchain because yeah, they are like etern eternally bound to like onchain and anyone could try to like brute force them.
>> Yeah. >> Yeah. Yeah. Even if your password's a 100 characters long, sooner or later something break it. >> Yeah. >> Yeah. >> Yes. It might might take 50 years, but some at some point technology will catch up. >> Yeah. >> Yes. Probably. >> Another thought though that you were talking about using the fuzzers and you'd say take a photograph of something and you would know. So, um I don't know be being a being pretty old as it were, what I've noticed is that people knock buildings down and you know or things that you had readily available to you one at one point five years later, you
know, you can't find anymore. So, um >> yeah. >> Yeah, I I ponder about that. >> Yeah. Um that's um that's a problem. But um it is still um fundamentally much more simple to remember some image yes than the strict order of 12 words that you don't use like very often. Um and even even if this building gets demolished then yeah you have you have an option to recover.
>> Yeah. Hopefully you have a photograph. Um yeah. >> Yep. >> Yeah. >> Uh yeah. So this this can be sometimes um confused with like regular steganography. Um but those um this tech is much more advanced. So in regular steography you basically need to have this exact same image which basically acts as a password. But here you don't need the exact image. you you can like have a a tiny bit different photo like different light lighting conditions um different weather different angles just a tiny bit and
this tech would try to compute um the correct private key like regardless. So it it may take uh several minutes for it to compute because of some different um different images tiny tiny bit different images. But eventually it's it can do it. So no need to store this image anywhere. You just need to remember the the im um like the place um um or the objects >> you can like take a photo of.
>> Okay. Right. That sounds sounds um very interesting. So, thank you. Are there any other questions? Okay. I guess that means you've explained things very well, which is good. >> Yep. >> Yeah. Let can we go to the next slide? >> Yep. >> Okay. The merch store is open and ATAM has gone to the extreme effort of creating QR codes. So, thank you. Um, and next slide.
Um, oh, I didn't update that. All right. Sorry. Um, yeah. So, this talk is today. Um, we have um Yes. So, don't worry about um you're too late to turn up to this and the only way you're seeing it is on the video. But we have um three more talks and in fact there's now a fourth talk in um the on the 20th of August coming up. So um yeah another talk on data. Um next slide please. So um this talk will be available on YouTube. If you're watching on YouTube please uh come along to the meetup and ask tricky questions. There is a Slack workspace. um please um consider joining
the Slack and um you can join discussions there from time to time. There is example code as well and um yep that repo has all of that code in it. So last opportunity everyone any more questions? >> We had u in the chat something Yeah. >> Yeah. Yeah. Um, and for those watching, thank you very much for a wonderful session is the comment in chat. So, and I echo that that this has been really good and I know that you've said that you're working on some other EIPs as well and maybe in another few months when um at
some point we can um have you on again to talk about them because I I think that finding out what people are working on in the space is very very interesting for the audience of this meetup. So, um, thank you for your time creating such a talk today. >> Yeah, sure. Thank you for inviting me. >> Yeah. >> All right. Have a great day, everyone, and um, talk to you all later. Bye-bye. >> Yeah. Thanks. Bye-bye.
Related talks
- Social Recovery | Rasul Ibragimov, R&D Lab of Ethereum Foundation
- Abstracting Web3
- Universal Ethereum Logins
- ERC725 - The Future of On-Chain Interaction by Fabian Vogelsteller (Devcon5)
- Dapper Building a Better Interface
- Post-Merge Wallet by Chang-Wu Chen | Devcon Bogotá
- Path to Seedless Recovery by Stefan George (Devcon5)
- Wallet Security: Past, Present & Future
- EthCC 2: Tobias Schubotz
