Evolution of Blockchain Architecture - Daniele Di Benedetto (Horizen Labs) and Zain Cheng (zkVerify)

ETHMilan 2024 · 20 Oct 2024 · 35:50

Daniele Di Benedetto of Horizen Labs and Zain Cheng of zkVerify trace the shift from monolithic to modular blockchains. They explain execution, consensus, data availability and settlement, how Ethereum's Merge and Dencun upgrades moved toward modularity, how optimistic and ZK rollups and data availability layers fit in, and how zero-knowledge proof verification unlocks new use cases.

Speakers

Topics

From ETHMilan 2024, hosted by ETH Milan.

Transcript

hello so very nice to be here I am Danel de benedetto I am the engineering manager here at Orel labs and I'm currently leading our new project ZK verifi today we are going to take a journey explaining what are monolitic blockchains what are modular blockchains and the transition through that and which is kind of not topic today and why according to us this transition is possible thanks to ZK zero knowledge Technologies so okay A little bit of refreshment I know that you don't need it but we'll do it anyway what is

blockchain difference between monolitic and modular blockchains uh the modular blockchain landscape so how many modular blockchains are there spoiler too many um what is zero knowledge uh which is UN hot topic and I think it's worthwhile to be speaking about it also here and how ZK is helping modular blockchains and what ZK would allow you to uh unlock in terms of use cases so I'll be very quick here a blockchain is a distributed Ledger made up by a set of nodes that validates transaction submitted by users and broadcast this transaction such that

all of the nodes of the network can validate them um the node of the network agree on the transaction and on transaction ordering by creating blocks uh that are list of transaction blocks are linked together such that uh whatever transaction they record it will stay in the blockchain forever it will be verifiable publicly by uh anyone so they guarante safety liveness security and and so on so so we can identify four main functionalities for a blockchain that which we call layer for the moment the execution is the transaction processing so basically

uh the validation of a signature uh the execution of a smart contract method whatever the consensus is the algorithm through which all the nodes of the network agree on who is going to publish the next block what will be the content of the next block what to do in case multiple blocks are proposed at the same time um and so on the data availability instead is the functionalities that the guarantee that the blockchain should provide that is to store historical data so that anyone is able to validate all the transaction happened in all the history of the blockchain essentially reconstructing the state of the blockchain starting from the Genesis

block finally the settlement is the process to which trans action are finalized that is are inscribed in the blockchain and they stay there forever they are not reversible anymore so all the blockchains that you know up until now Bitcoin ethereum and Solana uh sorry ethereum pre ethereum 2.0 upgrade they are called monolitic because they handle all the four functionalities in a single monolithic piece of software let's say so the nodes of the network needs to handle all these functionalities um okay these were the first blockchain that came to play that that's why they are widely adopted there

is um a lot of tvl inside them there are a huge network of nodes that is validating them and therefore are generally considered more secure and decentralized uh however as the more of this blockchain are getting used so the more users try to submit transaction and so on they start to suffer in terms of scalability because it means that nodes must have an increased bandwidth they must have an increased storage they must have increased Computing capabilities and so on uh this is bad for node operators that needs to pay more for maintaining the blockchain but also for the users of

the blockchain because um uh they need to reward the nodes that's and so they need to charge more on fees so you might be familiar with the terms of security scalability and decentralization that's the so-called blockchain trilemma that suggests that uh it's difficult to optimize one or more of this aspect without compromising the others in the slide you can see some example proof of work proof of stake and some well-known monolitic blockchains in the market um several solution were proposed to address the trilemma so you might be

familiar with I don't know State Channel Side chain plasma and so on the an emerging Trend in the industry is the modular blockchain so a novel conception of a blockchain architecture that aims at addressing um the trilemma and to illustrate that it's probably worthwhile to take a look at what was the what is currently the path for ethereum from going to a monolitic chain to being modular so in September 2022 ethereum performed the famous merge in which basically they switched the consensus algorithm from proof of work to proof of stake so as a matter of fact the proof of stake is handled in a

separate chain called the Bon chain while the all the other activities so the validation of transaction and so on is actually on the on the main blockchain so what happened the main blockchain now doesn't have to do the the the the nodes of the main blockchain don't have to do anymore the uh to handle the proof of work so this allows to reduce the requirements for nodes that are running only on the main on the main Network and uh instead there will be a set of specialized nodes on the Bon chain that is only tasked to do the proof of stakes so the validation and and so on uh okay they switch to proof of Stak so low

energy consumption and this fact so offloading this functionality from a to a separate layer allowed a small reduction in transaction fees and to De conest let's say a little bit the network so in 2023 instead a theum uh did the so-called Denon upgrade that uh basically they introduced they offloaded to a separate chain the data availability because let's say many smart contract many application on chain rely on committing a lot of data on the main network uh the cold data if you're familiar with the terminology and okay

this C data fills up block space and as more as more application is demanding block data they fill up the block space there is not room for everyone and of course so the fees that people need to pay in order to post such data started to become astronomically High um this Denon upgrade or Proto dun sharding basically started to address this kind of problem as a minor step towards the full sharding of the eum chain in which basically they introduced a new kind of transaction that allows you to store Blobs of data whatever data you like to be and they are now attached let's say to as a side card to the Bon chain so

effectively the nodes on the main chain do not have to deal any more with data availability the reality is a little bit more complex but I'm I'm simplifying um and this has the immediate effect to reduce by several order of magnitude uh like 10 times or maybe even more uh the fees for coold data only so what what what does the eum journey teach us that if you are able to move some functionalities of your monolithic chain to a separate blockchain to separate modules which do not leave on the main chain but communicate with them you you you are

able to improve your scalability by a lot and that's the idea behind the modular blockchain architecture so modular blockchains are essentially blockchains that handle typically one or more of the four functionalities that we have seen before execution consensus data availability and settlement that you can move out of your monolitic chain your monolitic chain is called the L1 and the other chain will be called l2s you can apply recursively the same reasoning so you can offload some function to of the L2 to other modular blockchain and they become L3 and so on so of course we have SE

this improves the scalability by a lot uh because now there are set of nodes on spe on separate blockchains that are tasked with specific tasks that the monolitic chain the L1 doesn't need to do anymore you have more flexibility because I don't know for instance in ethereum pre pre merge if you wanted to upgrade the consensus algorithm it will affect also all the other functionalities of the chain while now you can upgrade only the monolitic chain and you don't you don't need to care about whatever happens on the main chain and for monolitic chains in which hard Fork sticks Al sometimes are quite often ears uh this is a very very good benefit um and of course they are interoperable

by Design because they need to communicate with the layer one because they're taking responsibility of doing some of their tasks and uh in case you have multiple modular blockchain they need to communicate also among each other so um this bolers interoperability and you can do actually quite cool stuff um of there are some cons the blockchain trma remember so in terms of security if you think about it um you are moving functionalities toward the main chain but this functionalities needs to be secured as well um but let's say you are splitting the validation capabilities given by the nodes to several different

layers so the end result is that the security on all these layers will be lower with respect to the security you had on on on the old monolithic chain and that's why let's say they tend to be a little bit more de centralized today to to guarantee a little bit more security um and of course you are moving functionalities on separate blockchain but this this stays blockchain so they need to reach consensus they need to validate it and so on and so especially if you are moving a lot of functionalities to several different chains H this will take time to process your transaction so you submit a transaction you send it to one chain

that I don't know does the execution another chain does the data availability another chains takes care of organizing them and so on um so uh we need to be careful not let's say destroying too much and spreading the functionalities of the monolitic chain everywhere and well as you can see this this this map is from March there there are quite a lot of modular blockchains modular layers dealing with um different kind of functionalities uh and as of now there are many more trust me um they're essentially boosting the research and

the innovation in this sector they have become a major Trend in the industry let's see some most relevant example so rollups probably you're familiar with the concept of rollups so rollups move the execution of the monolithic chain so basically transactions are processed of chain on a separate blockchain this transaction are compressed in a transaction batch and the batch is submitted to dl1 chain for settlement so the idea is that the rollups inherit the security of the L1 chains because reverting this transaction on the one chain requires the reverting um the whole blockchain

um let's say that there are other security assumption uh rollups nowadays some of some of them are more centralized some of them not and so on uh but let's say they all have on the road map the possibility to become fully permissionless secure and decentralized um you might be familiar with the optimistic rollup for sure arbitrum optimism so the issue is that the monolitic chain receives this transaction badge but the it doesn't know whether these transactions are valid or not so um the rollup needs needs to have some way to prove that this transaction batch is valid so nothing funny has happened of

chain optimistic rollups essentially don't care so they assume by default that the transaction batch is valid and they left open let's say a challenge period in which someone can sub if someone detects uh a fraud let's say can submit a fraud proof and uh a funny protocol plays on chain and if the protocol is successful the transaction batch is reverted a zik rollup instead creates a ZK proof of the validity of the transaction badge the proof is submitted on chain for verification and that's it uh we will dive deeper later on the concept of ZK zero knowledge proof but

uh for now consider it like as a mathematical proof of the validity of the transaction batch that is um it's very easy to verify no matter how big is the transaction batch and what happened uh and it's um it's not it's not possible to be it's not possible to Tamper um another uh example of modal blockchain are um data availability layer so I'm sure you have all heard about about Celestia which actually introduced this concept of modular blockchain um so we have talked about uh the C data a lot of rollups relies on transaction data the transaction PCH is pretty big and uh posting this on

ethereum is costly so much like ethereum did with the Denon upgrade there are other blockchains that deal with data availability so what happens is that you submit the transaction batch not on ethereum but on this data availability layer this data availability layer guarantee that it will store your data that your data will be available in case someone wants to validate the transaction batch on ethereum how do they guarantee this they release a kind of proof an attestation on the L1 that the smart contract using this other data forwarded by the rollup can check so the smart contract is sure that the transaction batch is stored somewhere it's available

and it's retrievable in case of I don't know you have to do a fraud proof or whatever uh situation the situation can get a lot more complicated as you might see uh but uh let's say the the what what is the main takeway here is that modular blockchains are big Trend and they are uh actually a quite useful feature so you can create um a new blockchain from scratch by just composing already existing modular blockchains or you can boost the the your the power of your monolithic chain to scale by just offloading some functionalities to other um already existing modular blockchain we miss

still an important piece that is ZK why ZK is important and how why is important in terms of the transition from monolitic to modular so I will leave the word to Zan here that is going to explain thank you hey everyone thanks ddb um I'm Zane um and I'm going to go through ZK uh and I'm also going to touch about how ZK um affects the modular blockchains that ddb had spoken about and also I'll go through some use cases so what is ZK uh I want to take a giant step back

and um look at it from a holistic standpoint so zero knowledge proofs it's a technology that's been around since 1985 and um I just want to put it in perspective on the right on the right you'll see um that the Bitcoin the first block for Bitcoin was yeah 24 years later uh in 2009 ethereum was 2015 30 years later and uh has a rich history and I'm going to go through one paper to help me explain zero knowledge proofs this is a 1991 paper called checking computations in poly logarithmic

time yeah this paper was published in 1991 that's pre- iPhone and also pre noia Nokia was released in 1992 uh what the core part of this paper um mentions is that it was looking to have a single unreliable PC which was slow be able to leverage and monitor the operation of this herd of supercomputers but this herd of super computers doing the computation was unreliable and untested and so it was using zero knowledge proofs to say hey we want to be able to verify that those computations were done in the right way without actually re-executing them and

that's really what uh DB Daniel had mentioned with the l2s and that batch of transactions so uh what are zkps uh really they can be thought of as an advancement in cryptography uh they are a protocol where there's one party approver and theover for any given statement can uh convince a verifier that that statement is true without revealing anything about that statement or computation uh now for this advancement there's something really great about this proof system there are three properties that are very natural that

help blockchain one is completeness another is soundness and the third is zero knowledge I won't go too deeply into completeness or soundness but uh zero knowledge is the fact that uh the party that's verifying learns nothing about the fact that whatever statement that's being proven is true and so that uh is really helpful for modular blockchains uh because in modular blockchains you can scale and you can have privacy and zero knowledge proofs can really enable that uh we'll see that here with uh zkps for privacy uh

zcash being the first in 2016 and Horizon a year later 2017 uh zkp is user scaling with st net 2021 n ZK sync and many many others 2022 and we'll go a little bit into how that those uh rollups work uh this is the same slide that dla showed um so that's the batch of like 20 uh 256 transactions being put together as a transaction batch uh and then getting rolled up as computation that's been verified back into the L1 block uh just looking slightly deeper into

this um on the on the left there's uh those 2056 transactions they go through a series of stages before they're actually at the point of verification at that verifier um it's compression normalization aggregation um and then there's this conversion step Illustrated another way is uh on the top this like series of proof getting aggregated going through all the stages uh coming to an aggregated proof and then this converted proof that eventually gets verified on the L1 this slow reliable computer

ethereum uh we at Horizon Labs we took a look at um the cost of verifying on the L1 and um for the various different types of proofs uh you see them there those the most popular ones you see that it ranges from let's say tens of dollars to hundreds of dollars and that can be really prohibitive uh especially for someone who wants to cast um let's say a private vote on a dow um and you know in terms of dollars and Euros tens uh hundreds of dollars that's that's a lot of money in different countries and um you know you might have to choose between let's say your meal and voting and so it's not really

scalable uh it don't not only hurts like the individual user that is voting but also it hurts the apps uh apps don't use Zer knowledge proofs uh as often because of this uh cost Factor uh so what we thought of at Horizon Labs was hey we could really modularize this and put ZK put this into a product which we call ZK verify it is a module that's dedicated to proof verification um you'll see there on the top all the different types of proofs uh that are available and some that um are so uh still experimental but they're verified

by our native verifiers where as a modular part of the modular blockchain we specialize in it so developers can choose the proving system that best suits their needs and as newer and more efficient proving systems and we're seeing that all the time as they're being introduced uh they're seamlessly integrated into our module uh this is the same slide but slightly altered from what D La uh had shown before with the modular stack uh breaking it out into verification as well and across the different types of rollups uh ZK verify is working specifically on verification and making

it better but it goes beyond rollups uh so it's really a generalized workflow for all types of um apps not just rollups any proof generating system can send proofs to our module um our modu blockchain and have it verified uh eventually then I also talked about the concept of an attestation being sent to um an L1 uh if we go through that process here in the workflow for any uh web 3 uh work flow but uh We've also made it uh simpler for web2 friendly workflows

meaning that maybe you don't have solidity code on an L1 and uh you you do want to utilize proofs proofs can be generated in the browser now so if your web 2 app is generating proofs in the browser you could send it to us and we have this npm package uh publicly available now where a proof gets sent and you your app could be written in typescript can can register listeners so that hey when your proof has been submitted is it been finalized um has it been included in a block and I'll talk a little bit more about these uh Web Two use cases um up next uh to start off the conversation

around um use cases I want to look at zkm now because a lot has been uh said about it uh this book here uh called The Diamond age was written in 1995 it is uh a book a science fiction book by Neil Stevenson where every child that's born in this futuristic age is raised by with an AI and that AI guides that child through the various stages of Life teaching it values things that uh the child needs to know but is it really that much different from what's Happening Now where our children are asking chat GT uh GPT all the questions that they run into and even our us

ourselves is the AI that you're asking for maybe that your children are asking is it the model that it's uh that it said it was doing uh and not some other model that's been inserted some like uh random things that maybe your child shouldn't uh be looking at and it's is model Fair um so there's many white papers around fairness and machine learning ZK machine learning is really tackling that problem is the model that is being used actually the model that uh is said and they're doing it through zero knowledge proofs along the same lines of AI uh

there's so much um so much content now that you can't tell if it's created by AI or not or is it is it created by humans well is it real uh the folks from Stanford uh Dan banet um has a project called Veritas they uh they know that cameras now have a chip in there that signs uh a photo uh as well as the metad DAT saying that that photo is has been taken by that camera that specific camera uh but what they noticed is that those photos they actually undergo a transformation process and that transformation process c um gets is part of the process to get it to Media so in

media uh whether it's a website or print it gets cropped it gets resized and sometimes things get blurred so uh the project looks at uh it's more for editing software where hey there's this set of allowed Transformations and uh so they've encapsulated into a proof where the statements being proved are is the original image actually signed by the camera and are the allowed Transformations the ones that uh have been specified by the proof uh yeah we see new use cases happening all the time and um we were sponsors at ZK hack Montreal recently um I'll just highlight a couple of them the

the one with the star is the one that won our Bounty it's zgate it was a um telegram bot that use zon knowledge proofs to gate access to certain groups based on on a person's net worth um and um what they did was they created a zero knowledge proof representing the algorithm that they use to uh gate the the um telegram Group H and then they verifi verified it on ZK verify there was no solidity code needed and so uh it was a essentially like a web2 um crypto adjacent um app and yeah really interesting usage of zero knowledge proofs another one is z tips uh Z tips

is uh they it's for Country they were from a country where uh it's not very uh easy to give tips to police um in terms of privacy they didn't want to get um any any repercussions for the the tips that they've given so it used zero knowledge proofs to essentially p uh guard priv y uh eth Warsaw uh some of you might have been there as well uh we had a hackathon there the three stars here uh represent uh yeah the bounties one ZK feedback is uh private feedback um The Mastermind is a is a code cracking game

with um verifiable computation incorporated into it and then there's crypto Point of Sales uh but yeah there's so many use cases now that are happening um and uh we believe that uh we're in the middle of a movement with ZK and ZK is bigger than web 3 uh the there's just so many circles in here new use cases happening all the time and we're really excited about it um it's ZK is something that we truly believe in and really want to share it and pay it forward to the world so if you want to learn more about our project uh this is uh where Horizon Labs those are our um handles U our project

is EK verify and we are currently hiring thank [Applause] you also can answer any questions as well don't be shy oh wow yes please um how are you thinking aboutall are you focus system I mean um currently we are

focusing on well we have integrated Gro 16 flun that is the one used by polygon ZK evm risk zero um and uh the the one you used by Aztec Noir um the cool thing about the project I think is that uh you you you are not really tied to any proving system or to any crypto you can use whatever proving system you want whatever lipti curve you want and so on personally as a major Trend in the industry I see more and more people all all these ZK apps that we have shown here that are using either zvm like Risk zero or in general some kind of high level languages for circuit with DSL like uh Noir uh it's cool because uh

it's making uh people coming from web to or people that doesn't know anything about cryptography coming towards web 3 andk yeah just uh yeah great question and to exactly what danelia mentioned um to add to it uh just last quarter there were 12 13 papers published in ZK proof systems and um the space is moving quickly uh know folks like irreducible are working uh on the hardware side they have Bas and uh there's always new proving systems coming all the time it's a space that's like difficult to keep up with and we we're um as D mentioned we're like really focusing on that so others don't have

to please yeah have you heard about Vol IND head um there is still kind of Novel research on top of that right so it's kind of

field but would love to chat and know more about that yeah and also we'll be at CK Summit in Lisbon in about I think like a week and a half two weeks yeah why are you scared yeah yeah I get it um yeah the messaging

is very important I think so um that's why we also and all of this project undergo audits to be sure that everything works as expected um but I think yeah it's scary but uh I think the benefit is that it's fully private right so you can move funds you can do whatever assuming that you're not laundering money which we don't know um but yeah yeah for sure that's that's a big uh uh that's one probably on the main obstacle for Mass adoption but I'm seeing in the web war and also government in general

are opening up towards this technology yeah yeah and I'm glad to hear that um you're experimenting more with it and um yeah we're seeing like some good projects come out from the hackathon from the hackathons that I mentioned U we will also be uh sponsoring the hackathon in eth sopia thank you very much thank you

Related talks