Scaling Dapps with Chain Abstraction
ETHCC 7 · 9 Jul 2024 · 18:33
Greg Markou, co-founder and CPO at ChainSafe, explains how draft Ethereum standards could improve user experience across many rollups, especially ERC-7715 permissions that let an embedded wallet sign many transactions from one approval. He touches on 7702, wallet discovery, transaction reliability in cross-chain flows, and why drop-in widgets from chain abstraction providers harm UX. He announces Sprinter, an intent execution engine for chain abstraction providers, and urges developers to build applications, not dapps.
Speakers
Topics
From ETHCC 7, hosted by Ethereum France.
Transcript
Hello. Hello, everybody. My name's Greg. I am the one of the co-founders and the CPO at Chainsafe, previously a core developer in Ethereum, amongst other things. And today I'm gonna be talking by this is the year of UX. My main focus here is I want to kind of really dig deep into some of the EIPs that are still really in draft, a lot relating to like the chain abstraction space. So if you're just here listening to Jerome, you are lucky and get a lot of free information to start the day off with. So let's just uh start with some context.
Like I think we're in, when it comes to UX, it's always been a plague of our industry. You know, it started with like really like the idea of like you have, you know, uh you're on an extension with a wallet that all of a sudden you switch networks and now you have to restart your browser. This is like the plague of like 2017. Umada, we've got one click experiences through pass keys. We have got Wallace and Sanchi just like you saw before. Um and we're really close. I think we're in this unfortunate sweet spot where if we really don't hit it home in this next like couple months, we're gonna be stuck in one of those cycles where we're gonna have to kind of restart, rebuild, and like get it right the first time. One of these problems is really because we have had a lot of standards come out in the last year around the concept of 4327.
And unfortunately, um with standards, there's not a lot of strong standardization that always happens. And we got a lot of weak standardization with that spec that causes us to fragment on how we use it. I mean, you can't even discover uh 4337 wallet natively unless you like know the user is using that wallet. And this is like a fundamental first prom. So, not to get too deep into any of them, because I'm gonna cover basically the highlight three that I think are gonna be fundamentally game-changing, but like some of the most important standards that are coming right now or that have come out: 437, 755, which is SSO login, 769, 7679, 3074, which is dead, um in favor of 7702. Um you can thank Vitalik for that one.
Um it is better though, 7702 is looking really good. Um, five. These are all in the realm of how a wallet interacts with the application layer and how that ties back into 437. If you're not familiar with chain of agnostic protocols, um, that's what the capes are. Um they're official links now on EIPs to reference them so they are a bit more formal. Um, and those are the relevant ones there. Obviously, we've had things in chain abstraction when we've been able to define balance abstraction and aggregation and the cake framework, which we saw in tense. And ultimately we know that like moving forward, the world is going to be roll-up centric.
Like, this is an inevitable, it's already happening, there's about like a new roll-up a week, and all of these things that are built up here are really because every single time we spin up a new one, we fragment harder. Every time you spin up a 4327 wallet on one network, you fragment everything harder. When you onboard users explicitly to one provider, you fragment the ecosystem harder. In an event to in a in an attempt to try and unify everything, you're constantly fragmenting the user and the experience throughout the journey. Um let's just talk about really quickly some things that some people don't like and how they're gonna be really nice with all these EIPs that I just kind of discussed.
So we're at a point where we can actually start to use embedded wallets as a signing key that live in an application. This is through Passkey. Um this is nothing new. But we have one EIP that's really changing the game. 7715. 7715 came out of the need from two other EIPs I discussed earlier. The ones that there was an EIP to discover a wallet to basically say, hey, where does this 4337 wallet exist? And there was another one that's the wire protocol, and this is 7555. This allows you to communicate externally.
So how many of you has used the Gnosis safe where you had to copy the WebSocket URL into the Gnosis safe to then use a DAP? Like you kind of have to tag back and forth. It's awful. This would remove that whole dependency. But 7715 gives us something really interesting. It allows us to basically tag an embedded wallet and say and talk to the root, your main wallet and say, hey, I wanna spend X for Y on Y for a given period of time. And this is all off-chain-based signatures. Meaning you go to the wallet once, it looks like Google OAuth, where your calendar settings are being pulled. You know, it's like I wanna edit, view, and delete, or I wanna get your contact information, whatever else it is.
And then that app can now fully control the signing experience, which means we can get rid of the historical concept that one button click equals one transaction. Because this is no longer a need if we're in a const we have tight bounds on what the embedded wallet can do. So we can now have one button click equal 10 transactions. And we can hide that all behind the user, and they don't have to know about it or care about it as long as the wallet they're using is strictly bounding. This is gonna fundamentally change. This is still in draft, but it's probably gonna land across wallet connect and major wallets within the next three months.
And this will completely change the way you interact with an app, because you will only go to your main wallet once, and you will probably sign upwards of like 20 transactions under the hood on L2s without even realizing that's what you're doing, because your wallet's protecting you with those permissions. Now, at the end of the day, what this, you know, what we're really trying to say here is you know, chain abstraction at its core is trying to push the user away from making decisions, right? This is why we're building all these things. And the minute somebody has to think about why they're doing something, we've already gone to the point where they've failed at the at the application. And so let's dig a little bit deeper into the chain abstraction stack, this idea of permissions and like arbitrary execution, um, with you know, the most common well-known intent that exists, which is make at least 10% of my ETH.
Now, this isn't this is like a real intent. The idea of like move my Ave position from one chain to another is just simply a cross-chain call. And that's needs to be strictly well understood. Um in order to execute on that and make it feel like one transaction, you need to make multiple transactions across multiple chains feel simultaneously like one. But the problem with this previous statement is that there's a lot of issues if your user account and the funds where you're originating from differ from where the trans intermediary transactions need to be executed. This is why we have solvers, right?
They execute on a completely different arbitrary path. So on a different chain, you know, wherever the destination. Because 10% on my ETH, your ETH might be on mainnet, but that 10% yield might be split across two different networks, and you're getting the best aggregate yield between them. And so you have to make a lot of executions. And so fundamentally, we're at this problem, which we still haven't solved now that we've gone into like a roll-up world, which is transaction reliability. It's how many things can go wrong in that statement. And as I explained, you know, you have to bridge, you have liquidity issues, you have slippage issue issues, you have the fact that one state mutation on one chain is completely different, is completely contingent on the state mutation on another chain, and you can actually get bricked along the process where the funds you have get stopped because once you've left one state machine and you enter a new one, and they're not just they're not connected to one another.
This half worked, this half failed, and now you're in a brick state. Not necessarily bricked, but like the user has to do manual recovery to figure out how do I get out of this state. And that's where we are. We're still at this point where like users are getting gonna get extremely wrecked while pro while doing navigating this like wide landscape, even with chain abstraction. It's not a golden bullet, it's not a silver bullet here. We get like halfway through, we get like a lot of the abstractions there to make it feel like you're not using things. But like we still need to improve transaction reliability. Um, and there's a lot of infrastructure that needs to go into getting there.
Um, if you saw the previous presentation, you'll would have seen this photo, and this is really good because we have a lot of teams building, and this is very common in our space. We have a lot of teams building chain abstraction infrastructure, a lot of them, and not a single one is really touching the application layer. And I think this photo does a lot of really good justice. Because, like, let's be frank, a widget that you embed on your application is not sufficient. It just does not get us where we need to be. The minute you have to embed another team's widget, like a pop-up for like some chain abstraction tool, deteriorates the UX that the application developer can control so that they can get one button, one transa multiple transactions.
Without it, we're now back into like 2022's bridging era of modal widgets popping up. And it comes to basically this like thought that we need to stop thinking that we're building blockchain applications, because we're not. We're building applications that use blockchain. And when you frame it that way, you have to think about how UX is built in the regular world, the rest of the world, right? The web two side of things. They don't build applications, they don't build fire-based applications, they build just an application, and it happens to use it. You don't know about the underpinnings.
And I mean, this is not like a new concept, but like, let's be frank, a lot of the tools that we're building for developers are using the notion that it's like a blockchain-based tool. We have to get away from this. We have to take like a step away. And so, how am I doing on time? 25, 10, 10 minutes, 8 minutes? Perfect timing. Well, I'm doing great. Okay. Okay, so how do we build world-class UX, right? Um there's a there's some things we have to think about, we have to understand.
There's drop-off points. And I think by identifying some of these drop-off points, when you're looking into chain abstraction solutions as you're building out applications, you'll quickly find what kind of fits the right amount of boxes. And I think this is like a super important costume to understand. Nothing is going to check every single box for what you need to do. But it'll check enough to bring that experience to where you need it to be. Hopefully, with the solution I was describing before, the set of VIPs, we'll actually be able to really obfuscate quite a bit of the signing experience. Because there's drop-off points at like which bridge do you use, which solver do you use, who sponsors your transaction, like with gas, what tokens are those supported in?
What wallet implementation do I use? You know, if I use one wallet implementation from one team, does that mean I can switch it to another one? The third, the other really big one is when an arbitrary account abstraction wallet comes to your application. What tool do you have to identify which one it is? And how do you know you're supporting it in the best way possible? Right? Because every wallet will have its own unique feature set on to how to support it. You know, what's the best way to route a transaction, especially when we start looking into the context of multi-chain, you know, you're going cross chains. You know, when you want to build an application, why aren't you building an application that doesn't show the network, that doesn't explain the fine-tuned details?
You know, if your application needs to live on multiple chains, the user should just simply click the button and it does it. You know, you want to get you want to get a swap in there to get into a liquidity position. Show them the swap, it might happen on base, but your app's living on like optimism. It really doesn't matter. It should all be merged in the same. Nobody's stopping you as an application developer from adding multiple RPCs to different networks and displaying the data in the same view. This is just something that we've like gotten stuck with building. And because of that, we create a lot of these drop-off points because we don't know how to like deal with multiple accounts, multiple blockchains in these contexts. And ultimately, one of the biggest wins I think we can see this year, and you know, that narrow window I was describing that we have, like that that narrow window before we have to like really rebuild it, is really nailing the signing experience.
If we can give applications full control of the signing experience through permissions, like I described before, we can give them the ability to like fully choose how their chaining of different tool chain abstraction tools works under the hood because they can, with an embedded wallet, you can simply just chain a bunch of different calls under the hood. The user doesn't have to see 30 pop-ups, and now you're actually re-in control of your application's UI, of the experience that you're giving to the user. And so that helps us get away from the clunkiness.
And one second. And that you have to go and onboard your users to it. And I think this is a fundamental other problem, because the minute you have to onboard users to a specific implementation of a wallet of a tool that's bridging, we get into this clunky experience.
And so that's kind of my gist on like basically what I wanted to talk about regarding to the EIPs, where some of the new stuff that's coming up, um, as well as kind of how we need to, you know, planning for the future, it's like we can start actually building applications with chain abstraction tools that are against multiple networks. You're hiding a lot of the nuances behind the scenes, and you can get away with sending multiple transactions without a problem through proper delegation. And at Chainsafe, this is right as I have less community here. I want to really, I want to highlight something that we're going live with this week with a couple teams, and it's kind of coming out of stealth.
We call it Sprinter, and it's you know, execution for chain abstraction providers. The goal of chain abstraction is to make multiple chains and transactions feel like one, right? And so what we're doing is we've basically built a bit of like an intent execution engine, like an aggregator to give users the best feel, developers, sorry, the ability to like not have to go down the hard burstone choice of like where what do I support, what do I need to support, but rather be able to support any type of wallet account type, wallet type, or support any type of chain abstraction solution based on that given wallet type. Ultimately, like what's happening behind the scenes is we're trying to improve time efficiency for users and capital efficiency for protocols.
What I mean by this is like we're basically from a front-end perspective, you can accept any type of account, whether it's 437 or a specific nuanced one, um, or an EOA. And you can have that same experience across all because what we're doing is we're running a couple of, we have some solvers that are running against a lot of the major chain abstraction protocols where we bear the equivocation risk of transactions in multiple different areas. One being on the LP on the intent protocol side, so you could think like you know, with a cross protocol, for example, as one, where we're bearing the risk there. And we're also doing just in time liquidity for that destination call data, right?
You want to buy that NFT on a random chain that's like an isoteric chain. The way you do that is we're bearing the risk of that full amount with just in time liquidity. So we can settle it really quickly and offset the risk for the user so they don't actually have to ever interact with the underlying chain abstraction protocols. We're handling that for them. And you know, announcing something's like, you know, one thing, but being able to actually like prove it in its uh fullest potential is another. Um we're partnering with a uh game uh horizontally skilled gaming ecosystem, so this means there's many, many, many L2s sitting underneath it, like a swath array of them, all facilitating very specific actions where Sprinter is gonna be a first-class citizen there. And so when you go there as a user or even a builder, you'll never be able to understand what's happening along the way.
It's gonna feel like you're just using an application that's like powered by blockchain and is using some parts of a blockchain. Um yeah, so I think I'm right on time. Um there's some links if you wanna uh check out what Sprinter is and what we're doing to help solve that. Um there'll be more on it in the coming weeks as we have some of our integrations go. And if I can say one thing, it's build applications, not DAPS, because we need to bring the best world-class UX we can. We're really close, we have a narrow window, and this is the year.
This is the year for UX. Thank you. Um, but uh thank you.
Related talks
- The End Game Wallet: When Does Abstraction Go Too Far? by GregTheGreek | Devcon SEA
- This Is the Year for UX | Gregory Markou - ChainSafe
- The Three Transitions: Cross-Chain Smart Wallets with Privacy
- Chain Abstraction Is Inevitable: 1 Account, 1000 Chains
- [trustless://interop.landscape] Workshop - Hidden Contract Accounts: Interop through ENS Namechain
- Universal Ethereum Logins
- Bye bye browser wallet: How new signers can make your dapp mainstream ready?
- Product announcement: Safe
- The Wallet and UX Stack to Build Web3 Applications for the Masses