[BUIDL Asia 2022 Panel] Scaling blockchains with L2 solutions
BUIDL Asia 2022 · August 2022 · 40:53
Awa Sun Yin moderates a BUIDL Asia 2022 panel on layer 2 scaling with Norswap of OP Labs, Alex Shevchenko of Aurora Labs, Mustafa Al-Bassam of Celestia Labs and Tomasz Stanczak of Nethermind. Panelists explain why Ethereum needs L2s, from high fees and the goal of letting anyone verify the chain at home to adding new functionality. They compare rollups, side chains and state channels, debate whether side chains count as layer 2s, and discuss optimistic versus ZK rollup finality, fraud proof windows and EVM compatibility.
Speakers
Topics
From BUIDL Asia 2022, hosted by Kryptoplanet.
Transcript
all right hello everyone my name is awa i'm one of the co-founders of anoma and today i have the pleasure to moderate this panel on layers layer twos for scaling so why don't we begin with a quick introduction to each of these panelists here you want to start mustafa hello i'm mustafa ceo of celestia labs i do research and development at optimism hi everyone i'm thomas and founder at nethermind um and my name is alex uh i'm the ceo of
a company aurora labs who is building aurora protocol amazing so why don't you just give us quick overview of how what it is that you're building and focusing on relates to layer twos so we're so at labs we're building celestia which is a a pluggable consensus and data layer and it's a layer one and unlike most layer ones it basically does only data availability and consensus which makes it a kind of like optimal or minimal layer um for layer twos to build on such as roll-ups for example and other types of side chains
so um optimism is an optimistic roll-up which is a layer too so that's very easy so ethnomines the experience of ours is building tooling for protocol engineering for layer two particularly for for the startnet ecosystem and well it's it's been fascinating from the very beginning learning the like possibilities behind the verifiable computation and the future of scaling and the new possibilities for d5 so it's challenging it's uh it's really digging deep into the car development and i read about you guys that you
have actually done a lot of work on stock stock.net and you could actually share some of your insights as a builder related to stocknet as well as we're doing some how to research yourselves right uh yes yes so we constantly cooperate with with starknets and with the community and and it's a constant collaboration discussions work um and aurora itself is an l2 solution to ethereum the way how it works is just the ethereum virtual machine that it works as as a smart contract on top of more performant l1 solution which is near blockchain it is horizontally scalable through chardon and this this properties we inherit in aurora
and because of the very specific design of the bridge that we have a rainbow bridge we're actually capable of making the whole near blockchain and l2 to ethereum and this feature is also inherited by aurora that's why we're raised in l2 to ethereum too yeah and our base token is ether so from that point of view we're pretty close to optimism right and streaming the benefit of the of the ecosystem uh back to uh to our routes to the ethereum blockchain okay this one's really cool but let's save up some for later yeah awesome so i would like to get a little bit um started with the background
around l2s ultus what led us to start building them and allocating so many teams and resources and investigating this space of scaling via l2s what do you guys think gave us this need okay so ethereum doesn't really scale as it is currently so we can't attend all there's more demand than there's block space basically which leads to high transaction costs and there's two problems i would say one is technical uh this issue is in scaling technically but the second issues is one
of the centralization i think the ruling body of the term has drawn a line in the sand which is people should be able to violate the blockchain at home on a laptop maybe you need to buy a little bit of disk or something but it should be easy and layer two are a way to preserve this property of verifiability while still being able to scale beyond that yeah so of course scalability is a is the main one the one that everyone thinks about and probably the most important one but the other one that um is not as discussed as much is that l2s and other types of scaling solutions allow you to extend the base layer with functionality that might not be trivial
on the base layer and interestingly you know before ethereum was even around um we had protocols like master coin and omni protocol on bitcoin and these were protocols that used that were basically uh architecturally like roll ups because they used bitcoin as a data layer they posted data to to bitcoin but the execution happened of chain and so for example tether is actually based uh i was originally um uh implemented on on top of bitcoin using something called omni layer and so interestingly uh one of the biggest use cases here is simply to ex to
implement new functionality so very often when we think of scaling we we keep thinking of transactions per second one other aspect which is super exciting the context of stark nets like in the projects that i was working on is the ability to to process enormous amount of uh of calculation within a single transaction and and don't pay much gas when it's actually commented on the on the layer one so there were examples where we were thinking of what's the future of decentralized finance and what really the traditional finances missing from the decentralized finance and it was the ability to compute a but more complex
aspects of derivative products things like monte carlo simulations and the black source aspects and so on so you've seen the workarounds in defy space where the volatility would be provided from the outside where the volatility snapshots would be calculated over over many months and and it was very gameable and now we're coming with the the start-based solutions where we can calculate the volatility in the last few hundred thousand blocks uh within a single transaction and that's what we were using with the solutions like euler fossil um and yeah this is this is also scalability and this is something that was absolutely not possible and will open a
lot of opportunities and just just to first say anything i just wanted to highlight that i find it really interesting that today we have a team that is working on layer 2 architectures that are not for ethereum like initially standard and this is why i wanted to kind of hear like what is the story what's the background to aurora and like the relationship with mir and how kong came to um yeah so the background for aurora is pretty simple um we see like that that the ethereum protocol and the ecosystem of ethereum protocol is extremely well developed with lots of
tools there is no need to reinvent the wheel there we have open zeppelin an sdk for the smart contracts right let's use this they are already verified they are in good shape we have lots of auditing companies who are capable of auditing smart contracts that are written in solidity let's reuse this knowledge and last but not least there are already lots of products that are launched on top of ethereum let's just keep them as as they are they are already validated by by time in general so uh however obviously the the ecosystem needs to be scaled up right we're all talking about scaling here
uh and uh for near blockchain the solution that actually brings the scalability to the blockchain or like one of the options how it can be scaled uh it was a natural thing to understand how we actually can launch all of these smart contracts how we can reuse the ethereum ecosystem for near and then it will bring benefits for both of the worlds new applications launching on top of near blockchain and for ethereum applications this is going to be an extension of their user base right an extension while some of the users are not captured inside of the ethereum blockchain now these users would be able to operate on the near blockchain
and so that was the the basis for aurora to to come to life um just to bring two worlds together and use the better pieces of of both of them so that's very interesting here we're talking about initially starting from the point of l2s are designed to scale and in some facts there was in in fact the need to scale ethereum escape for booth but they're also to add other functionalities and better devex and better ux but also to in this case portability and compressibility applications between two different ecosystems cool um
so about categories of altius i feel like the design space keeps growing right and to my knowledge um at the moment the two biggest categories of layer 2 solutions or architectures are on one hand side chains and on the other hand roll ups before diving into any of these two categories are there any other categories they can think of of like layer 2 solutions that have been investigated by projects and research that do not fall into these two groups yeah so there's payment channels and state channels but those aren't really uh
too interesting for like for smart contracts because it's quite difficult to do um like state channels music for general purpose smart contracts that uh scale to a large group of people but if you're interested in just payments um then payment channels are very interesting you know bitcoin is mainstream the bitcoin's main scaling strategy for example is the lightning network which is a payment channel system any other groups perhaps in linear ecosystem yeah just just for the sake of so the auditory are you know getting a little bit more into l2s um i just wanted to mention that there are two uh
very um kind of distant types of l2s um uh these are optimistic roll-ups and zk roll-ups so there is a difference i'm not sure whether you wanted to touch this okay yeah so optimism is is a is an absolutely great example of an optimistic roll-up uh while there are other teams uh in the space that are built in zk roll ups the difference is uh is the finality um the assumptions on the finality um uh on the on the main chain uh at which these roll ups are working okay cool so it seems that the main categories that we have on layer two solutions and constructions are primarily side chains roll ups um
and state channels now we're gonna go into roll ups in a little bit can i make a comment here sorry yeah i'm i'm not sure sidechain should be classified as layer 2. really oh it's a shame that we actually did not manage to get um somebody from polygons come but i would have really liked to hear those thoughts but do you want to elaborate on why side chains are not layered twos because they don't fundamentally inherit any kind of property from so as i change what to explain briefly just a normal chain that happens to manage something on another chain in the case of for instance polygon they manage the stakers on ethereum but that by itself does not bring any kind of
additional properties to a system like security or increased throughput or anything like that i would actually agree with this um so the from my point of view polygon in in the in the proof of stake uh chain uh i cannot fully say that this is an l2 solution at the moment when when when hermes is fully operational their zk roll up then in case this zk roll up is is running on top of ethereum then we can say that this is kind of a truthful l2 solution but there is a way how you can make an uh a side chain or just a separate l1 uh a roll uh an l2 to another chain and this way is pretty straightforward
you just need to have a light client of the of the chain encode it in a smart contract in a source chain put it there and just upgrade it with the with the chain and this actually this is actually what what is done in in the rainbow bridge that's why i'm claiming that this is this is a very complicated thing i recommend to nobody doing this uh but this is one of the ways how you can how you can get to that level that's so does it bring any additional property to your chain i think it's a it's an amazing design and it's a it's the best kind of bridge that you can make so are you having that l2 or are you saying
yeah i'm just saying that you in case you have just think of this if you have a validator being a um being a smart contract on the source chain it would mean that in order to or you have a note sorry not a validator but note in case um then in case you need to break the source chain you would need to break also the or you need to break the this the you know the separate l1 you would also need to break the uh the source chain so in terms of the security assumptions they are the same and this is the main you know kind of late motive of of l2s right conserving the security hey
like if your chain for instance imagine you have such a chain it's not very decentralized somebody can take over the chain without breaking the security of ethereum so i would say it does not inherit the security of ethereum for instance um well in this case they would need to be able to you know to to also to break this this slide client so you're saying that if the light client says something then the whole chain cannot right the chain yeah yeah yeah okay in that case then i agree with you in the meantime tomas is there so quiet and smiling what are your thoughts really is our side chains really layer twos
well i i think it depends on how you define them so i i used to consistently separate those two terms into side chains and layer twos and see them as different however people sometimes suggest that i'm just telling that this is such an old layer 2 takes away a significant part of value from from given solution and that's what i don't agree with that much so i wouldn't participate in discussion to say like this is less valuable these are two different categories for me because of construction details but it doesn't mean that they don't bring like enormous value to extend and to
scale on ethereum or layer ones any later ones and bring more users and bring more use cases yeah overall from my point of view the thing that matters is the sig is actually the security assumptions uh and it is and they are very different for very different uh uh projects that are here on this panel uh and in general projects that are there in the um in the in the blockchain like i said the wider blockchain ecosystem so this is the thing that matters l2 or l1 or sidechains these are becoming more of a buzzwords or kind of marketing type of things uh and uh [Music]
it's always better to look in the in the security assumptions and uh and and make your judgments depending on this that is a great uh great way to lead to the next question that i had in mind which is in general security models on from different lt constructions and what are the trade-offs of that i was wondering consider all the categories roll-ups zika roll-ups as well as optimistic roll-ups and there are pessimistic roll-ups as well like what are the security models of all these ot constructions what are the assurances that they are providing for the user yeah i mean to add to that in the last point as well um
like instead of instead of using the like the world the world say the word l1 and r2 it might be more useful to um refer to the types of bridging between these chains because roll-ups are effectively just blockchains um with a certain type of more secure bridging mechanism between that chain and the settlement layer which could be ethereum and so like in general roll up constructions whether it's optimistic or ck what they try to achieve is what i would describe as a trust minimized bridge between the roll-up and the main chain and and what trust minimize means is means that you don't have to trust any honest majority
or a committee or a multi-stake or anything like that and to not steal your funds once he deposits your funds into that roll-up chain thanks to fraud or zk proofs um which prevent their operators of that roll-up from being able to like insert anybody transactions that roll up that steal people's funds actually um i think it would be really useful for the ones that might not be so familiar with architectures of roll-ups to if any of you could provide a simple conceptual framework around what a roll-up is and what is the let's say the flow or the life cycle of the transaction what is involved in a roll-up i think
that would be really useful for many people here in the audience yeah i can take that one um so in a roll-up you've got some nodes of the roll-up typically we call them sequencers they receive transactions and they execute them just like it's a blockchain basically but then they also so let me tell one version and then i'll tell a variant but the simple version is they take these transactions and they put them on some kind of data availability solution so it could be ethereum it could be celestia and then they also post a result on a settlement layer which is typically a state route that commits the state of the blockchain and then there needs to be some kind of
way to validate the equation between a if we execute these transactions we get the state route and that's where we get a difference between optimistic roll-ups and zika roll-ups optimistic roll-ups you assume the result is correct but there are independent parties called verifiers that can that don't own a transaction re-execute them and if they come to a different result they can initiate a challenge called a fault proof for zika raps you just there's also different ways to do this but a simple way is you directly post a zero knowledge proof that the transaction uh give the good result and this proof is fairly cheap to verify on the settlement layer
so to put simply a common architecture basically a rollup is simply a user sends their signed transaction to just a sequencer in this case in the different rollups they may call it different constructions may call it differently and then the sequencer just gathers these sets of transaction signed messages from users and that they compute basically a transaction or like a valid state transition for in this case a theorem let's say and then that this what is submitted to the settlement layer which is ethereum is the updated state word that includes optimistically this list of transactions and the difference between optimistic
one and a zk1 is that the sequencer of a zika rollup probably produces also as you know it's proof and then the verification part does not rely on fraud proofs but instead they rely on the prover the verifier of the user knowledge proof and so given this what are the what is security model for users of optimistic rollups like what is the assurance that is provided the the model is the same because when you transact there is no atomic guarantee that you're of the result of your transactions like the zika labs they also aggregate
transactions for a long time and then they post periodically so it could be you know a few minutes a few hours and so when you make a transaction you have the result you sort of have to trust the sequencer this result is correct it will not be validated on the l1 blockchain before a certain amount of time the difference is time frames like zika roll-ups are more like hours and the optimistic roll-up we have very long challenge period to make sure that the challenge can get true and nobody can censor them but in reality there are people running verifiers all the time and so they should catch instantly that there's a problem because they're in touch
they're like communicating with sequencer so could you elaborate on what is the challenging process um for me as a user of an optimistic roll-up the default proof oh that is the whole talk okay but yeah it's it's so because on i'll make it very very simple because on the layer one blockchain you have access to well let's assume i'm going to talk about optimism so optimism you have access to all the transactions on the ethereum blockchain and you also have access to a state route and so you need to run the computation that goes from one to the other to verified you can't run the whole computation because that's too
expensive so we have a fancy interactive proof process that's the hard part i will not explain and so you need to send a you know this may be a process of 30 transactions being changed with the ethereum blockchain to prove that um there's a need a problem and if the sequencer stops like answering you also win by default so he cannot choose you in that way i'm curious to hear from you mustafa celestia is actually layer one that provides a feature that can be really can be leveraged by later two's only wants data availability how do you think practically in the short term we can use the availability for example in the case of
for can it improve can you provide some properties for optimistic roll ups yeah so um in general there's a like a huge design space for roll-ups and an ethereum wall ops is just one part of the design space there's many different types of roll-ups and there's things called settlement roll-ups solvent roll-ups and also suggestions but what we're kind of like excited about um about celestia is that it's this idea of a sovereign roll-up where um we kind of take like a different view of what a roll-up is useful for whereas like the ethereum view is as a roll-up is to scale the ethereum chain to create a trust minimized bridge between ethereum and that roll-up
um but from our view we're interested in roll-ups basically one of the biggest advantages of roll-ups is that it allows anyone to deploy their own blockchain uh with their own execution environment without going without having the overhead of having to bootstrap their own like proof of stake or consensus network from scratch um and solving roll-ups are basically like a layer one chain in that like it's a solver and chain except what the main difference is that you don't need to bootstrap your own validator set because you can kind of plug celestia in as a kind of consensus on this layer and in this kind of setup like the solver and chain is not really
a layer two to some specific like master chain it's just an independent chain on its own right that was deployed more easily than simply launching a new validator set as you would do if you were normally launching a new chain cool alex what about the security model of the design of aurora so we have been thinking for a pretty long period of time on how to how to make a proper design of aurora we were doing multiple proof of concepts we were trying to implement evm as one of the options of the protocol on the protocol level of the
run times that can can work in near protocol so there will be in case we would follow this road then developers would be able to choose where to deploy their smart contract at either in near virtual machine or in ethereum virtual machine this option was decided to to be discarded and instead of this our setup is is that according to our architecture we run evm just as a smart contract on top of near now there are multiple benefits that that this design brings
some of them are not yet utilized but later this year you're going to see new products that are going to be using this this this this specific features but there are at least some of the some of the great uh features of this design that are already utilized and first of all it is that in order for aurora to to be able to work aurora doesn't need to have its own validators at all because near validators are validating aurora that's why we don't need to take care of the validators we do not need to take care of the decentralization of the stake of this validators we do not need to take care of the consensus layer for it the storage layer the network the
only thing that aurora needs to take care of is the runtime now probably right now aurora itself is one of the most complicated smart contracts in the world which means that it has lots of potential attack vectors because it is the smart contract and as you know even this week many smart contracts get hacked and so it is a kind of shaky position though we decided to that it would be much better that we are reusing we are not reinventing the wheels right we are reusing the existing
implementations of evm that are written in rust we started with sputnik vm uh we're thinking of migrating to to another options um uh and reusing already things that are developed in your protocol right like that i mentioned right consensus and all this stuff so so the thing that we need to do is just to glue these things together and then the amount of work for us is not that big and actually aurora was built in an astonishing four months from the ground up with this with this design in mind and this design allows us to iterate extremely fast and introduce new features and move on really really quick as a startup
so it's really exciting um going back to the idea around assurance for the users there is um the way current roll-ups are and familiar to use architectures is that it commonly as you mentioned the sequencer component of most architectures are trusted and they are centralized so my question is really given that centralization point uh it actually does give the uh the sequencer the power to kind of respond samsung transactions even like perform some kind of mvv on it if they want it right i want to hear like are there some
thoughts towards research reactions implementation directions where we are removing that centralization point from rollups and layer twos um so once like one thing that we're exploring at celestia is roll-ups without any sequences and that kind of makes them not roll-ups anymore because there's no rolling up involved but it's still using it's still like on-chain data and option execution but you can you can you can eliminate the sequences by having users post transactions directly to the data layer and then um you can kind of like um separate out
who gen the the function of generating the stage food um and so like you can have a different party to generate the stage route and um you can have a zk proof to prove that they generated that statute correctly for example or fraud proof if they didn't you can actually have a peer-to-peer uh like interactive application game um and that effectively allows you to and if that allows you to remove the sequencer and if there's an invalid transaction in the chain all the um state who generator has to do is simply ignore that transaction and pretend that didn't exist and that's kind of like how the original like master coin model worked on bitcoin for example so
there's like so the problem with the sequencer being centralized is on one part censorship and on the other part liveness so the chain stops progressing there's already an optimism to the escape arch for that it's that you can post l2 transactions on r1 there's a catch the sequencer still needs to pose a state route but what we could do and would be really easy is to say well if the sequencer has posted no state rule in a few days anybody can process it through it and then these l2 transactions on r1 get included from that basically um in terms of decentralizing the sequencer it's not a super hard problem you can do some really
dumb stuff like just have a small blockchain you know like just classic author model just much more centralized because you only need one of the sequencer to progress the chain for it to work um but we're also thinking about some more fancy models but yeah they're still in the design stage so i think there are multiple approaches being tested for for solving the sequencer problem because obviously we're talking about liveness censorship we're also talking about mev extraction so um i've seen the kind of two pass approaches or someone else so all that family of two best approaches like proposal builder separation uh which is now being introduced on
ethereum uh for for the merge where you have someone else building the block and someone else actually proposing it to the network so you can have some other solutions with the sequencers where you create a decentralized network of builders who compete for the for the most valuable block and then the sequencer is is forced to choose the one that offers the the highest value and the value is very often derived from the mev opportunities then we we do have the family of exploration research into the cryptographical solutions so going for the uh pre-trade transaction encryption where the sequencer doesn't really understand what
they're sequencing and it usually involves the problems of well then you have to have the computation of these transactions execute in the in the cryptographical uh cryptographically secure way and and this is a big step big next steps to execute uh so it's it's hard to answer how long we'll be waiting for this one uh and then there is a family of solutions which actually introduced a the similar to existing blockchains uh group of validators sequencers there are decentralized anybody can join the sequencers list or more like anybody can stake to be sequencer and then the risking of losing of the stake if they if they misbehave uh if there's
some kind of voting of uh confirming their misbehavior uh so i think the solutions are coming um like the teams like flashbots are looking into into the problems of layer two sequencing they layer to ulcers the the builders of layer twos are thinking about it as well of like how to really remove that responsibility from themselves because well any any layer 2 will be aiming and decentralization in the long term and they're just in the process of incubation when they run the only sequencers but in the long term you want to allow others to do that just simply to get rid of that responsibility say yes this is a decentralized solution so there is a
there is a motivation on all the sides to actually do it right the mev market participants the l2 builders the users uh that's why i think that this will be solved so a 30-second comment from my side from my point of view for all of these problems uh we already do have a solution solution is blockchain itself right this is something that brings us censorship resistance and in case the blockchain is is truly decentralized right so from my point of view the most prominent way how to how to solve the sequencer problem is is the last option that thomas mentioned making sure that the sequencer is decentralized and this is one of the and if you will think uh
about the aurora solution our own sequencer is near validators right it's a near blockchain right so from that point of view this problem is less relevant for for our solution um changing the slightly topics between optimistic and zika roll-ups from the developers perspective builders perspective do you guys think there are any particular trade-offs or white lien what makes one developer builder lean towards one over the other i think it's working with all the builders for for the last years and also training developers in the space i noticed that the notion of finality is is the one that escapes
from the intuition of many developers so so you have the web free developers that build the uis but don't think about the reversal of data display because maybe the chain that they're building on is is not really having instant finality so so the time can run backwards and you have to present it to the users in a non-confusing way and then you realize that it's not happening because the developers themselves have have problem reorganizations with storing the uh the events that are reversible and so on so and particularly finality is the biggest differentiator between optimistic and zk roll ups right so now if you talk about the fraud proofs
that can take up to a week obviously yes i agree that in most of the cases they'll be happening very fast that introduces like there's just even exacerbate the problem and any layer two will have this like two-stage finality question it's like okay so it was the finality of the actual layer two and then there is the second level finality and now i remember when we were building the block explorer and that question was coming so so when you reverse when the finality happens only one but then you have to reverse something that's already finalized sorry when there is no finality on layer one yet but the things are theoretically finalized in the context of layer two but they still can revert because layer
one reverts um yeah i think we want to to have like the finality problem as simple as possible it's a bit more of a problem in optimistic roll-ups because the zk-1s come with this uh clean way of verifying okay that's right and it's happened and i can cryptographically prove it yeah i completely disagree because the app developers do not run the proof very far actually proof generation is extremely expensive so the proof will not be available immediately it will be available after 10 minutes or maybe a few hours in practice so you have exactly the same problem you have a shorter time frame i agree with you on that but the problem needs to be
managed all the same because there's no instant finality and not not even close to instance right it's not like you can wait 60 seconds and be fine also um you can also if you want instant finality for your optimistic roll up you can just run a full node for that roll up to see that a fraud proof cannot be generated yeah i think very serious dapps should run uh roll up nodes actually um at least right now it's still feasible but uh you know that's like you know wishing like i don't think all the bridges run rollup nodes and they really should so the app so it's like a pipe dream just to tap into into this conversation here i do believe that for developers the thing that really important is not
to have a vendor lock-in in general to be able to migrate in between solutions because this is something that people expect from web 2 right in case aws is not giving me good service okay i'm going to go to google cloud and from that point of view it is super super important to us for for all of the roll-ups actually to support de facto standard that we have which is the fully evm compatibility right so that's why uh both optimistic roll ups and zk roll ups they need to uh tend to get to to that point when when they're they're there so this is also adding to to the previous uh previous people who are speaking about the finality and stuff like that
so i believe this is also pretty important to have a fully compatible evm solution amazing we're out of time could you bring all your hands together thank you very much for this amazing panel [Applause] [Music] you
