Offchain Labs Building the ETH Ecosystem

ETHCC 7 · 8 Jul 2024 · 29:50

Ed Felten of Offchain Labs explains why a layered design suits Ethereum, comparing it to the TCP/IP stack, and lists the principles he applies to L2s such as Arbitrum: alignment with Ethereum, efficiency, harmony, asynchrony, true decentralization and governance. He walks through Arbitrum's four components (sequencing, execution, data management, proving), then previews work in the pipeline: Stylus, a WASM virtual machine alongside the EVM, BOLD fraud proofs, an MEV auction proposal and a decentralized sequencer project with Espresso Systems. He cites L2 and L3 activity at about 30 times Ethereum's TPS.

Speakers

Topics

From ETHCC 7, hosted by Ethereum France.

Transcript

Building better with layer two. I want to talk about why layer two and layering are important for Ethereum and what that unlocks for the Ethereum community. And then I want to talk about what it is that Arbitrum is doing and hoping to do that that will expand that opportunity even more. So, of course, any talk like this has to start with Vitalik's famous post about the roll-up centric roadmap. This is the idea that the key to scaling up Ethereum and scaling down the cost of execution is to move to a layered approach. So how's that going?

Well, I looked a few minutes ago during Sergei's talk at how much activity was happening across the entire L2 and L3 ecosystem compared to what's happening on layer one Ethereum. And so what I saw was that the TPS transactions per second were about 30 times Ethereum. The gas usage was about 80 times Ethereum. The call data used by L2s was about 40 times Ethereum. And all of this was happening across more than 50 L2 and L3 chains. And we see the L2 and L3 ecosystem already producing tremendous scaling for Ethereum with much more in the future.

Okay, but let me back, let me step take a step back and talk about why it is that layering is really important for Ethereum. Why should we use layers? Why not just build everything into layer one? Well, first of all, we have a great example in the success of the most successful protocol ever built in the history of the world, namely the TCP IP stack. Right? The internet, that whole stack uses layering, and layering is fundamental to the construction of that stack and to its success. The internet beat out its monolithic competitors because it used layering and took advantage of what layering could give you.

And the key to the idea of layering is that each layer has a different job. And each layer focuses on doing that job. The bottom layer of the stack, IP or Ethereum, focuses on providing the strongest foundation on which to build the higher layers. But you don't build the building out of the same stuff that you build the foundation. The fact that you can change how you operate, how you design, and what you do at each level, each level focusing on what it needs to do is the key to the success of a layered model. And that's what's happening in Ethereum.

And we're seeing the same kind of success that happened on the internet. Okay, so when we design an L2, there's a set of principles that I think are important to use. And I always try to keep these in mind in thinking about how it is that L2s like Arbitrum might evolve. First, alignment that is to use Ethereum as the foundation. Ethereum is the foundation of security. It provides this incredible, high security, crypto economically secured, very large-scale consensus mechanism. And as an L2, the biggest advantage we have is that we can build on that foundation rather than try having to replicate it ourselves.

We don't want to be an L1 because there already is an amazing L1 that we can use as our foundation. Second is efficiency to optimize for performance and cost. Those are really important for users. And once we have that strong foundation, those are the next most important things. Third, harmony. The components of the system, the components of our architecture should work together. They shouldn't make the other layers' jobs or the other components' jobs more difficult. Third, asynchrony, that each component of the system should be able to operate at the tempo that is most advantageous for it. The sequencer should go very fast so that users get super fast response time for their transactions.

Other components may go more slowly because they need to batch an amortize cost. Each component goes at its own speed. Next, true decentralization. That means not only that there is an on-paper right to participate that everyone has, but it means that power is truly dispersed and truly in the hands of the community, rather than some small set of people who in practice control everything that's happening. And then finally, governance. One of the another advantage of the L2 is the L2 can use on-chain governance that's implemented on the L1, something that L1 cannot do because it doesn't have a layer zero underneath it. It doesn't, well, there's a company called Layer Zero, but that's a different thing.

All right, those are the design principles. Let me drill down a little bit into the design of Arbitrum to give an idea, some intuition for what it is that is leading to this success and what it is that we're thinking about building on. Arbitrum's L2 design basically consists of four components built on top of L1. There's the sequencing component, and its job is to put transactions in order, nothing else. To recognize transactions that have come in, put them into an order, and to do that very, very quickly so that users get known results for their transactions in a small fraction of a second. The result of sequencing, that set of transactions feeds into first execution, which computes a set of blocks that result from executing those sequenced transactions.

Anyone can do this execution themselves, for themselves, because it's a deterministic function of the transactions that are in the sequence. Next is data management. Its job is to record those transactions on Ethereum so that there is a final and canonical transaction sequence that defines what it is that the L2 chain is executing. That can happen in parallel with execution and indeed at a different pace. And then finally, you have proving.

Everyone else knows what the correct result of execution is because they can execute for themselves or rely on someone they trust to do that. But the Ethereum chain can't keep up. It can't run an Arbitrum node itself. And so, in order for the Ethereum chain to know, we have to have proving, and that allows checkpointing of known good states of the Arbitrum chain. So this is the design fundamentally of how Arbitrum works. These four components interacting in a co-designed but asynchronous way. Okay, but where do we go from here?

What are the advancements that are in the pipeline that we can count on to move forward? Coming to Arbitrum soon or on the horizon. Now, unfortunately, I have relatively limited time, so I'm gonna have to speed run through these particular items, but I want to give you a flavor of what each of these improvements is to give you an idea of where the technology is going and what kind of capacity is being unlocked. I'll be happy to have longer conversations with anybody throughout the conference or in the hallway afterward. Okay, but let's run through these quickly one by one.

The first one is stylus. Stylus is currently on testnet, and the idea here is to bring the multi-VM to Ethereum. The multi-VM is the idea that in addition to the Ethereum virtual machine, the chain can support an additional WASM virtual machine that allows you to write your smart contracts in whatever language you want. You can write in Rust or C or C, you can write in Zig or other languages if you like. All of those are supported. And they're a really nice SDK in particular for Rust.

The key here is that this is fully interoperable, fully composable with EVM contracts. We're not talking about a separate chain. We're not talking about separate compartments on the same chain. We're talking about being able to write your smart contracts either in Solidity or Viper and compile them to EVM, or write them in, say Rust or C and compile them to WASM and execute those together on the same chain. Each one can call the other back and forth. They can share data structures, they can use common data structures, you can upgrade one type into the other if you're using an upgradable proxy pattern. Everything works as you would want it to.

And that's the huge unlock that you get. This means that you can onboard existing programmers, you can onboard existing code, put it on chain without needing to rewrite it in Solidity. This is a huge unlock. Also, by the way, WASM virtual machines are much faster than EVM virtual machines. And so you get a huge performance upgrade from doing this as well. And this means that you can do a lot more within the same gas limit and at lower cost. Second, the second set of unlocks have to do with a whole bunch of uh of uh of work going on to upgrade the performance of Arbitrum chains. First, you have uh trying to push greater performance on individual in individual nodes.

Uh that first of all is stylus. Stylus uh gives you up to a hundred X improvement uh in the amount of computation you can do per unit of gas. Uh, of course, it'll vary based on your workload. Um, but also uh uh also work on an integration of the Arbitrum node with RETH, which is a more efficient uh Ethereum client, so that the EVM side of the multi-VM also has substantial speed up. That is uh that's also uh work that's going on. Second, to more efficiently price and limit the resources.

Currently, uh we live in a world, all these chains live in a world of a single gas limit. That single gas limit is set in a fixed way based on conservative assumptions about resource use. We need to move to a model where we're operating much more dynamically and where we're thinking much more carefully about how to monitor and price individual resources. How to do that and have price control and limit control on individual resources without blowing up the user experience or destroying interoperability or compatibility, that's something that we know how to do, and that also will be coming to Arbitrum. Third is optimized data management.

One of the major costs of operating an L2 or an L3, and one of the major limits on the total throughput of the L2 and L3 ecosystem is the fact that all of this data needs to get posted to Ethereum in the form of data blobs or call data. So we want to use that much more efficiently, and there's some really important unlocks that are going on there. And then finally, work on, although I don't have time to dig into it deeply today, I'll talk about it at an event later in the week. Cross-chain interoperability is really important here. So that in addition to scaling vertically to make one chain or node faster, the ability to scale horizontally by having sets of chains that have fast interoperation, very important for growing what you can do and the scale at which applications can operate. Next, I want to talk about Bold.

Bold is an efficient and fully decentralized proving mechanism for optimistic rollups. It is also currently in a test net setting. It is the first and only fully secure, fully decentralized fraud proof mechanism. The only one that's resilient against the Ethereum threat model that Vitalik talks about of up to seven days of L1 censorship. And the only one that doesn't rely as part of the core design on some Security Council veto. So the guarantee that this gives is very simple that any one user can enforce the safety and progress of an arbitrum chain. That is the strongest guarantee you could ask for, and Bold provides it.

Bold also is uh is currently proposed before the Arbitrum DAO. Next, sequencing. I want to talk a bit about sequencing. Uh Arbitrum already has, I think, the leading sequencer that provides all of the green check properties up here. Very fast response time for user transactions, a fraction of a second. Very fast arbitrage time so that markets operate very efficiently, and arbitragers extract less MEV from the chain's users. The chain almost never reorgs in over a billion transactions, the flagship arbitrum chains have had one reorg. The um the sequencer protects users from front-running and sandwiching attacks by maintaining a secret mempool so that uh nobody can see the transactions that have been submitted but not yet put into the sequence.

That's very important to protect users from extractive MEV. Um then finally, uh the mechanism is simple, fair, and easy to understand because currently it uses first come, first serve sequencing. But there are two things that it doesn't yet do. First, it the deployed one doesn't yet internalize MEV value and capture that for the benefit of the chain. Um, and and three, it uh and second, it's not yet decentralized. So let me talk about upgoing ongoing efforts that uh are around these things. First, to internalize or capture MEV revenue for the chain, there's a new mechanism called Time Boost, also currently a DAO proposal.

The idea is that you create an express lane in the sequencer and you auction off the right to control which transactions can be in that express lane. A transaction in the express lane gets sequenced immediately. A transaction that's not in the express lane undergoes a small 200 millisecond delay before being sequenced. You still have a secret mempool, it's still first come, first served with the one caveat that the express lane is a little bit faster. And then you auction off if for every one minute period the right to control access to the fast lane to one party, and that revenue goes to the DAO. The idea here is that when parties are racing to capture MEV, what you're selling in this auction is the right to win all of these races.

The party who buys that right, they will be able to extract any racing type MEV, that's arbitrage, back running, uh, or liquidations, most of the forms of benign or unavoidable MEV can be captured by that party. The revenue from this goes 100% to the chain or where the chain wants it to go. This also is a proposal before the Arbitrum DAO. The really nice thing about this is it allows you to internalize MEV value for the chain in a way that doesn't undermine those those other really valuable properties. Again, this is the only proposed approach that we know of to internalizing MEV value that doesn't undermine one of these values or that doesn't assume you're already on a chain that doesn't provide these values.

Let me talk about that for a minute. Oh, and I, and I apologize, I I don't have time to talk about that in detail. I talked about it yesterday at sequencing day, but briefly there is an ongoing research project that is joined between espresso systems and off chain labs to decentralize the sequencer. The idea is that rather than having a single centralized sequencer that does all of the things I described earlier, including time boost, you instead have a committee of sequencers, say 20 sequencers, that are chosen by chain governance, chosen by the Arbitrum DAO for, say Arbitrum 1. And assuming that those are more than two-thirds honest, then you get all of these nice properties, including protection against front running.

Now this does increase the response time for users by a little bit, probably by some fraction of a second, with uh excellent engineering. Um, but it re but you reach a point of decentralization for the sequencer. Now, uh I'm happy to talk more about that one offline, but I don't have time to dig deeply into it uh in this session. And so this gives uh what uh I've drawn here as a grayed out check on the decentralized sequencer because this is something that is in progress, not yet a DAO proposal. Basically, pretty much everything else, almost everything else that I've talked about, is currently proposed before the Arbitrum DAO.

Uh Arbitrum is really poised for a huge step forward as all of these things come online. And there's a really bright future for Arbitrum in specific in specific and L2 in general as we continue to build out this layered roadmap. Um I want to close with one point, which is that um uh which is that it's possible if we think carefully and cleverly about the design of these L2 systems, for L2 systems to provide stronger guarantees than Ethereum. That indeed, in some respects, is the purpose of L2 to provide faster block time, to provide more accurate DeFi prices, because the arbitrage cycle in the block time is very short, to provide a much lower reorg rate than on L1.

And to provide faster transaction inclusion guarantees. All of these things are possible. So my lesson to you is so my takeaways are really three. First, layering builds strong protocols. Each layer does its job well. And if you do this, the whole stack can be stronger than what you could build in any one layer. Layer two can do things that layer one can't. And of course, that's because layer one is there and providing that incredibly valuable foundation. This is why we often say we're not a competitor to Ethereum, we are part of the Ethereum stack. And three, that layer two shouldn't just copy layer one.

It shouldn't just aim to be a slightly cheaper version of L1. Layer two should aim higher to make the entire stack provide greater value and stronger guarantees than layer one alone can do. Thanks very much. Do we have time for questions? We do have time for questions. I'd be happy to take questions. The uh the team here will uh uh raise your hand and the team here will throw you a uh question box. I'm eager just to see them fly. We got one way in the back. I think you're gonna be sick of you at first.

Yeah, I'll be just putting it close to the side. I'll be sick. You can ask questions. All right. All right, in the back. Okay, so uh thank you for the talk. First off, my question to you would be you made the analogy of the internet having multiple layers, multiple protocols, and they all work together to bring this experience to us, right? And I wonder how you see L2s in a way like parallel to protocols like FTP, HTTP, and so on. Where do you see, for example, Arbitrum, which purposes should it serve, and where do you see other L2s in that regard?

Sure. Um the way I think about this, I sort of if if I have to make a rough analogy to the internet, I would analgize Ethereum to TCPIP, kind of the core protocol. I would analgize L2s to something like uh the the sort of next level of protocols, whether that's HTTP or SSH or something like that. Um and then you have application layers built on top of that. And of course, some of those applications are themselves extensible, right? In the internet setting, you have browsers that are built on top of HTTP, HTTPS, but they in fact are themselves programmable systems that are a little bit more specialized. So I think you're gonna continue to see the growth of ecosystem.

Um one of the things we did learn in the internet example though is that you don't want to increase the number of layers infinitely. Um there is a right size of the layer, there is a right sort of amount of stuff to cluster into a single layer. Um, and I think we'll be discovering as a community exactly what that looks like. Yeah, but not in the vertical sense, but more in the horizontal sense. Where would you locate Arbitrum? Right. Well, so I think it depends if you're asking about, say, Arbitrum 1 as a chain, or whether you're asking about the Arbitrum stack. Right?

The Arbitrum Stack uh uh uh currently uh powers uh around 50 chains that have been announced and more in the pipeline. Um and you see other stacks that operate in that space. Um, and um I think there's sort of a healthy rivalry among the L2 stacks that is uh that's useful. Uh we're really focusing on um on our team at least on trying to innovate and create value for users and protocols and to uh to to try to explore what what what L2 can do. And I think it's fair to say that Arbitrum has been a leader in in doing that in building out kind of the capabilities of L2, being say much earlier with fraud uh with uh with fraud proofs than other L2s, as well as sort of advancements in other areas.

So we're really focusing on trying to build that out. But I think you will see a world with many different chains and that they will be specialized in different ways. Thank you. Down here in the front. I have been uh day one Arbitrum user, and I've seen uh the growth of Arbitrum uh throughout uh throughout his life cycle. And I've noticed that uh I'm finally happy that governance is finally picking up, and I'm wondering if off-chain labs will be showing more leadership in the future once governance has really taken off. So let me speak for myself here and myself only in answering this. I think it's really valuable and important that the Arbitrum Dow is governing the uh the DAO governed chains, Arbitrum 1 and um uh Arbitrum 1 and Arbitrum Nova, and setting directions for the uh for the technology.

Um and I think it's a very positive step that the DAO has been so active and we've seen so much uh active debate within the DAO about what the direction should be. Um when we started back when we started this, back when you know this whole thing was just uh three people in a room, um, we envisioned a future where there was this huge community where there are millions of monthly users and where the community was actively involved in making decisions about what's going on. So for me personally, it was a goal from the beginning that we would reach a state something like today. So, but what I would say to that is I think it's important for off-chain labs to play an important role in contributing to this in helping to drive the technology, but also it's important that we have a large and increasingly diverse set of parties who are also doing that.

Um, and so I don't want to be in the driver's seat, but I want to be part of that community that is really helping to drive the technology. Yeah, the vision, uh the vision is the most important uh and again I think I think having a collective vision is important. Um, you know, I stood up here on the stage today and um uh I tried to be careful to say this is my opinion, this is what I think some of it is reporting on what is actually in the pipeline before the DAO being debated. Some of it is talking about where I think this is going. Uh, but there's no sense in which I'm going to decide.

I personally, or like a small set of people, are going to decide which direction it goes. It's really for the DAO to decide what is important and uh and uh and how to get there. Um and the more diverse and broad that effort is, um, the happier I personally am with how things are going. Do we have time for another? Back here. Uh firstly, massive fan of the project. I just wanted to ask a question inspired a bit from the first. There's been a lot of back and forth on crypto Twitter recently around, oh, you know, this person stole our idea, we built that, and that was our idea and whatnot.

And I'm of the, you know, the philosophy that I think this is just the natural evolution of layer twos, and everyone's kind of solving the same problems, come to the same conclusions, and that's a great thing. My question is, from what you've showed us just there, what do you think is, would you say that this is the natural evolution of layer twos, or is there something that we're seeing that is unique or you know special? So I would say both things that I think we, when we were just a sort of centralized off-chain labs team, and I think the community more broadly has tried to take leadership in the Ethereum community in trying to get to the future of L2 design sooner and try to discover and sort of build those things out. Um so I would say both that this is where I think L2s in general are going, but I also think that Arbitrum and the Arbitrum community is showing leadership in some of these areas.

And I tried to highlight areas where I think Arbitrum has unique value. But I think that Arbitrum is doing those things because they make sense. Now that again, that's just my opinion. I could turn out to be wrong. Um, and um but I don't think it's necessarily a dichotomy between, well, if it's unique, then it's not the future, because I think it is. And those things that are unique, um, I think are there because of a broad opinion that they are the future. Got one a couple over here.

Oh, all right. Okay, one more. Thank you so much for the talk. What are the the biggest uh unresolved risks or uncertainties that you see in the in the roadmap that you've just uh presented? What are the what are the largest unresolved risks? It's an excellent question. Um I would say two things. First, there are some risks that every blockchain shares, and those are risks related to bugs in protocol or bugs in core code. Um and that's uh that's really important to worry about.

Um, and uh it's something that uh, you know, uh that's a battle that if you're an engineer working on the stack, you have to fight every day. Um something that um fortunately, the in the arbitrum engineering process, as it's gone, there's been a lot of attention to this, a lot of work in security audit, and the DAO asks a lot of hard questions about this. And then uh a group teams like L2B really hold this to account to and hold all everyone in the sector to account in a way that's I think is really admirable. Um I I'd say that's number one.

Um number two is that there is going to be um uh number two is I think the uh avoiding a scenario where you become uh in some ways a victim of your own success. That is where you have a big inflow of traffic and where you have a lot of growth in users and applications and so on, to where you are uh straining the uh the capacity of what you can build into an individual chain. And being able to deal with those growth in capacity, being able to deal with sudden swerves in uh in conditions, I think also uh is important to think about. To give one example, there was a day a couple weeks ago uh where due to the layer zero airdrop, the price of data on Ethereum went up by 13 orders of magnitude in um uh 13 orders of magnitude, that is 10 trillion times uh in a single day.

Um and building a system that is robust against those sorts of changes in the in the surrounding uh uh conditions also uh is important. So, I mean, another risk is simply that there's a change in the workload, there's a change in the workload on Ethereum, so that Ethereum pricing, what happens if Ethereum gas prices suddenly go up to 100x what they are and stay there, right? What is the impact of that? Um uh now, you know, I think if you're doing good engineering and you're doing good chain economics in this space, you are trying to be as resilient as you can against this, but you can never really know uh how resilient you are against these sorts of changes until they happen. So I think that's another that's another issue.

Um, thank you very much for your time. I will be around for uh the rest of the week. I will be out in the hallway just now if anyone wants to come out and talk at more length. Thank you so much. Thank you. Thanks to me.

Related talks