[BUIDL Asia 2023] Scaling the Future: Composable L2s with Decentralized Sequencers
BUIDL Asia 2023 · 30 Jun 2023 · 24:19
Alex Schevchenko, CEO of Aurora Labs, argues that no single L2 scales Ethereum and asks what composable L2s with decentralized sequencers could look like. The talk reviews centralized sequencers, week-long escape and settlement times, and the limits of a synchronous EVM, then sketches a sharded, asynchronous settlement layer with a permissionless light client on Ethereum. It closes with how Aurora, an EVM running on NEAR, and Aurora Cloud put this design into practice.
Speakers
Topics
From BUIDL Asia 2023, hosted by Kryptoplanet.
Transcript
hello everybody great to see you again here in Seoul um always great visiting this uh this country and so today I'm going to talk about composable tools with decentralized sequencers this is the thing that is not existent today and this is something something strange and something new this talk is going to be all centered about in general different technology aspects so um and most probably where I go you're going to have some questions so after the talk you would be able to ask these questions right um and let's start so my name is Alex shivchenko I'm the CEO of orolabs we're a technology company that is behind building of the core tech for the Aurora
protocol and the Aurora protocol is an evm compatible solution that is working on top of near which is a scalable Generation 3 blockchain with the Chardon and parallel execution of transactions now if we're going to go into a brief background of l2s so the long story short is the following ethereum Community encountered a problem which is uh just the network is is crowded right so all of the blocks that are produced are at full capacity even after a couple of increase of the block size this thing is not changing so ethereum needed a way some some kind of way how to scale it
right and a solution that was proposed initially it was proposed to to do some kind of sharding for ethereum but later on this decision was kind of revised and the idea was to to scale ethereum with ltus now what is nl2 and the core p is there about l2s is this you can deposit things into a smart contract then you can do transactions over the smart contract outside of the chain so you're sending transactions to a thin to a computer that is called sequencer this sequencer is ordering transactions and executing these transactions on top of a state of the smart contract which is
outside of the chain and after the execution from time to time there is a settlement of the contract State directly on chain right again it is happening somehow well the the prob there are two problems with the current setup of the of the ltus because the the in general the the this kind of approach is not very easy it is kind of complicated so this somehow that are ingrained on the um on the slide that you see are now centralized right so sequencers are centralized which means that there is a one computer that makes a decision on which transaction is executed first
which transaction is executed later and potentially this is a point of failure because this sequencer can potentially censor transactions and the validation or the settlement of the uh of the state into chain is also centralized because not everyone is able to settle and this is also a problem because in case you are willing to for example get your money out of the L2 then this this transaction like this settlement should should happen and unfortunately in case it is not settled or it is settled not fast enough it is a problem and the motivation behind this decision was yeah kind of things are complicated
let's move step by step we are going to resolve the problem uh with with the centralization later on and l2s are l2s because well they have validity proofs they have Escape hatches different mechanisms that allow users to actually execute their rights directly on L1 in order to kind of come over the sequencers and validators that are not willing to cooperate now the question is how fast can we fight the censorship what is the time of reaction and what you see on the screen here is just a screenshot of L2 bit one
of the most prominent resources about about l2s so this is a place that you can refer to when you're doing any research of the of the L2 space and actually Bridges also so if we're if we are going to take a look at at what time it takes to overrule the sequencers and whether it is possible or not then we are seeing here a mixed kind of setup of the top of the top uh of the top L2 protocols the thing is that in in some of the cases uh the ra there are the mechanism for overruling these problems are absent right so you can see in that on Optimus and ZK sync era the validator
failure or the failure of um of settling the the state on chain uh it is not handled in any way right so the user who is uh who who is who is an optimism can be stuck forever there and uh and that's that's just the reality over time these things are going to be overcome right it is just the um some kind of intermediary stage right but with the other things where people are able still to escape there are also some problems uh or like there are no problems but the there is some time that is required to do this and the reason here is pretty simple the runtime of an L2 is a separate thing it is not the
same as an L1 right and in order to your not able in in a single transaction on ethereum blockchain you are not able to escape L2 right you need to state that you have an intention to escape L2 and then this intention somehow needs to be incorporated in the flow of the sequencer on L2 and then after this it should be somehow you know executed on on the on the ethereum blockchain right so it is just because there are two separate runtimes and they are not composable right you cannot just cross-call them and that's the thing and the typical time that you expect from this settlements or this forcing through the
censorship is around like one week right and the question is can I is one week okay um and the what What criter markets are showing to us is that one week is not okay on the left you are able to see the graph of of Terror crash it happened so Tara went from a 80 or 90 dollars up until to almost zero in much less than a week usdc on the most recent DPAC was going down and going up in three days right so although there is a
so if we're going to take a look at the current setup of l2s they are not separated from ethereum um in terms of the you know security assumptions and stuff like that but de facto the way how it works it makes the separation in between the ecosystems they are acting absolutely the same way as side chains or just separate l1's and there is another thing and this is a fundamental limitation so the evm or ethereum virtual machine was built as a synchronous runtime the transactions are
executed one after another the whole transaction is either executed or fully discarded that's the the law and this is how Developers for evm are used to build their products so this means that Muni swap transactions that are talking with the same pool they must be sequential and because of this uni swap is built that way depending on the amount of tokens in the pools the the price is different right and that's why transactions need to be executed sequentially in order to ensure that for every new transaction the price is correct
transactions with for example non-zero value transfers from the same account for non-zero value transactions must be executed sequentially in order to not allow double spending right again this is the way how things are built and it actually means that that the fundamental outcome of this design choice is that evm itself it cannot be parallelized right there are some advances that you're able to implement there you can you know Mark some some storage that that you're touching within the transaction you know and go a little bit like Solana way but fundamentally evm
cannot be parallelized and uh and this is also sitting in the hands of the blockchain developers right so they're building their applications the way that it is impossible to make it parallel which means that uh L2 throughput in general or a throughput of a single L2 chain is limited it is limited to a single evm chain right if I'm launching today an L2 solution then there is a very straightforward question what is the amount of TPS that is allowed on this L2 solution right which means that well
kinda it a little bit scales ethereum but still it hits the wall right there is no there is no thing that is going to work after this so here is my statement to to all of you no single L2 is a scaling solution in fact taking into account the separation of the ecosystems this is actually a pretty harmful thing for the ethereum ecosystem because it splits the liquidity it makes markets with less less depth of the liquidity and the failure of sequencers or or an attack on the on the network is extremely harmful for any user who is
who is participating in this network and from the standpoint of for example State channels and if you will take a look at into how the um how the Bitcoin used to develop used to be developed um the idea there was that you are able to launch the channels and then these channels can be connected into the lightning Network and and this is the way how you are able to scale Bitcoin throughput right and from that standpoint l2s are actually just fat State channels and this is something that that a friend of mine was telling me the other day right and if you will think of this it's it's actually
the the proper explanation of what L2 is however not everything is that Grim right things are actually like l2s are making sense right because many l2s is a scalene solution right so if you will launch many many ltus then we are going to scale and then these l2s are working in parallel because they have completely separated ecosystems right um and it means that we are able to execute more transactions but the question is the current setup is the way how l2s are developed right now
an optimal version of this and from my point of view the current L2 setup works like this right there are a bunch of old people who are working on the computers so they operate in Auto at a pretty limited TPS right a limited amount of transactions and in between them we have pigeon that is developing letters to each other because it takes a week in order to settle on ethereum and then move to another chain that way this is not the proper setup for sure right things need to be much faster and here is a thought experiment for you
imagine imagine a Wonderland imagine a a solution that is going to work in a little bit different Manner and it is going to remove all of these drawbacks that we have with the current setup slow movements in between different Block in between different scaling Solutions in between different l2s and since we understand that we need to have many of them this solution is also incorporates an ability to have many different cultures so take a look at this potential or thoughtful Wonderland imagine that there is a truly scalable L1 protocol
that we are going to deem as sequencer let this protocol to be a sequencer let it have an asynchronous runtime and because of this it can be executed in parallel right so we're just stating by default that smart contracts are working in parallel they there are no synchronous transactions there are no automatic rollbacks these things are non-existent and the smart contracts the execution of the smart contracts are executed in parallel right and because of this this L1 solution it can be sharded which is not very proper name for it but it can be executed in
parallel in terms of the execution sharding not data sharding right it should have synchronization Primitives because otherwise it is very hard to to build on top of this L1 solution obviously it cannot be evm compliant right because CVM is synchronous and it should be decentralized enough to to make sure that that this is kind of a decentralized sequencer right so this thing will be a settlement layer this and the consensus of this L1 protocol is going to become this particular sequencer for the constellation of Altus imagine then the second piece of the
puzzle which is the permissionless light client of this L1 solution that is working on top of ethereum and this light client being so and so anyone is able permissionlessly can synchronize the slide client own ethereum on ethereum right what does it mean it means that anyone can settle kind of the state or the settle the the current setup of this particular L1 on ethereum in case this light client has is a ZK like client it means that it can be settled in in just
a single transaction and there is no need to wait for for any anymore and in case the slide client is complemented by fraud proofs which is a concept of Altus and we are able to prove that there is kind of some kind of fraudulent action that is happening on L1 so in general this L1 nodes and L1 validators would not be able to to execute anything fraudulent that is going against the consensus rules the consensus rules of this L1 solution now the third piece is very crucial here and this is something that is mind-blowing imagine a contract on this L1 solution right which is non-evm but this contract
implements the full evm it is a huge smart contract inside of which there is a whole evm and once the transactions are coming into the smart contract it just uses it just takes these transactions and executes it inside of the evm in such a case this smart contract is actually an L1 engine or an instance every deployment of this smart contract is an instance of an L2 solution right so such a smart contract can be like optimism right or it can be an arbitrome or it can be Z casing right so it is just a deployment of this smart
contract that gives you already an L2 solution and last but not least and a very very crucial piece of this puzzle is a set of additional pre-compiles inside of this evm implementation this pre-compiles don't not do not exist in the ethereum but they can exist in this in this particular setup and these pre-compiles exposing the cross contract as synchronous calls from this smart contract to another EVMS or to another l2s that are running there
with callbacks right so again L1 is scalable cross-contract calls in between them are asynchronous and it means that the evm one evm can call another evm and moreover because there are synchronization Primitives uh you're able to issue a callback once this call is is finished on the other evm chain wouldn't it be a great set of Technologies to build on it will be actually an amazing thing because because all of the l2s in this setup
will have a decentralized sequencer which is this L1 it is going to be scalable because you just can run in parallel execution of this separate l2s right then that's okay right and we know that each single L2 is limited because evm is limited in its throughput but the coolest thing here would be that well you are able to cross-contract call it all of these l2s you're able to create a one inch or the aggregator of the dexis that is going to aggregate all of the liquidity from all of these l2s this is something that is unseen how can
I aggregate liquidity in between orbital optimism ethereum main net and maybe something else there is just no way how to do this in order to do this you need to do Bridges but then again there are notes and transition Primitives the the the the the the execution is kind of not guaranteed usually what what uh what uh what l2s are guaranteeing is the execution within 12 hours right and here such a transaction is going to be just a single transaction on this L1 yes there will be asynchronous called cross-contract calls and developers would need to think about it but this is possible I'm just saying that this thing will be possible
and surprise surprise this Wonderland actually exists right so this L1 scalable horizontally scalable that is sharded that is working already in production for almost three years is called near protocol it is there sufficiently decentralized with 400 validators it's not like other centralized and corporate networks that we've heard of today it is it is working the light client that is working on ethereum for near is provided by the properly built Rainbow Bridge inside of the the solution of the Rainbow Bridge inside of the
architecture there is a light client of near that is working on on top of on top of ethereum it is not fully completed there are no fraud proofs yet there but it is possible to implement these things right a contract on L1 that implements the evm compatibility well it is Aurora it is probably the most complicated smart contract in the world it it stores the whole evm inside of it right and it is working right now and just recently around two months ago we've launched a thing that is called Aurora cloud and this is an on-demand ability to launch your own evm networks that are working on top of near
at the moment we have more than five networks that are already working right it's not something that that is very very complicated because launching now your own network is as easy as deploying a smart contract it takes 20 seconds you don't need to seek for validators because all of the validators of newer Protocols are becoming your validators that's it and the last but not least in is that inside of Aurora there is a so-called cross-contract calls SDK and these are the custom pregame piles that are revealing an opportunity for the Aurora smart contracts to call contracts
that are outside of Aurora runtime actually you are able to call any near smart contract in an asynchronous way and schedule a callback directly from the evm environment I believe that this is a a proper way how to build Altus this is a proper way how to scale ethereum and this is a future proof setup that is going to be extremely valuable for the whole ethereum for the holy theorem Community I think we are like the the kind of the setup that we're that we are doing right it makes a ton of sense and it implements the future-proof platform for
anyone who is willing to extend their market and making sure that their applications are working properly and are able to withstand the load of the mass adoption that hopefully is going to happen in the blockchain space um just just a recent thing that I would like to mention uh these these Technologies and these uh this setup is the reason why uh why net marble is partnering with near and Aurora and launching their new set of games on top of Aurora and on top of our solutions that we are providing that's it if you would like to know a little bit more about about Aurora cloud
and how it works I encourage you to take a look at Aurora cloud.dev this is a website for this for this particular technology thank you very much I'm going to stay around for your questions thank you [Music]
