From account to chain abstraction, the bumpy road towards blockchain adoption
ETHCC 7 · 9 Jul 2024 · 20:44
Jérôme de Tychey traces the path from account abstraction to chain abstraction. He explains how ERC-4337 smart accounts separate the signer from the account, and presents his team's all-in-one SDK with passkeys and session keys, shown live through a crowd-played Pokemon game on Arbitrum. He then describes the next problem, a user who withdraws funds to the wrong chain, and the CAKE framework for chain abstraction. A second demo passes a cross-chain message between two Safe accounts through a multi-chain module, which he presents as an early proof of concept. Q&A covers passkeys being tied to a domain.
Speakers
Topics
From ETHCC 7, hosted by Ethereum France.
Transcript
So we could we couldn't get Jean-Claude Van Damme this year, but maybe we have Carlos Matos next year. All right. Shall I shall I start? Yeah? Oh good. Hello, welcome. Thank you for coming to my talk. I'm going to go through account abstraction towards chain abstraction. I hope you like those kind of topics. Well, maybe the line was too long at the um at the foot court, and you figured out I'm better off watching a talk. But anyway, we're going to talk about chain abstraction and account abstraction today. My name is Jerome.
You can find me everywhere on this handle at GDT. And I'm doing things on Ethereum since uh quite quite some time now. But we have many things to talk about today, so I'll go through this swiftly. Um you're in the right place, definitely. Because in 2021 we showcased fully on chain games, which became pretty popular afterwards. In 2022, we showcase rental system for NFT, which has now started to pick up. In 2023, we showcased decent uh data availability committee on the OP stack, which has now made that in the OP stack something really cool that many people are using. So what have we been cooking for 2024?
Uh two things showcasing new paradigm shift in the UX for account abstraction with not one but two demos on stage on a foreign computer that I don't know of. So let's see if it works. AA with 4377, pass keys and session keys, and also a first chain abstraction demo. Okay, so here is the menu for today. Trick Our SMIL. Why do we need AA and chain abstraction? I can abstraction in production and also going multi-chain. Let's go multi-chain because we already are in a multi-chain world. So at Comef we care about one thing, which makes two things actually helping Web3 apps reach traditional retail users and vice versa, helping Web3 Web 2 retail users hop into Web3.
We've been doing lots of things on gaming, and we've been strongly identified as a player into the gaming space. And now the gaming activity has spun out and start to produce really Web2 ready web3 games, notably on Epic Game Store, which is pretty cool game that you can uh see the mobile version at our booths. So along the way, we faced different challenges. Scalability and UX was really tough to handle back in the days because in 2021 we barely had rollups available. So we did lots of research on how to do roll-ups and data availability. We launched a layer tree on top of Arbitrum.
Um we did work a lot on smart accounts as well to make sure that we have a good funnel for our games and our partners, and we reached to a certain stage of maturity regarding pass keys to sign. Not past keys to sign in, but pass keys to sign. And along the way, we started to have a large user base that were facing uh chain fragmentation, liquidity access fragmentation, and UX fragmentation through that. We also considered that web3 apps today that have significant traction are lured into having their own layers, and they are slowly but surely, and some of them really fastly going to have their own chain and their native chain for their own app. What's holding them back today is some form of composability needs, some form of liquidity access, and this is going to be solved in the next few months or or maybe next year at ECC.
There is many talks about that at this year's edition. Which brings me to the second course. How do we see account abstraction in production right now? I'm not going to spend too much time on account abstraction because we have 35 talks at this conference about this topic on the onboarding wallet and abstraction track today at it CC. The core thing you have to understand is that with account abstraction, we are decoupling the signer and the account. Your account, your Zero X, blah blah blah, your address is a smart contract or a smart account. And on this smart contract, you can have multiple types of signers.
And so the availability for new type of signers, new form of onboarding is making the UX 10x better, 100x better, compared to the strongly coupled approach of having the EOA and the with the address and the private key being strongly coupled together. Basically, the the onboarding of telling someone to write down 24 words in order to generate a private key, and this sole private key will activate this public key is not suitable for the most people. Imagine telling your dad that uh if he loses the credit card, the all like all account access will be blocked, all the funds will be lost, and there's no recovery, it's instantaneous, no refund. Like understanding this new approach from a security model perspective is hard for the layman.
And with account abstraction, we solve that. We solve that notably by diluting that into more gas spent. But since we have L2 access and a lot of block space accessible, we can actually do this trick. So there's many benefits on account abstraction compared to EOA. Uh we strongly believe it's a shift in paradigm in terms of onboarding and user accessibility. Uh, here are a few things you can do: different signature scheme. Why don't you sign with your Bitcoin wallet, for example? Uh, replay protection scheme, gas abstract gas abstraction, being able to do key rust key rotation and also batching multiple calls. That's something we can do thanks to account abstraction.
Yet the motivation has been lingering in the in the HRM protocol for so long. We had we had two digits EIP talking about that back in 2017. We almost agreed in 2020 on uh this version 2938 of account abstraction, and then we went to 4337, which is a smart contract standard that uh many people can build on top of and that will slowly find its way into core protocol integration. It does not require any Eterram consensus changes, it's available on every EVM and it supports many cool use cases. Yet so far we haven't seen any uh major app going live in production with account abstraction.
Uh the reason for that, from our perspective, is that we kind of lack one or at least well two at least one one all-in-one solutions to do this. Um, some very uh very very talented teams are focusing on exposing a cool signer, some others are focusing on uh doing the entry point or bundling transactions, some others are even implementing their own smart account to have a smart account that's very lightweight and very composable, modular, etc. So, if you are trying to get into a 4337 implementation for your own application, you will have to face this certain lack of maturity and having to patch and bandage all together different uh moving parts uh in order to make sure that your application continue to work. And there is kind of no way back because once you have account abstraction on your application, you are putting all your users in the same funnel.
And this is great for your users because you're not having a web 2 onboarding on the one hand and a web 3 onboarding on the one end. You have everyone on the same single funnel, so it should make your life much easier. Another reason that we see is that maybe it's hard to piggyback on web3 native applications. Because currently the DeFi apps, which have the most users and the most traction in our space, are kind of reluctant of going this way because it's a huge change for them. And they are more busy fighting for uh larger TVL than uh trying to fight for web 2 user acquisition since it's kind of expensive, or it should be less expensive if you have a good onboarding, but also it's not really rewarding uh enough for them to do so because it's still hard to go from fiat to crypto, and thanks to Mica and different regulation coming into place, we'll really likely make this uh a bit easier.
So today we are proud to introduce that we have a 4337 all-in-one SDK for you to approuse and try and use and put in production in your own applications. And this comes with several benefits, and one of them I'm going to demo it today. Well, we have pass keys to onboard and to sign, but also we have session keys to make sure that your users are not spammed with things to sign, with things to activate and so on and so forth. So it's available in various integrations like VM, WagMe, and some native app for mobile coming up as well, and also Unity if you're doing games and so on. So you don't have to care about uh packaging different different providers and bandaging different stuff, and it's also modular.
If you have things that are existing and you want to port that, it can adapt to this kind of problems. So, in order to demonstrate this, we are proud to announce that we now have a session key module on top of safe. If you have been playing Pokemon, this will remind you of good nostalgia. Uh, there's it's inspired from a social experiment called the Twitch Place Pokemon, where the Twitch chat was voting on the next move for uh the Pokemon trainer hash here. And um, once the vote is complete, uh hash is moving. So here's how it works: um collaborative adventure, and you can play that from your phone.
So go ahead and scan this. I'm going to give you 10 seconds to scan, and then I'm going to do it as well. Or you can type red.com f.io. It will ask you to sign twice. First, querying your uh secure enclave with your biometrics or your pin code in order to generate a key. Do you sign in with this? We don't collect any information, we don't collect your biometrics also. Uh it's done at the OS level. And then once you have signed in, you will have to sign the second time to declare a session key specifically for uh this application. Here we go.
Whoop. So you should be at this page, and as you can see here, uh, we have 51 person playing. So I want to go right. Let's see. Most people have voted a damn it. Where will it go? Where would it go? Confirmation, transaction. Oh, we voted a. No, it doesn't work. Let's vote for something else. So, under Twitch Place Pokemon, the first time it took 16 uh 16 days for the Twitch chat to complete the adventure. We are very far from the speed run of uh of Pokemon, but oh my goodness.
Okay, so I'm going to continue the presentation while you're busy fighting this Caterpie. Um, oh, and everything, of course, is uh relayed uh in uh 4337, uh paymaster and so on. You can check out the stats if you have the the desktop version. Like uh you are actually posting on Arbitram one, yeah. Yeah, it's live in production, as I said. And you have a session key to play around with this. So I hope that you are now convinced that we can run 4037 app live in production for massive adoption. And many of our clients and partners are going this direction.
You will find us inside Block Scout, you will find us inside uh Worldcoin, uh inside uh Frances Déjeu and so on, and also inside Metri, the the latest uh wallet from Gnosis. Uh, if you want to hear more, please come at our booth. We will be happy to discuss how we work and how we do it. Uh, usually we are fully in white labeled and hidden, so you don't see us until you see us. And this is how we think we should be doing onboarding. Like the app is first, the app funnel comes first. Now that we have a good way to onboard people and to make them play around with blockchain, we are going to face another problem. Yes, and I think this one is going to be much harder to solve than the one that we have been solving with icon abstraction.
Introducing Bob, the Web3 Curious. So Bob got into a Web3 game, a Web3 app, a Web3 social app, whatever you want. Uh and the icon abstraction was awesome. He started to enjoy the game for its content or the app for its content. And all of Bob's transactions were sponsored and happening on an L2 and L3, so they were cheap yet secure. And Bob really enjoyed his app. And he finds out that he would be able to um uh purchase stuff with Eve or do something with Eve on the secondary market or inside the app and so on. And he knew about his safe address or his smart account address, and he decided to withdraw his if from let's say Binance, Coinbase, whatever, onto this smart contract address.
And of course, he didn't know anything about the different layers of Ethereum, the different flavors of the EVM, and he withdrew on the Binance smart chain. Oops, where are my EV? So Bob's rushed to the Discord server, ask for help because his balance is not showing up on the L2 on the L3. We face this problem a few times with uh cosmic battle, the game from our game studio. So, what do we do for Bob? So it turns out that we have a few researchers and a few initiatives in the space that are thinking about this kind of problem and how we could solve them, introducing the cake framework where you have the application that uh wants to be cross-chain, wants to be uh uh exposing their users to multiple chains. And in order to do that, you have to have a good cross-chain communication, you have to have good chain abstraction, gas abstraction, sorry, you have to be able to unify the liquidity, you have to uh get to an inter-blockchain communication protocol, you have to aggregate different DeFi services and also have multi-chain manager.
So it feels like a lot of moving pieces, but also a lot of pieces that are getting stronger and stronger and mature and more mature and more mature as the time goes. And we have many of those people coming to ACC to discuss what they are doing right now. So on the cake framework, you have a settlement layer, of course, you have a solver layer that makes sure that uh what was the intent was actually done, and you have a permissioning layer, permission layer that asks for the intent or prepare the intent. And at the end of the day, this comes up into the application layer. So if you if you thought agreeing on an icon abstraction standard was hard, this will this one will be will be hard as well.
Uh they hosted a little side event on Sunday. Uh the cake was there, but nobody touched the application layer. Nobody touched the application layer yet. We're about to see how we can do that. So at COMEF, we are going into some open source initiative, of course, and one of them is a lock module specifically for this kind of cake framework use case built on top of SAFE alongside with the one balance team. If you are part of the safe governance and want to give us some love, you can see us in the in the this proposal in the chat of the the safe uh the safe forums. What we will do is contribute to implementation of this module and maintain it, and of course, start to standardize it so this solution can be available in RSDK or in anyone's uh applications for account abstraction.
What interests us in the cake framework, oops, sorry, uh so people will wanted to what interests us in this cake framework uh is that we can also use uh lightweight proofs uh that can be uh across chain, and we've been working on that on the RD level at CAMEF, notably with a storyless, an optimistic iteram history indexer that produced storage proofs for you to verify that something happened on one chain on another chain. Uh, this was showcased at um at uh Eve Denver, and we are continuing to make uh some progress on that. Uh maybe next year at CC will show you a full prototype of this protocol for you to use and uh and appreciate.
One of the things we're trying to solve with that is that if your transaction happened on an L3 in order to claim a proof that this transaction happened on another L3 from another L2 on a potentially another L1, sometimes it takes one or two hours to have uh a way to share uh the existence of this hash across those different layers. Nevertheless, with the safe multi-chain module that we have a small proof of concept close to prototype uh stage, we are doing this. We have a primary safe on chain A, and this primary safe on chain A is communicating with a cross-chain transaction sender in order to bridge a message, potentially an arbitrary message, onto another chain. And on this other chain, the user Bob has a secondary uh safe that has a multi-chain module, which is what we will put to our focus now.
And this multi-chain module can take instruction coming from Bob on another chain from another chain. All right, demo time for end computer. Let's see. Uh no, not that. So I'm going to create a safe. Uh, our SDK, when you don't have uh pass keys available on your computer, default to creating a boner wallet. So we just created a wallet on optimism. Now we are going to create a safe wallet on Arbitrum. Once the safe has been deployed on Arbitrum, I will create the module and enable the module on Arbitrum. In order to relay the messages, we are using hash, which abstract the bridging layer and the proof layer that you use across chains.
So I'm deploying the module, I'm enabling the module. And uh let's see, let's see, let's see, let's see. Okay, and now we can pass a message. Eat C C. Let's see. All right, and as you saw, I'm not paying anything, I'm not having any pop-up to pay for the gas and so on because everything is abstracted at the account layer at the icon level through 4337. Uh so now the message that's been sent on optimism.
It's now being uh transferred onto Arbitrum. Uh and I think in the demo we are using layer zero in this version. Yep, so it's coming up. Blah blah blah. Wow, I'm impressed we're almost on time. Uh okay, okay, one more time, one more time with the feeling. Meanwhile, you can test it yourself if you want. You can scan the QR code and see how it feels on your on your phone. Everybody relays. We have uh about 80% in the room, so 80 relay at the same time. Let's go.
Cross chain, cross.chain.com f dot io. There we go. And it should be good. Yeah, we have each cc written on arbitram on our safe now. Yay! Woo! I know, right? I know. Everybody's busy playing Pokemon now. All right. Uh well, that's a lot, and that's it for today. Um, if you really like this t-shirt, you can find it at our booth uh along with the just do if dot cc website. Uh claim an NFT, test uh our onboarding method.
Uh there's also our uh checkout product showcase inside the app. Uh if you want to hear more about how we do chain abstraction and and account abstraction, if you want to contribute, if you want to help us, if you want to integrate us, you'll find us at the booth. And uh if you well want just want to mingle, I'll be I'll be around at the booth. Thank you so much for coming to my talk and uh have fun in Brussels. Oh, I see we have one minute, so maybe one question. Anyone?
Anyone wants to be hit by the catchbox? There you go. Hi. You had two demos. One is Pokemon and another one is just a bridge in one. I couldn't I didn't remember the domain, but uh the wallet, account abstraction wallet, are they shared across domain or they they were just same domain? So yeah. Uh excellent question. So the wallets are shared across domains because the wallets are safe. Uh now inside the safe uh you have a button to say I want to add an owner.
Right. So one of the problems, one of the only problems of the pass keys is that the pass keys are linked to the domain that you are using them first. So as an application, if you want to allow the user to easily swap across domain and do multiple things across domain, you have to ask the user to add an owner that they can port across domains. Or you have to expose a cross domain pass keys.
Related talks
- Gnosis Safe in a Multichain Future
- Loopring: Rise of the SuperApp
- From Protocols to Products: UX as the Bridge to Adoption
- Biconomy’s “Supertransactions” are changing the way we use crypto
- This Is the Year for UX | Gregory Markou - ChainSafe
- DAPPCON 2025: SKUL- Slim Keystore Utility Layer - Jerome de Tychey
- Blockchain for the Masses: Simplifying the User Experience — Luka Isailovic | Reown
- How LUKSO will UP!grade the blockchain user experience
- From Idea to Reality: Transforming User Experience in Web3 | Fabian Vogelsteller - LUKSO