Modular Microchains to Achieve High TPS
16 Mar 2024 · 10:09
The Rollup's Rob talks with Mat of Linera about microchains, a parallelization model the project uses to scale its execution environment and push transaction throughput higher. They discuss how microchains differ from typical Layer 1 architecture, Linera's vision for independent user accounts and objects interacting outside the constraints of traditional blockchains, and what a scalable modular future could look like built on this approach.
Speakers
Topics
Transcript
welcome back to the rollup High Roller Community as always nothing on the rollup is to be ConEd as Financial advice we are Educators in the defi space toss us a quick like give us a share a repost send it to a friend who may want to watch this and finally give us a sub or a follow it means the world to help support credibly neutral educational content in def5 we're here to educate Empower and enrich you and let's jump in welcome to modular day thank you thank you glad to be here go ahead and uh yeah I mean tell us a little a little bit about what you're building and uh why why it's important to be modular yes for sure okay so um so I'm founder at Lin linio um and that's that's new lay one new kind of lay one infrastructure that
I started um right after um I left the uh I left Facebook the uh the Libra project the DM project the the blockchain project of Facebook right and so uh I was a blockchain uh so I spent a bunch of years at Facebook where I was first I was a a software engineer uh working all kinds of scalable systems and then I was one of the early uh early engineers in the the Libra project like I said and um and so and I and I I worked on blockchain protocols and and so I was kind of obsessed from the beginning uh in scaling and um and uh but we couldn't innovate as much as part of Libra and we had other other problems other the fish to fry you know and so and so yeah and so I was given this
opportunity to start start this uh this new project that's been really excited so far uh trying really trying to create a new kind of lay one infrastructure um pioneering on the new way new execution model that is really like focusing on on scalability and U and realtime user interactions on chain uh and so it's it's been a really interesting so modularity since you were asking so yeah so for me for me it means um essentially like um trying to be the best as what doing and uh and and make yourself use uh useful you know as a piece of infrastructure and so Lera is a is a layer one but it's not a generic layer one we're not trying to be good at
everything and we're really trying to focus on on what I said so the low latency user interactions and um and so we'll see uh how at the end of the day how it's going to fit in the rest of the picture but there there are like versions of that are we could be already seen as a side chain of eon that is very specialized in in real-time delivery of uh of data unchain data um yeah so there's there's a lot of ways we can go about this but definitely we're like a very different kind of layer on sure so so let's dig into like the specific applications and and transactions that that you're building Lara to to focus on these are uh dual dual user latency transactions uh how how I mean this is something that
um isn't a particularly like um uh you know could could you basically tell us like what what the those are why it's important to build a layer one specifically for those types of transactions so so the so the core concept of linear is what we call micr chains so um so and that's really the starting point of everything so the idea is that so far people have been optimizing for a particular kind of applications that kind of want to live on the same chain so that they can be composed and uh that's so you can like if you have like Unis swap you can do flash loans and maybe you know combine that with other applications got this infinite composability model in a high TPS chain that has worked so well for eum and and now we see that people are
trying to scale this in later toos and and but in a way this is only one type of application and if you look at the rest of the world what's happening in web 2 systems more often than that they have user accounts they have objects that are mostly independent and I it to me it fairly little weird to put them on the same chain if we so if we wanted to do let's say decentralized eBay right so you have a bunch of auctions that are basically running independently from each other and why would you put them in the same chain in the first place and so what we're saying is like why don't we just allow each of those independent processes to have their own temporary
chain right that is lightweight and kind of running independently um in a way that so it's going to be very easy to uh scale out using ideas of internal Shing so and elastic validators so and so um and so that's the starting point so trying to create a new way to organize applications when they are uh different from what we've been we've been seeing so far and when they if they have like this independently independent user accounts independent objects that are that are interacting we can we can map these user accounts into user chains that's the thing we're doing map the objects into object chains and and have the
a sort of network of interacting chains and uh and so the that's the that's kind of the intuition and then the engine is what we call micr chains that's the that's the and so micr chains that's the idea is that we have this one one infrastructure with one set of editors that can run potentially millions of tiny chains in parallel and um and we're building for that we're building for a system where you got a number of loot CPS chains and we got millions of them it's something that's completely new and is really good for um if you're really into low latency interactions the reason is because now if I'm a user and I'm um I'm playing
like there's a game in Stand somewhere right so we have our own with the old the players maybe I have my own temporary chain and whenever I want to make a move I create a small block uh that contain my move there and I don't need to compete with block space with the other users of the entire system for that right I just can create a small block only for for my interaction in that game and then the other user as part of our ear infrastructure we're going to notify them and their world is going to receive a notification that there's a new action and the we we we embedding a VM in in the wallets of the users so they have actually the UN data so they have their own replica of the of the game State and we from the wallet we can notify the UI
of the users and now if the UI reactive reactive themselves using like some Frameworks like react GS something like that then suddenly we have a system where we have endn real time interaction so the moment I click in my UI creates a block in my chain um change the the the the state of the game notify the other user notify the UI of the other user update the UI and so we have all of that uh pipeline that is in our layer one and is entirely decentralized for the first time I think so that's that's kind of our our our project yeah yeah I mean it's very cool uh because you you take some of the core principles that have been in blockchain systems ever since Satoshi uh with full nodes and being
able to verify something and and you mentioned embedded into the wallet um the verification so I think that's a very important piece but you also are doing that on a on a per chain basis because not all users need to know the state of what's happening on some random chain I only care about what's happening on this micro chain that I I think about so this this is uh both a very composable environment but also a very localized environment and I I think the architecture calls uh for some very creative applications as a result of that so this the one one of the ideas I we having for instance that we we could decide We could decide so we have these building blocks now we can play with them you know and one way we could do
that um and we don't need to yeah and so we we could also make ourselves useful as part of a component in V ecosystem and so one way to use l is you could use l to build a decentralized API provider actually so we could scrape so users could express some uh some some indexing queries on chain on the linear chain and then that would tell our validators to index eum in certain way and then our vors would then create you know like message back the users and then we notify their wallets and then they would have the the data they ask for that are delivered to their wallet and Serv to the other part of the etherum application for instance so that one of the cool ideas you know I was thinking that is very modular so that's really in
the theme of the day right uh and uh and uh that's something that you know came out of like just composing the building blocks together awesome but yeah what you're saying is is really true like this idea of uh of um solving the problem of indexing data U and in our in our case and and the the problem with light clients that are you know like supposed to be the way you obtain the real n2n Security in normal blockchains except very few people use them because they are covers some you need to for every new kind of query you need to figure out the authentication scheme like how you do the mro proof and everything so that you actually get this end to end inclusion end to end uh security yeah and uh we're kind of bypassing this problem entirely so we
don't have ma trees in this we because the users are going to have a replica of their own small micr chain and their own unchain data in a trust environment that can be created directly awesome this is very exciting and very modular um and and yeah I mean what a great event uh great to uh great to have you here and uh where where can the people find you and learn more about Lera yeah thanks so we we just uh released our devet uh and so and so the the main website for developers is L.D where uh they'll find all the information to get started uh you know spin their first micr chain on our devet uh publish uh a bunch of applications
and start start programming start experimenting awesome very cool yeah thanks thanks for coming out man awesome it's fun yeah