[BUIDL Asia 2024 Panel] Modular vs Integrated and Web3 UX/DevEx

BUIDL Asia 2024 · March 2024 · 34:57

A panel on what modularity really means in blockchain design and whether modular or integrated stacks serve users better. Illia Polosukhin of NEAR Protocol, Austin Federa of the Solana Foundation, Yair Cleper of Lava Network and Georgios Vlachos of Axelar Network, moderated by Sam Reynolds of CoinDesk, discuss trade-offs in security, fragmentation, developer experience and why chain abstraction may matter more than the buzzword.

Speakers

Topics

From BUIDL Asia 2024, hosted by Kryptoplanet.

Transcript

[Music] well look so modularity that is a term we see a lot in crypto but really what does it mean and to help answer that question how it works with like web 3 I've got these gents on stage you know some of the top mines in web 3 and crypto so let's start with that like modularity like what does it mean and how does it work in web 3 okay yeah Happ to go first sure I mean to me um I mean it all started with Celestia right and they pushed this like modularity narrative and they've done some great Innovations in terms of making blockage more modular separating consensus from execution that we all

know but modularity has been part of the blockchain space and systems design for like forever right so uh in my mind I don't really get a lot of the times you know you see new project they launch now it's a big narrative it's like modular defi Hub or whatever it's it's hard to know what it means right um so from my point of view uh when we're talking about any system like near uh Solana uh any complex blockchain there's many different layers of modularity uh in that and we have other experts here who have built their own blockchain so I let them talk more about that uh from the point of view of Axel and what modularity means for us uh I think I'll just talk about an example of how you can build uh truly modular applications

across different chains with Axel and um actually the first time I saw such an application launching such an example was when I was reading your implementation of the Rainbow Bridge with near right and you were talking about an example where you can have unop on ethereum where a user interfaces with the unop contract but behind the scenes you can pass a message to near where you do the swap computation and then you pass the message back on ethereum and you execute the transaction right and you can do much cheaper operations uh that way right and that to me was a pivotal moment and it really inspired a lot of the things we did with Axel but I think that's how you can build modular applications kind of different from I guess how Celestia builds modular

blockchains but I think it's a big part of how we're seeing the future okay cool who wants to add to that so yeah I would say kind of modularity has let's call them levels right so it starts with you know my code is modular right I have you know Liars it's a module and this is where my code lives uh you then go to my system is modular so uh jores mentioned so near actually from the day one was designed uh by separating consensus from execution it just all lived in one project and because of this I actually it took me eight hours to integrate our execution with tendermint because like tendermint is

also a separated consensus from execution and we had execution separated from consensus and so I just plugged them in together uh and you know here's you have a new blockchain right with near web assembly and termin consensus and so that is kind of the you know system level which is like really useful when you want to you know debug things when you want to engineer your systems um now then there's the next level which is uh kind of security modularity right so this is when as you launching new chains you want to source security from other blockchain or from other partners right and this is where I would say right now kind of with data availability and kind

of execution settlement meme right separation a lot of the conversation is because the idea that you actually are able to only focus on one piece of the stack and then the rest is kind of being done by somebody else but the security of the whole system is still uh kind of like the same or you know with Aster and finally I think the other part is you have the mod modularity of the teams and incentives you know the way to think about it like as you launching your own project you can launch your own token which creates new incentives is able to hire people it's able to build things and so that itself allows to have kind

of different teams and the cosmos is actually a really good example of that where there's a bunch of teams which have their own token that allow them to build their own applications they all kind of interact and and uh share a lot of code basee as well and kind of contribute to it so that's kind of to me like the spectrum of modularity uh depending on you know different levels yeah it makes sense how about on salana what does it look like for modularity yeah you know salana is interesting because one of the decisions made very early on was that consensus and execution would not be two layers they would be the same layer and this is part of how salana is able to achieve the performance that it does now there's certainly downsides to that but there are also downsides to modularity these systems are all about choices and

tradeoffs there is no such thing as perfect architecture every architecture is downsides every architecture is upsides and it's about choosing what architecture you want to optimize for the performance characteristics of a network uh so you know Sala in that way it is the most uh monolithic chain except from Bitcoin now I think the term monolithic doesn't really mean anything Bitcoin is probably the only monolithic chain if we can use that that term but I can spin you a story about how salana a modular thesis as well you can write in five different programming languages which all compile down to something that runs in lvm and BPF and so you can write programs in all these different ways and that's a modular approach in some senses right you can have on the smart contract

level lots of interoperability between different you know modules if we want to call them that I don't think that's a useful definition of modular because it means that every blockchain now is operating on a modular framework right everyone who has multiple core teams that have independent funding sources that are all building towards the same product like is Linux modular I guess the answer is yes right but at some part there's a kernel all these modular systems when you break them down they all have critical points of failure that rely on one component and that's not a knock on modular that's just how software works right and so I think if we're if we're defining modular as there are different modules and you can do different things with them um and they

can be swapped out periodically I'm not sure that's a particularly helpful definition of modular um you know at the same time there aren't actually real blockchains today that are pulling core components from independent development teams right that the closest we maybe have is something like Bas but bass is a core contributor to optimism they're not you know they're contributing most of the code to that project at this point or at least a significant portion of the code so they're not really actually pulling from a modular stack in the way that you know you might assume like a web 2 company can say I'm going to pull in Shopify and I'm going to pull in you know WordPress I'm going to pull in all these sort of web 2 modular components and build an e-commerce website I think

we're nowhere near that today where you don't have to actually care about how these modules work and basically have your own team build and run what about then apis because the modern website has apis that power the back end so you can use a Shopify thing you know yes so we don't have anything like that in web 3 yet there's a lot of people talking about it and there's there's some folks building it but if you if you actually look at a system today and say I want to use four different components I want to have a salon of virtual machine that runs in a different execution layer that uses a different da layer that then settles to ethereum there's people building that but you know when we actually look at it most of these things are a fully vertical integrated stack that basically has the same core

development teams at each layer of the stack we're not actually seeing modularity in production yet okay wait yeah I just to add on that so we see you know different uh doctrines right in uh web 3 we seen the monolithic Doctrine within roll up rollup Centric and uh the modular thesis you know breaking it down actually to the execution settlement H consensus and data availability but uh you know when we start thinking about that in lava and codus for Celestia for bringing the modular thesis and you know pumping it to the point I think you know the there is one aspect and element uh

that is uh left behind and this is how do you get access how do you get access to all of those different blockchains um I'm sure that you're going to ask the the the the basic user of uh you know website today and no one knows the what is tcpip no one knows what version of HTTP using behind the cloud even though know know if they're interacting with the website uh is the server now based in um Eastern Europe is it the what cloud gcp AWS you have zero understanding of that as a day-to-day user and if we really want to bring the killer up for the next bull bull run and and this the cycle of adoption that

everyone here is anticipating we need to build a much better tooling for accessing those blockchains and uh I think yeah well that's that's what we're trying to do in lava that makes sense because like most people on the web don't know what AWS or Aur is or know about Apache servers yeah but it just works for them and that billion you know person uh web Community it just works for them so I guess with web 3 and crypto we have to get to the point where the tech side's not that important where it's all about the uiux is that correct I I I I think you know you define it exactly right like why more most of the people here in this room knows about RPC I guess API is a more common way but why

they need to know even about that and this is because uh the access today is super fragmented and you need to choose a node provider you need to run a no new to run your node or you need to go to a public RPC that is something every ecosystem provide and in order to break this routine you need to lower the barel to ENT for entry for DS to build on them okay that makes sense there must be some challenges to modularity right like it must not be all roses there must be some issues that come up uh with bugs security that kind of stuff with um you know speed let's talk about that talk about the challenges in modular coding don't get us started

uh yeah so I think the fundamental challenge of the current modularity wave right and as well is I would I would include in a way Cosmos kind of ecosystems approach as well is that it creates this highly fragmented experience right like although you have you know individual app chains or you have like a bunch of rollups um now as a user you kind of need to navigate all that understand exactly security assumptions and and kind of you know guarantees that every individual chain provides and there's no real easy way to do that right like right now for l2s

there's L2 beat and you kind of need to like almost like every day check in to make sure they didn't roll back something and uh you know like for example for blast today right there's like a whole note on L2 beat right now sitting there that says nobody can verify like no nobody can reconstruct the state of blast right now from the data availability so like that's a level of of like understanding you need to have when you're using this kind of um like fragmented environment and So that obviously creates tremendous you know strain on ux of the whole thing it creates obviously problems with developer experience as well because as a developer you now kind of deciding on

like a very weird Matrix of like where you hope users will converge to where you think the improvements to the underlying infrastructure will continue happening and you're kind of making it bad and like we're like it's startup and startup and startup right you're taking a risk of a risk of a risk that like you know hopefully users will come here hopefully the chain will you know continue functioning and all the underlying infrastructure all the layers underneath also will function in the right way so that is challenging but you know you also have the opportunity because if you're launching your app chain you're launching your uh rollup you have kind of the flexibility that you wouldn't

have for example with you know uh a more like layer one approach like near in salana where you cannot customize a lot of the underlying things so that's you know big trade-off and we can talk about how to fix that yeah I think that's that's a couple of great points and there's definitely positives right to modularity especially that now as a developer you're incentivized to focus on a certain part of the stock you know you can also create a token and create a community around it but at the same time you add a ton of complexity right and I want to talk about a particular example in the cosmos ecosystem that directly affects the end users right so uh in Cosmos today uh we have a few um there's probably like five components involved

in this so there's the noble chain which issues native usdc on Cosmos there's the dydx chain which uh is powered by this native usdc it's bridged over from Noble chain through IBC to dydx uh and then for onboarding uh usdc and other assets from other chains they use Axel and uh in particular an application built on top called squid and then behind the scenes you also have Rel layers that pass messages you know between evm chain and axel and then between all the cosmos chain right so all in all you have five different teams so let's say once in a while uh you know with blockchains um they complex complex system some transactions fall through right so then

the dydx team which is an amazing team most C customer Centric team I've seen in the space they're like okay we have to understand what's happening and then they go to the squid team and the squid team has to understand what's happening Sometimes they come to our team we have to go to the Rel layers that sounds like heavy friction points it is like maybe those components like would not be built without having all these like diverse teams and incentives but yeah I don't know what's the solution but it's it's pretty complex right and something we have we have to fix yeah I mean I don't want to just say the solution is one Global State machine but in some ways the solution is one Global State machine right this is sort of and you can you can believe the SL of thesis or not um

but one of the Visions here of how you address this is you build a base layer that is uh extremely fast but is very unopinionated and this is sort of a difference in the philosophy of how you can build these things if you're if you're treating the base layer as a very opinionated framework then you sort of have to have modularity on top of it in order to get to different places and different executions you know salana has a full evm compatibility layer on it through neon and that's just implemented in smart contracts but all of the state for those evm programs is actually stored on Sal there's a very funny thing where you know to get historical data for an evm program they're actually using the geyser plugin to index data

directly from the Sal of Bas layer because it's all stored in that same state and so that's not necessarily the right approach for everyone there's certainly downsides to the uh the salana you know vision of the world and one of those is that because the execution and the consensus are in the same layer it's a little bit more fragile of the system from a liveliness perspective whereas you can see was it last summer ethereum uh had a finality incident twice where blocks were not finalizing for an extended period of time but the network could keep going on the VM side right that that's an advantage of that system compared to the you know what salana has the difference there though is you can do a lot more with more limited resources through something like salana and this is where the the question of

how do you build these systems in a way the user doesn't need to know about them that's a really hard problem because is we've sort of built everything in blockchain assuming everyone knows about everything and you know when someone gets rugged the response used to sort of be from the community you should have done better research you should have had better opsc you should have you know why are we using a software wallet why weren't you using a hardware wallet and you know I I sort of see a world where we're getting into a modular framework and if you have six or seven different components and there's a problem one of those components the reason this works in web 2 is you have someone to sue right if Shopify Miss processes your credit cards and either doesn't charge your credit cards or something you have

an SLA you have recourse to them we don't have recourse in blockchain because these are all open- Source projects run by thousands of people all around the world and that's the beauty of it but I think that is the you know the key piece to address with any sort of modular thesis is how do you create systems that actually provide insurance and guarantees um when something goes wrong but without that recourse and insurance you won't have Boomers get on board right because Boomers control half the world's wealth it's a fact and they can shop online because they're confident that Visa or Shopify will have their back should they get hacked or should this transaction not work out but with defi with you know with blockchain you don't have that insurance yeah I

mean this is the 2 and a half to 4% that Merchants pay every time you use a credit card we're all paying a tax for that Insurance Fund and maybe that's the solution well I mean not not to bring back the from the morning but I kind of one of the core ideas is how like to abstract all this complexity you do need to Design Systems a little bit differently right and we had for example Adrian from manoma presenting intent-based architecture like that is an approach where as a user you don't need to prescribe hey I want to you know move through squid into dydx you know four years DC that's like issu in Noble right

like I should not need to know that um and so ideally I just provided intend and I want to trade on dydx uh and here's my stable coin that is in my wallet and there's somebody who is a professional who can handle all the edge cases who has Insurance funds who is able to you know replay who probably runs Rel layers who can execute kind of all of that behind the scene and that's I think part of the kind of moving forward as we abstracting out some of this complexity for integrated or modular actually I don't think it matters the kind of experience of providing user a way to just specify their intent to specify the end result and uh really moving the kind of

execution away from user toward more professional kind of be that market makers like or whatever solvers call them whatever you want um is a way to go forward because like I don't think any even like if I'm an individual I understand every single piece of this technology I don't want to deal with it and and I think that you know what what n is doing now with the uh with chain obstruction and obstruction the different layers it's uh it this this is the way of how you know to lower um the to increase the usability for different users and devs to build at the end of the day um you know when when we started

we've seen that uh um we need to trust a a node provider to bring us the the data right and uh what about single point of failure if the if the node provider is down nobody can get um access or you know even the account balance do do transaction and um when we started to you know Define lava with the different piece of uh we thought about the different pieces of the modularity and we realize that if lava will not be 100% available um how will user get the service you know that's the basic uh basic action the the the the RPC and that's what you know I'm super excited about uh uh a

module that we call it um constant availability and even if the chain holds you still user can still get the the top node provider and communicated with that uh and when we think about you know modularity and how it will decrease the different the different layers of um um you know increasing the increasing the the the DBS communication overall um we we have to think about that because chain will hold um some some different components will be will be broken uh but at the end of the day we don't want to pay the 2.5% of uh Insurance how's that work if the chain halts how can you

still use the daps without the chain you know keeping up with everything so that's one of the bread of butter we introduced the SDK it's a communication peer-to-peer protocol which means that straight from the browser um Lava fetch a list that constantly updated so even if the lava chain holds you still have the list the DB still have the list and they communicate directly with the providers anyway it's a lazy chain implementation so it doesn't need to be super fast and um once the transaction is uh finished or the session between the DAP and the provider is finished um every all this all the all the different

parameter are collected and goes back to the chain when it comes back okay that makes sense so I guess we can use this to talk now about how do you maintain uptime in SLA while having a very modular platform right because no chain likes to have downtime as salana knows uh and uh it's important to keep things up and online right even when you have a very complex system so let's talk about that talk about modularity and like SLA yeah for us uh I mean I think the solution uh especially when it comes to interoperability we took a similar approach uh to salana I would say where we have a single Network handling all the different connections and we're looking to make this single network uh

maximally decentralized uh and of course there's other like security mechanism like rate limits we can add on top to make it more secure uh but I think the core idea of having a full integ Network that you can trust for all your cross chain needs all the different networks is how uh we solve this I think one um one industry where I think we've seen this makes a lot of sense is when we're talking to different financial institutions right uh financial institutions typically are heavily regulated entities they do not want to work with 10 different teams right they want to work with one or two high quality teams that can provide wide globe service and sometimes we even get the question okay you guys can solve the interop ability we work with someone

else uh to launch a chain but we don't want to touch anything else right so can you guys also add an oracle which we're actually working to add an ensin oracle to acceler uh because I guess our infrastructure is very compatible with Oracle infrastructure uh anyway but it seems at least the more serious players uh in uh the space assuming they eventually come like and build uh and commercialize interesting products uh they do prefer the integrated approach and I guess we took kind of like the the fully integrated the approach of salana when it comes to tability yeah I think maybe more more principally the whole idea of blockchain is that we has no Reliance on a single you know point of failure and El a single logos

of control ideally um and I think that's uh kind of that principle can be applied at any level uh and you can Design Systems to do that even when you have for example for a rollup you have a you know centralized sequencer but uh you can have you know you can be posting for example your data availability to multiple um da providers right so there's you know near da Celestia and for example IG launching you can do it's so-called dual Quorum which even if one of them is uh you know having issues for example you can still have reliability given the avability now you can have uh uh uh M what's the leader

follower architecture uh and uh uh where the followers are reading that data of ability and have a hot swap ready noes which are can be accepted transactions um you have reliability on settlement layer because of the consensus that prefers uh kind of uh liveness so you can have kind of a system design that is able to uh deal with you know things going down you know failures in the network uh you know fail transactions Etc you know replays but you do need kind of a more sophisticated sign and more sophisticated actors to be like facing that and then on the other side you can have a simple apis in sdks that

actually abstract all that out to really allow kind of you know application developers and users not to deal with all that right you know fallbacks are super important uh you know Concept in web three I think when when I presented before the constant availability that we have in lava we also want to allow a production great services for for Enterprises for you know uh to to ensure a SLA as you mentioned before and that's how flexible I think the any type of protocol has has to be because when when we think about um a specific Enterprise that wants

the certain latency the the support um and in general the SLA you need to allow that when you defining when you uh defining the protocol itself and for example in lava we are able to uh specify a specific provider that uh the Enterprise would like to to speak with directly doesn't have to go back to the pool of different providers that and randomly choose you can uh make sure that the latency the availability and freshness of the data is um is suitable for you and maintain over a long time yeah I mean I do think there's a

component where we've kind of lost the cyppher punk in a lot of these conversations how so um slas I mean these are not slas right slas are binding contract agreements that software companies have with another we're talking about uptime targets and there's a lot you can do to hit uptime targets and there's a lot you might not be able to do but I think we forget that most web 2 systems went through periods of instability in their beginning Twitter used to crash all the time AWS used to go down all the time uh you know tsmc when they tried new manufacturing Fab techniques sometimes they just would not work um these these are all processes of getting faster better and quicker and I think that

sometimes there's a there's been a a drift in crypto towards highly regulated institutional Finance we got to get the big banks on chain and I think we' we've lost a little bit of the drive to make things performant um I don't think there's enough product Market fit yet in this industry for us to really focus on Triple level redundancy at this point in the stack um you know and this is obviously easy for someone to say from salana where like there has been stability issues with the network that being said there's a lot of things that are built on salana that are impossible to build anywhere else because the performance of the chain is just unmatched anywhere else um there's downsides to that right there there is occasional outages um but this is also

true in the L2 landscape every single major L2 has suffered outages as well sometimes they have scheduled downtime and scheduled downtime Z has downtime as well right Amazon yeah certainly and now granted something like Amazon the amount of down time they have on AWS is far lower because they have so much redundancy built in because they have Market fit they're almost post scale at this point and so that's when the reliability Investments really come in I think we still need to probably 10 to 100x the performance of blockchain in general before we really are dealing with serious enough problems that need 69 of up time okay that makes sense so to wrap things up what's the future because crypto loves buzzwords right

like every year we have a new word come through is modularity one of those words right is it something that's here to stay or well next year we have a new word to describe the same thing well we do have a new word chain abstraction so I'm just going to keep pushing that but yeah I think I mean modularity I would say you know okay it's here we H we have it going great uh now things are like super fragmented hard to use and uh uh need better coordination so we need chain abstraction so we abstract all that back and make it easy to use um and so I think that that's going to be like a you know where you sees this transition happening including I have I think spaces with Celestia about chain

abstraction uh tomorrow so so I think we we we'll see that transition happening uh over the next three months I think yeah just just to touch celes I think even Mustafa himself called the beginning the concept plugable in his lazy ler lazy Ledger Paper um um from three four years ago um and I I think that this year when with the implementation of different chains that up and coming rollups um we need to think also about compossibility and um that's this term will not go away from us yeah yeah and you know then we start building abstraction on top of

modularity and then suddenly you have to De abstract the abstractions in order to get back to the core because composability turns out it really matters and ZK technology is not moving anywhere near as fast as we hoped it would with Hardware accelerated provs and you know you just get into a a cycle very quickly where like modularity is certainly going to be a component of blockchain because it always has been a component of blockchain we've just finally put a name to it so people can sell tokens and that's valuable and useful right that that that sounds sort of disparaging but I really don't on the coin right but so so narratives are important because narratives are are a collective process of trying to figure out if the ideas we have are actually

good or not and there's something actually you know to to defend the narrative cycle in crypto there's something really nice about us all arguing about stuff before we go off and spend six years building it to realize this was actually the wrong choice in the wrong path entirely I mean you could just look at the debates on how ethereum was going to scale from massively scale you know the the current Network as one Global state to adding up to a 100 different charts to this entirely different model now you know it was very easy to just pick one of those and say we're going to build this thing but maybe that would have been I mean it turns out that what the community wanted was something very different and you don't necessarily know that till you go through a discovery process exactly yeah

I think this discovery process this open Discovery process is is kind of unique to the space and and great to experience in real time yeah for me like I don't think modularity is going to be a relevant buzz word a year or two uh down the line it's been around for 50 years right it's going to be around for for a long time but you know I don't think if I tell anyone uh you know we're going to be building modular applications in 50 years I don't think anyone will care right what people care about is to build interest in products and I think chain abstraction is what describes this user experience that we are all aspiring to right where I can go on my phone I can open up a wallet maybe I have some assets I go and type like I access an

application I use the funds on the application behind the scenes maybe there's some intense driven infrastructure that submits my transaction it doesn't really matter right as a user I should not have to think about Solana Avalanche polygon uh and yeah I will say we do actually have one area where this is true today which are deepend networks right decentralized physical infrastructure networks there are large institutions using deepin networks and they don't even know it there are users using helium mobile who don't know they're running on a crypto back call Carrier um so this may actually start off with very intense technical products before it actually gets to user products well we also have it for user products too right so I think like the thing is like it's already here it just this is also where sometimes narratives are

ahead sometimes they're behind right uh but I think like the benefit here is that um like at the end it will will we will figure out how to unite all those things and instead of having kind of a more more I would say like you know Twitter Twitter feuds uh we actually will get to yeah like hey here's product at work right and they're benefiting from this technology and you know we actually see reduction cost or like even building things that are really impossible to coordinate without this uh in in using web 3 and I think that's that's when we we don't need buzzword anymore we just want more building less trolling so you get the

last word what do you think a lot of pressure uh I think you know what we we listened before to uh the early today to vitalic about the account obstruction uh I think one of the key words that this amazing panel said before it's uh Community the community will vouch the community will decide like what are the interesting project and we're going to make sure that building that um is uh super scalable to bring the next killer up that everyone here wants to see right absolutely well guys that was great thanks so much