Encode x Worldcoin Educate Series: World Chain and the OP Stack
Encode · 17 Sept 2024 · 57:08
A workshop from the Encode x Worldcoin Educate series in which dcbuilder explains World Chain and the OP Stack. The session covers how optimistic rollups use fault proofs compared with validity proofs, the role of the sequencer, and why World App is moving from Optimism to its own chain. It also looks at priority block space and free gas allowances for verified humans, the Superchain vision, decentralised sequencing and proofs, and the path toward serving a billion users. Questions from the audience follow.
Topics
From Encode, hosted by Encode.
Transcript
Hello everybody welcome back to the second to last Workshop in the world coin educate series I'm sure you're all really disappointed that the series will be coming to an end soon but today we have DC Builder back again to talk about the world chain this time so today um as Rebecca mentioned mentioned I'll be talking about the world chain and the op stack um so so yeah let's get right into it so this is the um the almost the last one right like we only have two more to go out of the out of the educate series and so what is World chain right so um I borrowed a couple slides from the introduction to worldcoin um
presentation because it has some some really good ones so World chain is it's it's a it's a blockchain um a scalability solution for for worldcoin that essentially allows or prioritizes humans um to have priority transaction space and also free gas allowances uh and the way that is imp that is implemented we'll get into a bit later uh but the the main values of of world chain is that it's it's open source it's permissionless it's secured by ethereum um it directly tily couples World ID uh our proof of personhood protocol into the chain itself so that you're able to do things like the priority block space and free gas allowance because you have this notion of what what a human is
right so you can do proof personhood on the onchain level therefore you can get allowance for humans or priority block space meaning that you get prioritized in the transaction pool um with other transactions right so youi humans get on top um priority and uh not only that but you can um use World ID natively just like you did on optimism for example and we're we're going to launch it with 10 plus million users from the world app so so just to um okay um so right now um the world chain is in developer preview so what that means is that any developer can um currently like fill up a fill out a type form like just a form uh and
request access to World chain the world chain is technically live however is not publicly available just yet um it's mostly because we're just setting this stage so that all the infrastructure that people are accustomed to uh things like block expl uh different apps uh different infrastructure for tooling and testing you know things like smart contract wallets or or testing tools like tenderly and a bunch of others um so essentially that's like what the developer p means um and all all sorts of other ecosystem builders that have partnered uh with with us uh are also deploying there and as I mentioned um we're also migrating the world app this is something I migrated that I mentioned before uh So currently World app is on optimism main nut um
and now we're going to be migrating over to World chain so to mention a little bit again or re reiterate for those who may maybe weren't weren't here for the first presentations so the world app is this uh sort of Center Center place for for the worldcoin ecosystem is the main way of interacting with worldcoin for most people right so what it allows you to do is it allows you to uh hold crypto um it allows you to um uh use World ID and it allows you to essentially interface with the worldcoin ecosystem So currently all of the world coin users um are on optimism main net every single user has a safe smart account and all of those things need to be migrated over
and so this is some of the stats that I mentioned before at the very top this is some like old stats from uh June 2024 or up to June 2024 um so this is where the 10 million uh plus user um Benchmark comes from and uh it's currently is like 6 almost 6.7 million verified users by the orb and a little bit over 13 million or some somewhere over 13 million World app downloads across IOS and Android so uh the things that actually live uh technically right like I mentioned this briefly this is another slide from the introduction just to reiterate um the world app has the self custodia wallet which is a safe smart account um and you're you're able to use the things you you know and love and some new features
like Tas keys and account abstraction that were are going to be part of of uh World app soon so um like I mentioned also before um this is sort of like a a quick journey of how we got here so in 2021 we built this custom scaling solution called Hubble um we took over a project that was built by the theor foundation um and uh we took it to production however we knew that people wanted to have a general purpose evm uh to do smart contracts and more interesting things than just payments uh sending tokens back and forth um so we launched them poon PS um then after a year we migrated over to optims of main net so that was last July with launch like when
we launched worldcoin officially and uh now over a year later uh we're migrating over to World chain so um one of some of the major reasons why we we are migrating to World chain is for one the L L2 ecosystem when we first joined uh optimism it was still nent still is to this day um so there there's a lot of infrastructure that we have to build ourselves um the costs were quite High throughout time so we contributed to ethereum efforts like um like uh like 4844 EIP 4844 for those who don't know it's an ethereum improvement proposal that was passed on ethereum um a while ago a few months ago um I think it was
like last year sometime around October if I'm not mistaken uh I would have to check um but essentially this change allowed uh scalability Solutions like l2s that post data to ethereum to pay to post data to ethereum for a much cheaper price and this in turn lowered the prices of l2s uh across the ethereum um because you're you're allowed to post more data to ethereum and therefore there is less competition for for gas and so you're able to fit more transactions um another thing uh that we did is like a lot of custom compression so you minimize the amount of data you put on chain but still have the same functionality and uh we the main the
main thing that we realize is that uh like L2 execution gas so for those who you don't know um the evm or the ethereum virtual machine is this um layer on ethereum um that holds a database and allows you to programmatically change this database um and so the way that it works is that there's there's there's programming languages that allow you to uh build programs on top of the eum virtual machine uh you may have heard of programming languages like solidity or Viper or maybe some others that are more more Niche and what these allow you to do is to build applications that uh for example do things like decentralized Finance right like unof is written in solidity uh right Like Ur maybe is written in Viper um there's a bunch of different applications and all those are
R smart contracts and so each operation uh within the evm so and the at the very end of the smart contract if you compile it to the evm um you have just basic instruction instuctions of the virtual machine um and each instruction in this virtual machine uh has a price associated with it um which is called gas and there's only a finite amount of gas per block that every block can have and each transaction that does any evm operations um essentially costs gas and so if you have a limited amount of gas you can only do a limited amount of transactions per block and this is the fundamental bottom like for execution um it used to be data meaning it's like posting data to ethereum and that was
thoroughly sold with 4844 but now the next bottom L is uh execution gas and so um migrating over to l2s is also like one of the motivations for that is because um l2s are in in a trajectory to keep increasing the target gas that they can consume per block uh thus scaling even further hence we might get over to optims of main net and now over to World chain partially for those reasons so um I keep mentioning this thing like optimism op stack um maybe you maybe you know what it is maybe you don't but this is what we're here to to learn about so op stack is um it's a scalability solution right uh it's a scalability solution that allows people to build
rollups and other types of of of l2s um and essentially it's it's it's an open source piece of software right or groups of of software um that uh is modular meaning that there's some abstractions over how it works that allow you to change different parts uh unplug them however you want you know you can modify specific parts of the configuration of the the this the code to allow you to do different things in slightly different ways um and so that what what it means by being modular for example you can choose to settle on ethereum but you can choose to settle somewhere else you can choose to set your data data for example on some other solution like Celestia or or something else um it it fundament its fundamental
purpose is to scale uh in this case ethereum um and the way it does that is that it's a separate Network where um you're doing transactions on it and the way that it achieves security or transactional security is by posting its data to ethereum in a compressed Manner and uh anyone can sort of challenge the the the the state transitions as they're called essentially is like whenever you're changing the state of the database right so I have a block the current state of the block let's say that my balance is like 0.1 e if someone sends me 01 e the next block then that's a state transition right like my state is transitioning from balance of 0.1 e to 0 2 e um and therefore I need to I
need to like um do that right so like I'm executing an evm transaction that changes my balance and this is sort of like how the the ethereum works or any L2 works or any blockchain really um and so the way that optimism works is using these things called fault proofs uh and essentially it's um it's an optimistic approach so maybe you've heard the term optimistic rollup uh before so an optimistic rollup is essentially a scalability solution that um allows people to just posst these transactions to the separate network uh and the separate network will execute them and whenever you want to settle back to ethereum um uh what you do is that you have this 7day period um that allows
people to challenge the state transitions correctness and so if there's an incorrect State transition people can challenge it using this fault prooof game uh the way that that is implemented is fairly complex but um it's it's it works uh there's there's several implementations um uh live um and essentially you're able to to to challenge or dispute any Inc correct State transition uh let me just quickly check if there's questions or at least pull them up over here so that I have them all right so far so good I think maybe one question uh when the world chain start approximately so I cannot share details just yet uh it was a little bit delayed
since summer 2024 is is already here there is some mostly some thirdparty Integrations uh that made that happen um because there's it's not just on us right like we need a lot of Partners to deploy so we're able to migrate so World chain technically was launched in summer but it's not publicly available uh so yeah it's still still a little bit more to go uh rainy yeah so um essentially with these fault proofs what you're able to do is you're able to prove that the state transitions on optimism on or or on the op stack were correct um so there's no incorrect ones and if there's an incorrect one someone can challenge the person who proposed those State transitions get gets penalized uh gets
their stake in uh gets their economic stake slashed uh through this fault prooof uh mechanism and you revert back to the state that was valid um and so maybe you've also heard the term validity rollup so last time I talked about Zer knowledge cryptography um so Zer knowledge cryptography is the sort of technique or cryptographic um Machinery that is used to build U this notion of ZK rollups or validity rollups where you create cryptographic proofs of the execution of the state transition right so you can have like a zkm um for example like ZK sync or scroll or Linea U maybe you've heard those names before and so um those ZK M are technically not ZK VMS like I
mentioned before there's a Nuance to the term zero knowledge where you're hiding stuff uh in this case Zero knowledge rollups um um the ways that the term is used usually um is misused because it's a validity rollup there's nothing being hidden the state transition is public to the verifier and so essentially these proving mechanisms allow you to execute something offchain um in this separate Network and allow you to post it back onto ethereum and sort of have the same security that ethereum has with some added assumptions like the security of the fault proof program and the security of the ZK or the the validity rollup uh the cryptography right but essentially you're able to scale by having a Seer
Network where you're executing lots of these transactions on just one computer then what that that that one computer like batches those and compresses those transactions as much as possible so you're reducing the size of those transactions that you're posting back to the the L1 um and then once they they go through the fault proof program or like the fault proof dispute mechanism or the ZK or the validity rollup U mechanism for proving these transactions were correct then you can finally settle on ethereum and so the op stack is one such tool chain there's several others built by other competing Solutions like zking has the ZK stack or the hyper chain um there's a few others um like starnet has one u based on Madara
um there is arbitrum has orbit I believe there's a few others that are out there that that build on different tool chains um and so optimism is one such such of those and so what optimism includes uh we're going to get to some of the meat here um is essentially an implementation for these things that I list here so data availability a sequencer uh duration pipeline an indexer an execution environment a settlement set of rules a fault proof program and a governance mechanism so if we break those down into its individual constituents so when I've been mentioning like you're posting data to the L1 um so this data availability is mostly only used so that you're able to
challenge the state in The Fault proof program right so when I'm posting data to ethereum and I want to settle on ethereum the thing that I'm settling is uh essentially the current state of the optimism L2 or rollup onto ethereum and so I need to post this data onto ethereum so that people can challenge it publicly in a permissionless way right if people want to challenge any part of the computation then they can use um uh they can use this so Brian has a good question how does OP stack enhance scalability so I mentioned that since now you have a separate Network that is able to execute these transactions um you only need one computer to propose a new block nobody needs to validate it you just post it
optimistically onto ethereum and then you allow everybody else uh a 7-Day window to challenge that state transition uh to challenge that change in the computation of the database right so if anybody can challenge the computation that happens and the changes that happen to the database um then um you can fairly prove that these things happen correctly and then you can settle so um since you're settling a compressed amount of data and you're only settling um like you're only having to challenge one computer Computing this makes it a lot cheaper to to actually do that computation as opposed to having the entire ethereum blockchain every single node work in unison to essentially verify a block so the way that ethereum
works or any any blockchain works or most blockchains work is that there is this consensus algorithm where multiple computers on the network U they agree on the current next block they elect the leader the leader proposes a new block and that block uh entally gets re-executed by everybody else in the network and then after everybody else re-executes that block only then will they consider that block bid um so this is very very cumbersome because there's like maybe like tens of thousands or hundreds of thousands of nodes on the network so if every single one of them has to re-execute that block maybe in like a 12C window it's a lot of wasted work so it makes it expensive so rollups or l2s and other scalability Solutions
what they do is that they minimize this burden of distributed systems that instead of having multiple computers executing the same thing you only have one and you allow them to either prove the validity of that computation using cryptography like validity proofs like snarks Starks or ZK proofs um and Andor using optimistic uh me mechanisms like fault proofs where you allow people to challenge and then you have this bisection game where you're like changing and like changing the the state um every single step of the execution tra and you're checking whether the execution Trace was valid in a public dispute game within a smart contract so essentially that's how it scales right you're able to to to only
do the computation once and have a proving mechanism back to the L1 that this was correct so you don't have to reexecute everything for every computer you only have to execute once and then everybody else can verify and if anybody finds something wrong then they can prove it and then everything reverts back to being correct um or in the case of validity proofs you can settle as fast as you create a cryptographic proof that whatever you did was correct um okay so next up so I mentioned data avilability right it's it's essentially the concept of settling data onto ethereum from the scalability solution uh and you can also settle that data elsewhere doesn't have to be ethereum op stack is modular right as I mentioned before so you can choose to
settle on a different network like celesa or igen da or ail there's a bunch of different solutions that you to settle on different places and the the way that that is priced is that there's a different economic security that is associated with the data being posted somewhere ethereum is the most secure programmable Network that we have because there's about like 20 billion dollar worth of ethereum staked and so that is the economic security of etherum network for other networks there's less economic security but maybe you can put more data on them or maybe you have some cool cryptographic techniques like you can do some nice things like data availability proofs and stuff um and there's a long road map of things that ethereum is planning so that you're able
to post more data and you have Better Properties there's this thing called Bank charting and Pier Das there's a lot of changes to Ether that are going to happen for this to be better as well and to the other networks as well so another thing is the sequencer so the sequencer is essentially the thing that takes in transactions um uh orders them uh proposes a block and then that block gets executed uh by an Executor in this case right so a sequencer is the uh important piece of infrastructure that essentially takes in all the transactions orderers in in a block um they're essentially the proposer um uh in in this case so currently most sequencers are centralized in l2s because they're controlled by the teams
that uh build the RO up in most cases um however since you have this proving mechanism you can trust the sequencer to Output correct State because you can always challenge them um at least if they're deployed with the fault program life or with a valid validity proof mechanism and then there's the derivation pipeline so the way that rollups work um is that once you post this data on to L1 um anybody should be able to reconstruct the current state of the L2 from L1 State um and this is the the so-called derivation Pipeline and so you can go through every single state transition over um the place where you're settling your transactions and
you should be able to reconstruct the current state of optimism in this case or any other op stack Network so this is called the derivation pipeline um or derivation for short you have an indexer so indexer is something that like index is the data um that is on the blockchain so that you can serve it through requests um so this essentially indexing like an evm database so this is also part of the op stack there is an execution client so this is the thing that um actually does the evm state Transitions and computes the the change of the data over the database then there's settlement in this case um for optimism main net which we're currently on and World chain as well in the future it's ethereum so you're settling this state on ethereum not only are we using
ethereum for data availability but we're also using it for settlement so whenever you're for example depositing onto an OP stock Network you're depositing through ethereum in our case um um all right um no questions so far great um and then um there so once you settle you're essentially finalized you cannot revert the state after you've settled essentially means like it's equivalent to finality right on ethereum uh finality happens after two epochs um so you have 32 slots essentially um so it's like 12 time 32 uh I always forget I think it's like 12 minutes 12 time 32 so 384 seconds is it that doesn't sound
about doesn't sound right 32 times anyway um 64 * 12 okay yeah it sounds about right 786 seconds two minutes yeah it's 12 about 12 minutes on ethereum to finalize a block so on on optimism or any op stack network is like once you settle on the state on ethereum then it takes another 12 minutes for the state to be final final it's irreversible for that state to ever change in the future um and then fault purce what I mentioned is this um sort of program uh that allows you to dis prove that something uh was incorrectly executed on the scalability solution so this is the thing that allows you to
actually build a scalability solution in the future in the in in the first place uh and then a governance set of smart contracts that allow you to do different upgrades to the network right so for example optimism uh currently can be upgraded by the security Council of op labs and some other uh entities like op optimism foundation and a few other external contributors um and so a governance essentially means is that there are some parties that are allow U that are allowed to sort of do an upgrade to the network right so like if there's a new change in the execution pipeline so let's say there's an hard Fork on ethereum which changes the evm uh then that hard Fork also happens on optimism a bit later maybe um and so a governance mechanism is the thing that allows that change to happen because you're upgrading some smart contracts or
you're changing some configuration or doing something along those lines so for those who are curious uh there's this GitHub repo so if you go to GitHub /um optimism optimism I have it opened over here uh you can find the entire code for everything that relates to the um op stack uh and so there's even like good documentation uh optimism itself has a great documentation over here so you can if you're ever curious about the technicalities of it you want to watch more videos or read about like where everything is right we have things like the optimism Challenger which controls the dispute game agent for default proof program uh there's the actual fault proof program implementation there's an
alternative one as well uh there's the proposer um there's Bedrock right so there's the smart contracts for it uh for like how optimism actually works uh there's there's a lot of uh technicalities for this and a really like detailed documentation for how everything works on the technical level so this is what what it actually is right so this is what we mean it's open source meaning that anybody can download this it's public uh and another part of open source is that it's um like licensed under a permissive license so I believe that they use the MIT license correct right so like it's LIC under the MIT so me it means that you can use it for free as long as you credit correctly you can use it for free for commercial use cases and everything else so this is
something that is very appealing because third parties that are Building scalability Solutions um they don't want to um for example think of like paying someone for a license for something they want to be part of this open- Source ecosystem and contribute to open source Goods public goods and so this is why op stack we chose op stack um for World chain right like it has all of these great properties it is scalable performance secure um it has a lot of great technical architecture um it's it's extremely well implemented very well audited thorough a lot of smart people working on it from the community outside of optimism a lot of third party contributors including ourselves and and many other people like coinbase with base and a few other um teams so some of
um the interesting uh things okay some good questions I see on the chat uh what are the limitations um uh of fault proofs and how does it differ from valary proofs great question uh so fault proofs uh the biggest differences is that you have this uh dispute period of seven days for settlement so this is is like like part of the worst uh user experience of of it all is that in order for you to withdraw from an OP stock network uh that is regularly configured with fault proofs and everything uh you have to wait seven days to withdraw from the smart contract of optimism on the L1 right so the way it works is that you lock funds on a smart contract on ethereum um and then
you Mint or the L2 mints your equivalent balance on the same address on optimism and then you're able to spend that balance on dl2 and then after you finish doing your thing that you wanted to do an optimism you can withdraw back to ethereum using the bridge but it takes seven days for this dispute period to finish and then once the state settles you can withdraw against that State uh validity proofs um the the way that they differ is that when someone just does a state transition on let's say ZK sync and someone posts a proof of that state transition being correct to the L1 smart contract then it updates the state route of the the tree of the state of the L2 that you can withdraw against so finality or settlement is much quicker um so you can you can have almost
seamless bridging from and to the L2 as opposed to optimism where you can Bridge immediately but bridging back takes this 7day period for the withdraw um for the dispute game period of Thea proof to finish for that specific transaction or state transition uh so that's like the biggest difference uh from a user's point of view uh the technical differences are extreme right like one uses cryptography the other uses cryptoeconomic mechanism design for you to that challenge State um so yeah that's the biggest change uh what will be the minimum deposit I believe that op stag you can just deposit as as little as you want really uh you can deposit a gr if you want to I think uh as far as I understand uh what is the optimism super
chain I see all overx I'll get into that that's like my next slide after this one uh are this apps going to CH charge for withdrawal uh no op stack is not an app it's just a piece of technical architecture it's just some tech uh it's a scalability solution you can deposit to and from optimism with no like added chart the only thing that you're going to pay for that is the ethereum L1 transaction if you're depositing into an OP stack L2 or if you're withdrawing from it it's just the transactions you're paying for that transaction to be executed uh for World chain however and the world app we handle all that for you the user will just have a popup just clicks migrate whatever they'll migrate over that's it they don't have to think about paying for anything because we
subsidize all the transactions on optimism mainnet for World app users nonetheless um because we have World ID right it's since every user that we have is World La verified we can afford subsidizing transactions for them because we know they are unique user verified by the or uh and also World chain will be subsidized for other users um that are World ID verified and you can have this transaction uh priority as well so this is the benefits of world ID and tightly coupling them to something like an OP stack Network um in this case World chain cool so uh now that that is out of the way let me just check time 28 minutes left great um so what is what is uh the the future of the optimism stack or the op stack so the op stack has a lot of components right like I mentioned
before there's this data availability sequencer derivation indexer fault proofs a lot of moving pieces a lot of technical stuff some of it is not technical some of is more like governance things but what is the future of it so currently um the main uh things that are being worked on are uh interoperability um so the main benefit of using a shared technology stack is that you can create different interoperability interoperability mechanisms between the networks so that they feel more seamless uh maybe you've noticed that now that there's like seven or eight different scalability solutions like scroll stet uh uh arbitrum optimism uh linear uh all of these others you see
on L2 beat uh you you see that there's a lot of these networks and the same app that is on ethereum is not on all of these apps not not on all of these l2s anymore right so you have to redeploy the same application to like 20 different networks you have to replicate infrastructure all the block explorers uh testing tools apis indexers all of these and like critical pieces of infrastructure need to be replicated for every single one of these networks and that is extremely extremely painful um and it's it's very costly right and for an application developer now you have to have this overhead of like what network do I deploy on um what uh like how do I Bridge my my uh my funds to this network
so I can use the apps on this network um so a lot of the current problems of scalability solutions that uh in the way that ethereum is scaling is that you have fractured State uh and uh you have fractured ecosystems uh by by turn and so they're not interoperable uh so one of the key Focus uh for a lot of these U scalability Solutions now is making uh interoperability a core part uh of the thing and so this is what currently op stack is working on um within op stack Network so they're making every single op stack Network so any network that is deployed with the code that I showed you earlier would will be interoperable and currently the timelines are by the end
of the year more or less for that to hit production it might be delayed because there's always like unforeseen things that can delay things but currently the the current estimat that I've heard at conferences and whatnot is like end of the year and what this would mean for you or for any op stack user is that you have um uh seamless bridging from in and out uh any op stack Network so let's say that I I am a user in World chain I have my my world app but maybe I want to go to uh um like Bas to interact with some social application and maybe I want to go to op mainnet to interact with some defi app or whatever um so that that sort of ordeal will be much simpler and native to the experience of the OPC
stack as opposed to having to have third party solutions to Bridge and think of bridging and whatever for the average User it's too complex and the user experiences is horrible for most people unless you're very technically Savvy or a power user of onchain applications so so there's that um another one is uh decentralized fault proofs and multi-prover uh so a a fault proof is this program that I mentioned where people can challenge uh the state the way that it's worked for optimism uh so far with some very minor uh exclusions uh or differences is that U the only person who could run uh or the only group of people who could run this fault proof program was op Labs itself until a few
months ago where they decentralized the fault proof program uh so anybody can run this fault prooof program and submit challenges um to the to the L1 uh however uh recently there is a vulnerability discovered uh like two months ago or so or one month ago uh so they took it off again so now only them can challenge the state and propose the state and so the next immediate thing is to turn it back on once they remediate the security um um vulnerabilities that were found and so once you remediate those changes you can have the cice fold proofs again um and that's sort of like the the things should the way things should be um something that I can touch upon maybe towards the end or maybe in the next lecture since we have a very open-ended lecture towards the end the
future of world coin Tech I can also chat a bit more about how that works if you're curious U but essentially um there's this different uh categorization of uh let me actually find that out l2b stages so if I quickly search for this uh there's this a concept of um decentralization stages um that was created by one team called the L2 be team so I recommend you all read this I'll just post it in the chat really quickly but essentially it's a there's different measures of how the central ized a L2 can be and it's mostly measured by their fault proof mechanism by their settlement by their governance
and a few other metrics and the more decentralized they are the better the stage right so right now optimism is what you would consider a stage one rollup um after you have the centralized fault proofs and uh uh you cannot CH challenge settlement and a few other things it would become a stage two rollup uh and then stage three is completely decentralized right like there's no um way way that they can uh propose in correct state or anybody can challenge it there's multiple proposers of the state and a few other things I I'll leave it to you to read the article I just posted if you're curious about that so yeah so uh another thing that they're working on is a multi-prover uh so a multipro means that instead of just having one implementation of the fault
proof program you have multiple right so currently the technicality of it the way that it works is that you're doing emulation inside of this virtual machine that is implement inside of a smart contract it's very technically cumbersome of how to implement the fault proof mechanism but there's currently one implementation um over this uh computational Target um that uh people are using um but now they're implementing for another one as well so they have a different stack built in a different programming language with a different set of tools to implement the same thing so they have redundancy if there's a bug with one uh but maybe not a bug with the other the network is not compromised uh you still have the security of like a a quarum of these of
these uh uh different implementations right so instead of being like only one you maybe have like a two out of three threshold so if two out of three malfunction then there is a problem but if one malfunctions nothing happens and the likelihood that more of them malfunction at the same time is uh radically lower than if just one malfunctions um so that's like multi provs that's like another change um adopting L1 changes so this is like if L1 like theum L1 uh the evm changes then op stack will reflect those changes so that everything is the same they they target evm compatibility and equivalence so that building an application on the op stack is the same as building an application on ethereum from a developer's point of
view and uh I mentioned stage two uh so this is just like decentralizing even further one cool thing that I find really exciting is uh ZK ifying the op stack um so the op stack is um currently using fault proofs as I mentioned but you can also since it's modular you can change the way that you validate State Transitions and turn them turn them away from using fault proofs to using validity proofs instead so you can use something like maybe like the ZK T from ZK sync maybe and mirror that and use it for example for optimism um to prove that uh the actual Nuance of how that would work is quite complex but there's
already proposals from different thems to how to zfi uh the evm there's proposals from teams like succinct or proposals from teams like Risk zero um so I recommend you Google things like zeth from risk zero or there's the sp1 op stack or sp1 optimism yeah so if if you if you search this this is from the team called six synct um and then there's a bunch of proposals from teams like Mina ZK um fault proof program and a bunch of other teams that are building proposals to ZK five different parts of the optimism stack or the op stack um so that's what I mean by
that essentially instead of using fault proofs you can migrate over to use validity proofs and get all the benefits of cryptography and validity proofs uh there um while still using the op stack really you just swapping one part of the entire thing and that's the beauty of of the op stack it's modular you can swap things in out like settlement like finality like execution um like the derivation pipeline or the fault proof program for vality proof program you can change these things as as you go because they're modular um cool uh the centralize sequencing so this essentially means that uh optimism is not the only party op Labs is not the only party that is able to propose a new block or sequence
a block but anybody will be able to as long as they like run the sequence here and maybe they stake some whatever and they able to propose blocks uh that gets into some cumbersome edge cases because now you have things like me on the network which is a hard problem in of itself if you're curious about that I recommend you watch some videos about M or search online um and then uh the biggest one I think that or at least the biggest one that concerns worldcoin and World chain is the gigas road map so um Giga gas means like a billion gas um and what gas is is this unit account of the evm right so when you're doing transactions on the evm um you're you're you're limited by the amount of transactions you can do
there because there's a finite amount of gas you can execute per block and in the case of evm currently on ethereum it's 15 million gas per block every block is every 12 seconds um and uh maximum you can do in one block is 30 million uh when there's periods of congestion using this mechanism called e559 for those who are curious uh so essentially if you divide 30 million gas by 12 you have like somewhere about like three GA um three million gas per second uh so you don't really have that much you can do uh when it comes to gas right like three million gas as opposed to one billion gas is is a 333x uh in in transactions that you
could do um if you're able to scale to that sort of scale and so I also um opened this link I believe so this this is like one article from Paradigm which is a VC fund that also does a lot of engineering maybe if this loads I think my Wi-Fi is not working very well uh I'll just post the link hopefully over here for those who are curious uh I need to copy over here and post it in the chat cool so um that link should show you like what uh the road map is for some of the execution clients on ethereum so essentially there's a road map to scale the op stack and all the the different
architectures of the execution layer for optimism to allow you to do more transactions within an OP stack Network by scaling further uh another one that we care about at worldcoin is rusif the op stack so most of the tool chains in the op stack are written in this language called goang which was was done by Google um created by Google a little bit over 10 years ago and rust is this other really popular programming language that essentially World coin uses everywhere and a lot of teams really like for a lot of different reasons and so a lot of people are writing the same parts of the tech stack on the op stack and rust um as opposed to uh goang so this is another Community effort that we care about so I have 15 minutes I'll try to to to be quick so
the super chain uh this is the a question that was brought up by Ric so you mentioned that is an unrelated question but it's very much a related question it's like part of the core of of what the op stack is and what it means I should have probably named this uh a presentation World chain op stack and then the uh uh the the super chain right or like I guess just a long titles so I just decided to say World chain and the op stack uh but but yeah super chain is a core part of the optimism ecosystem and so what it means is a network of l2s running the op stack that is essentially what the the the super chain is uh the reason why we call it a super chain and not just a network of l2s running the op
stack is that they're interoperable within one another as I mentioned before there's this interoperability stand that is being worked on and and and so that so that every single Network that uses the op stack in this specific way with the same configuration is able to feel like one network this is essentially the the gist of it right like we have multiple op stack networks running the same Tex stack we want them to feel like one hence the super chain right and uh there's a set of standards and set of technologies that we need to share in order for such a thing to be possible right so there's different kinds of scalability you can do you can do vertical scalability by like deploying an L2 and then maybe like an L3 a scalability solution on top of the L2 that settles to the L2 and then L2
scales to the L1 right so this is vertical it's up and down like L1 L2 L3 whatever then there's horizontal right so you can deploy multiple and two l2s on the same L1 and this is horizontal scalability however when you scale horizontally you're fracturing a lot of the state because now the these networks are no longer aware of each other so what the super chain is trying to do is to break this Paradigm where you have horizontal scalability and fractured state by having horizontal scalability but unified State through interoperability so you can build an app on any op stack Network and any other op stack Network that is part of the super chain can use that app seamlessly without having to bridge in complex ways or or be aware of a lot of third party
bridging mechanisms and whatnot a lot of complexity there so this is what the super chain is what does it have it has a shared group of decentralized governments so different super chain members can vote on different proposals to change the the super chain like change the op stack change different parameters uh change different security mechanisms and parameters uh do upgrades uh jointly for the super chain um there is U partial Revenue share so any super chain uh Network in order to join the super chain you have to pledge to this law chains that I also have over here for any of those were curious oops I just wanted to open this this link so that I can send it over here we don't have much uh oops I sent the same link
twice give me one second just didn't copy through uh this one so if you use uh this link you're you're able to read what the what the what the um law of chains is um essentially it's a it's a shared common shared um um a set of values um that people abide by when operating an OP stock Network so that you can be part of the super chain and part of the one of the Clauses is that you par you share part of your revenue or profits with the optimism ecosystem so that you like uh people that are using the op stack can benefit the general ecosystem of the super chain right so anything that any of the
members um sort of buil they can contribute back so that it can contribute back to everybody else right um uh essentially it's it's it's a way of of of of funding this public good that is uh OB stack because it's a public good nobody is paying anyone for doing this other than than um the optimism Foundation through its Treasury and then Super chain networks that are sort of funding back something that they're using for free really so this is sort of like the benefit you have shared security shared decentralization you know you have like shared upgrades Shar shared shared governance all these things um but it's it's good to sort of contribute back so that this this technology is sustainable and economically sustainable right so it's
funded well and so World chain is going to be part of the super chain I mean like we're already part of it but it's not live so let's say it it will be part of the super chain alongside other networks like Bas mode Lisk fraxel and a bunch of others um you can just Google super chain list and it will just bring you this first link um I'm just for the sake of time I'm going to try and move quickly towards the end so um world chain right I've been talking a lot about what the op stack is what the super chain is what uh the technology behind it is what the future for it is um but what is sort of the future for us as it concerns um things like the super chain or thep stack right like what are our own priorities at
worldcoin for these things so the first one is to essentially get World chain to main net right essentially like like you've mentioned uh you have a few questions like oh when World chain whatever this is the thing that we're mostly focused about uh mainly focused on right now so essentially um closing off the developer preview uh time and doing a Mana launch um so I'm now able to share when that is going to be but essentially um as soon as we're able to do that there's going to be an announcement and you're going to be able to to see things uh um for yourself and also if you're a world app user you're going to like see the flow of like going on the world chain whatnot so this is our biggest priority right now main it
launch uh getting all the dependencies third party Partnerships all those sorts of good things so that world chain feels like any other chain to you um where you're like expecting the things you should expect out of a chain um when it comes to user experience developer experience um thirdparty ecosystem part uh uh third party ecosystem apps and whatnot uh how do economic incentives work in a super chain environment to encourage participation great question so since it's open source uh since it's the centralized since people can just use it and become part of the the the super chain uh very early on um uh you can contribute to something with third party people that are really smart like everyone is just working together on the
same thing um that's sort of like the the incentives are there from sort of a non-monetary perspective right like it's this ethereum value align sort of thing it's like you're building a a decentralized set of infrastructure that scales uh ethereum in this case so there's the value alignment there when it comes to the economics that's sort of things like the law of chains where you're like paying for it with part of your revenue or profit so for example base has pledged to paying 2.5% of their um revenue or 15% of their profits whichever is higher um to the uh super chain so that you're able to fund the development of the op stack um that it
doesn't so that it's not just funded by the optimism Foundation treasury or op tokens so that all the networks that use the op stack and are part of the super chain fund the development of the op stack in perpetuity because they're using it so this is sort of like how we're trying to balance economic incentives and there's this law of chains which is a legal pledge that we're that that these teams are doing including worldcoin so that we contribute back whatever um U like specific share of our profit or Revenue U Back to the super chain to in order uh to be essentially contributing right so it's economically sustainable as you mentioned um so uh one of our biggest priorities will be scale um the reason for that is that as I mentioned in the
previous slides like go way back right like you see how many users we have like millions and millions of users um these millions and millions of users do millions and millions of transactions and uh there's only a finite limited set amount of transactions that you can do uh within a specific amount of time so at one point we were about 60% of optimism main net and this essentially means that um we were the biggest uh submitter of transactions and there's literally no space on optimism left for us to submit transactions more or scale right like have more users than 10 million like 20 million users would have been impossible at this time because we just took too much of optimism hence World chain hence scaling right you're able to actually on board a billion
users uh to uh worldcoin uh which is the fundamental goal of the project right so this is why it's directly in our interest to scale op stack right like we need to support an word ailon users hence we need to solve all these hard problems like scaling DM and uh scaling l2s and uh doing all this research and Engineering uh to bring this to life um so another priority for us is scaling ref and the required infrastructure to one gigas per second or one billion gas per second um U ref is this execution client written in Rust um this is like something I mentioned before with rustifer chain or rustifer so re is this execution client built by
Paradigm like I mentioned the article uh that I sent in the in the chat so that one is just about like scaling rest to one gig per second that's like one of the things that we care about fundamentally and developing the rust ethereum infrastructure a lot of it was built by Paradigm but a lot of is also built by other people um so we want to contribute to those efforts to rustifer but also op stack as a whole like doing like a fault prooof program in Russ doing a derivation pipeline r like all of these optimism components that I mentioned before that are open source writing them in Rust uh it's like an important thing because we care about the features that Russ brings for those who are curious uh it's things like memory safety uh we're not able to access or D reference an pointer and
things like that in Russ that doesn't exist or other programming languages like C or C++ there is a big problem Russ is very performant it's a compiled language um it's a statically analyzed language so you can analyze it at compile time it's not interpreted um and it's really performing fast compiles to a lot of different targets uses LM it's it's a lot of technical things for a lot of maybe if you're not technical it doesn't mean anything to you but to us it means a lot um and then um there's a abstraction as a first class citizen right so account abstraction um is maybe tangential to the super chain but an important part nonetheless it's essentially this thing that allows you to treat a smart account um as if uh you were able to do lots of
different things because currently like you can only pay for gas within a smart account uh in the native token of the L2 right so let's or the blockchain so for example if if the native token of ethereum is eth you can only pay for transactions in eth account abstraction allows smart contract wallets to pay for transactions for example in usdc or worldcoin or anything else uh really any token another thing that allows you to do is to subsidize gas for people so like you don't have to pay gas but somebody else can pay gas for you um um so for example we could subsidize directly natively through a con abstraction uh there's other better things like recovery or like signing with pass Keys there's a lot of
different changes but this is like one of the main ones that we care about if you want to learn more I think we're running out of time so I'm not able to explain what a con obstruction is in detail but I just recommend just like searching probably uh something like Alchemy what is a con abstraction so if you search this you should find an article from Alchemy which is our actually our partner for World chain so we are not running World chain ourselves we're partnered together with Alchemy which is a um has a lot of different ethereum tooling and infrastructure including a rollup as a service provider so they're going to be running World chain um together with us and partnering on the infrastructure side to provide infrastructure to run World chain within Alchemy um so they're good team that has
a lot of educational resources um highly recommend those are really great for beginners and people who are looking to learn more uh cool yeah so that that is everything that I had for uh these sets of slides uh again I'm happy to go deeper into any of these topics in the future one uh but uh maybe I can also answer the last few questions I see one question over here okay that's the same one cool awesome sorry I always get like uh towards the end I start rambling quite fast because I want to meet the deadline no worries I'm sure that was really helpful for everyone even if you did rapid fire through the last three last three last few slides yeah now I'm
talking too fast thank you very much DC builder for coming in again and giving this workshop on world chain and the op stack we've got one more in the series and that is on the future of worldcoin technology so I'm sure you're all going to join us again on Wednesday for that one um one last time in in code Club worldcoin educate series uh other than that unless anyone else has questions there's a few people typing nope just all thanks in the chat I see one question I didn't answer in the questions tab by Rainey at 646 PM something um yeah sure go ahead uh we have been getting our job since August the first one was 6.18 September 6 how
many are there in October how is this calc on monthly basis y y okay um so uh TDR is that uh the the the world TN team uh sort of has a grand contract and this Grand contract currently is set to a monthly frequence so the monthly um so the grants like within World app are monthly uh as as it comes to the the specific amount I'm not able to to say how that mechanism works not because I don't want to it's mostly because I'm not working on that specific part of the team um and so don't have the detail but essentially my awareness is like there's a an economics team that is able to sort of measure uh a a sort of log curve of like as long as um like the more people join
on the network the the rewards diminish over time um so yeah it's mostly like an incentive mechanism um to join the network right and so it's calculated based on an economics uh uh curve U for for pred predicting like what is the optimal uh sort of amount um as it comes to like a specific answer for why it changed from one month to another I'm not able to say mostly because I don't not thank you for covering that question we've got lots of thanks in the chat for you um but we have come to the end of the session so we will see everyone on Wednesday for the final workshop and I hope you all have a good rest of your day
awesome everyone byebye [Music]
Related talks
- Optimism Bedrock: Upgraded optimistic rollups architecture
- Optimistic Rollup
- Can Rollups Save Humanity? Optimism Says Yes.
- Unwrapping Optimism with Ben and Mark
- Optimism Sequencer Support
- Introducción a Arbitrum y la Escalabilidad de Ethereum
- The Future of Layer 2: Research, Development, and Next-Gen Technologies by Ed Felten | Devcon SEA
- The Semantics of Rollup Finality
- A Rollup Vision for Ethereum: Zk vs Optimistic - Panel
