DeFi, cloud computing & (de)centralization by Vitaly Yakovlev (ZKX)
Nethermind Summit Istanbul 2023 · 7 Dec 2023 · 21:23
Vitaly Yakovlev of ZKX describes building a decentralized, permissionless limit order book on Starknet and the problem it exposed: most DeFi still relies on centralised indexers, RPCs, front ends and cloud servers. He sets out ZKX's architecture, including its app chain, bridge and account abstraction, then proposes a decentralized computation layer for censorship-resistant applications and invites collaborators.
Speakers
Topics
From Nethermind Summit Istanbul 2023, hosted by Nethermind.
Transcript
thank you what whatever you expect it's not going to be it I promise uh right so yeah uh very very briefly I'll talk about how all started what it GES and in general what we do uh many many years ago 3 years ago uh we had idea of uh building U something that we've seen an empty nation in the space uh my experience my background is in Tech but also I used to trade and uh the it's my it's my home T so I I know how to identify problem when I see one and the problem that we we've identified the problem we've seen is when we talk about
defy in general or any decentralized exchanges it's it's difficult the it's always you always have problems with uh ux it's it's comar it's not it's not ideal in comparison with s exchanges or normal Trad f the assets offering within the Dex and Defy is General tricky but also on ramping and off ramping is is super tricky because well that's Define and also for initial users for d for original users and Traders the decentralization is one of the key decisions in terms of where they want to go where they want to trade and if is you think just an empty empty words
we've seen what happened with FTX um everyone thinks that blockchain is decentralized everything that if you say defex decentral but it's not uh at the same time when we work in the trading the AML models are okayish for some retail users but when we talk about institutional investors or high frequency trading because of the slippage because of theity issues that's always a problem uh on top of that um now I think everyone recognizes the the importance of of self custody I don't think it was important for everyone else few years ago but now everyone knows and in general dexes and
defi we we will say that we are too early in this space but Defi and Dex are for a very long time used to be almost like a toy rather in comparison with strii all Cal changes so 3 years ago we identifi that there might be a solution that we want to try on uh and the initial initial idea for GX was that we want to build the decentralized limit order book and I will explain a few things here decentralized because it has to be decentralized limit B because that's the only way to trade without massive slippage and no Institutional Investor will ever trade on amm on scale the um it has to be uh multi assets so not your traditional uh crypto not your
traditional uh exchanging pairs it might be uh real world assets it might be some something something new um the ux has to be on par with big boys so we talk blockchain we talk binance the ux of typical binance interface is incomparable with any any any de or Defi and I'm not talking about UI I'm talking about ux the experience you have to go through in order to start trading the um what else high frequency trading you talk uh onchain you talk blocks not really possible but it has to be there if you want to compete with traditional uh
exchanges obviously initial idea for us was to build everything under the governance of Dow because uh we want to build a protocol that can just fly without us that was our basic solution for the problem so what exactly we had to have we have to be trustless trustless means that whenever you trade whenever you have your funds you don't need to trust your provider to platform to to exchange you have to rely on something that's trustless decentralized whatever you do it's not a server that someone can plug in plug out switch off throw away so it has to be decentralized in a way that no one is in full control of of of the system of what's going on in the system
permissionless here means that if we work in in defi space and we say that we are actually decentralized Finance it means that any Trader can say well you have these 50 assets but I want to bring something new so the things that are happening with the platform they have to be permissionless so anyone can bring something on the platform and everyone can start trading on that and it comes with the additional requirements of limit of the book so it's very clear what we what we want to have um and then 2021 we've hit a massive go whatever we want to have we know exactly what we need what we need to do we need to have this centralized permissionless limit AUD book but when you work with audiobooks they have to be
fast decentralization is not always fast you have issues even with basic things like liquidation because there is trust issue there is BAS execution so idea in in principle is great let's do binance but in in truly decentralized D5 way idea is brilliant the the the problem that the tech did not exist still doesn't exist what I mean here is smart contracts let's say let's start with smart contract we want to do the high frequency trading in principle you have Smart contracts but if work in traditional ones the smart contracts won't give you required density of Trades leave the block meeting time all the limitations not really possible then
we've figured out that well rl2 is a good idea for us so we' start building on stock net it has better um better ux in terms of the transactions lower cost which is again important if you want to be full on chain so good start smart contracts let's sck the box kind of all right The Limited computation um when you work with um why why most of the dexes have very limited amount of assets because if you bring a new asset you cannot guarantee the liquidity for this asset but you also you can guarantee the volatility of this new asset which means that traditional things like for example funding rate won't be sufficient in order to
calculate these new assets but if you say well fundamentally we are permissionless which means a asset which means that some assets won't fit within the funing grate criteria which means that we need to bring something new and we need to do a lot of calculation for this new asset but also we say well it's not am it's just not L limit a book limit book has a lot of data has a lot of matching a lot of computation that simply either doesn't fit into the par Paradigm of normal systems or it will be super expensive because well imagine putting every position on chain first of all you won't be like by Community because you in blood don't change but on top everything that's generally not a
good idea and the last but not least everything that you work with today about smart contracts is actually not decentralized that's a big statement but think about it indexers rpcs are they decentralized do we know any anything that is truly decentralized about contract frontend is to some extent U even react you can compile the static files you can run the static files but anything that needs a calculation is is not decentralized so if you build something right now that requires a back end it will be centralized if you work with any third party provider it will be centralized so even when you say well every defi is decentralized realistically speaking
there is always a Third Way provider that's sit somewhere on AWS at some server that can be switched off so effectively it makes your system not really decentralized so that was the the state of the um of the ecosystem in 2021 and then we start building that was roughly two and a half years ago uh what what have we started with um trustless permissionless and decentralized application layer we need to have lots of calculation computation it needs to be proed somewhere so we've decided that it should sit on top of the uh star net uh we need a lot of computation power and we need to have
some here I use word o chain as something that is not executed in traditional on chain like L1 and also explain what I mean later but again we need to have ability to computate something that doesn't see within the traditional L1 and L2 also you want to have public setup for the trading sometimes you want to have a private setup for the trading so these were the the initial agenda for the engineering team for the business for everyone and then we start building what exactly that was the initial idea of the architecture we've decided to introduce and we've decided to to build on the base layer we have Stark Nets as our
single source of Truth as the way where we store the data where we have the liquidity on top of that it has the zkx subchain again I'll talk about upch a bit later on top of that on top of zkx subchain we have decentralized limit aut book we have uh different data layers because again if you say that you're permissionless and you want to be able to bring any type of assets to your trading platform it is very difficult to trade without a price I've tried not easy if you need to bring a price for a new asset it means that you need to procure this data somewhere normally it is know you use data Oracle but when it's unknown asset even when it's known asset it's difficult because
again two years ago we came to chain link and said guys we want to have access to every asset well it's not really possible because that's not what we provide on chain and for asset that we do provide that we want to provide for you it will take two three months so arbitrary data procurement doesn't exist on top of that we need to have the the some governments because again we are ideally fully driven by Dow and because we sit on the Stark net somehow we need to have the liquidity bridge between different networks and Stark net and um starway our that's our Universal l12 L2 Bridge aart of starway there is only one
official uh bridge on Stark net on the suppos E and usdc we are Universal Bridge we have to build Universal Bridge why again because it can be any asset that you might want to trade and on top of that you have for for D you have metamask for L1 you have aritex and bra for L2 but also you have what we call ZX account that is the integrated uh account abstraction account that sits on topx and gives you access to everything you do in the system and then we've started building and releasing we start with release of the Adaptive balancing rate that is the our versional funding rate
and then and then again we've launched the test net uh in March this year we had little over 65,000 Traders we've generated 1.2 billion um demonstrated very good CPS in the system and then we relased again we Zex account and then again we've announced the um up chain so two years of building something something something and through these two years we have been talking we giv this talks about zkx and up chains and abilities to defy and deck and we've talked and we've talked and we've talked and we've talked and the thing is that every time when I'm on stage explaining how we what we've decided to do and how
we do this every time we have someone coming to us and saying whoa that's super cool you I I want this as well can can I have it because I want to be decentralized so I want to have something that is not centralized I want to have my I have a game and I just basically I want to have the front that decentralized I want to have the the image generation that is decentralized can I have it or well there is like I know these guys they really want to be the prot is completely run by da but it's not possible because if they leave the no one will pay bills for the AWS so it will die and what we we do and it's always AWS and it's always Google clouds and and everything else and effectively
every dile we have right now they are in one way or another actually are centralized so the title of this talk is decentralization because on the paper on the surface everything is decentralized by by default but realistically speaking nothing is and this is a problem and smart is only part of that so for these two and a half years we always been talking about this problem we've been building and we always had developers coming to us and highlighting that it's not just us it's I'm not being menel it's not me trying to build something that no one actually needs it's apparently a well recognized problem however when I said that defi is not fully decentralized and nothing
decentralized I had to few smirs in the audience here because they by default reactions yeah everything is decentralized uh so at some point we have realized that maybe there is a bigger picture and uh we had a new problem that we managed to Define that's dependency on uh centralized cloud computing uh like AWS like Google um is known and well recognized within the community it's no one really talking about but it is does truly truly limits whatever everything that happens with the DBS and in general was within the blockchain at the same time ethereum ends varation of have fundamental
limitations of of what can you compute it's either impossible or it's prohibit expensive if you put any intense computation it's just not doable on top of that if you need to work with big data like order book or you want to build a DAT L for analysis for your tail WIS for the prices of fets it's not actually possible and this is really mindboggling because we live in a world where everything is possible and if there is inial requirement it will be served there's the demand and Supply yet the industry for cloud computing is 600 million globally per year and yet we have AWS we have Google clouds and we
have no alternatives to that I'm not even talking about s persistence and and and stuff like that it's just it's just not there so solution we we propose is a verifiable uh cloud computing that is sh shes U between different participants that will utilize it the results um are validated and verified with with CK proofs um effectively we're trying to extend the ethereum to become to to have a layer for etherum where you can computer store the big data so now what we do and that shouldn't be my business because my business is defiant txas right now what we do we building a a
thing where where we're trying to build a a new rollup architecture that will provide verifiable uh cloud computing uh for any decentralized applications for ethereum right we trying to use the ZK proving for that toy computation um and effectively we want to give developers a way to scale their Solutions and to have something to replace a Lambda or or gcp and we want to give something that can be run on permission client so anyone can come run the noes and then this will be created in a fully completely decentralized information this way so ultimate goal is to have something where you can run arbitrary computation any
any arbitrary computation any sort of application can can run it with the set of parameters um there are three three three things we obviously have the computation we have consensus or we have proving and we have two and half minutes left somehow so try to be either I'll try to stay here for another hour I'm really sorry in general three things are computation consensus improving computation cross netor computation supports verification of results we have the multiple computation as an option so you can run massive computation on top of the system consensus here used for we we have our own house consensus built on top uh of not on top but it's our take
at at raft so little selection uh that basically prefers to have the the fast delers um we have ZK proofs to store either within our system or or outside of it the overall conjecture is relatively simple you have request either from L1 or from an L2 it gets to the node Network it is taken by the dispatcher dispatcher nodes and dispatcher cluster are defined in the dynamic wave for EPO you have the nodes that do the computation this computation is provided back to the uh consensus noes they validated verified and put back to the original request as well as the internal
internal Network I have no idea what's happen this time so I'll be right good so in general what we're trying to do is we're trying to build something that would enable every application to be truly decentralized information this we trying to create if zkx in my mind is competing with bance and I'm not sure they know that but in my mind we Doo because it's not interesting to compete with with just the D5 we want to have the same experience as as big boys then this thing kind of trying to replace AWS in gcp in in a very interesting and weird
way but if if we succeed then basically we'll have a layer where any application rpes indexes front end some computation for the uh any type of characterization can run in the way where it's sensor persistence and it's permission and it's important because obviously we we privileged to be here where we can work with any data but there are lots of places where it is limited either by the governments or by the framework or by the legal structure or but not for so why I'm here because I believe that it is possible to do it and I believe that the thing that we are creating now became bigger than zkx itself zkx is a it's a good business
it's a it's a good there's still 20 minutes to run don't worry um dkx is a good business and we continue to build zkx and there are lots of things and the road map is massive but I believe that the thing we're trying to create for the computation there is is even bigger and we are looking for Co co-founders and that's a Twist that's no one expected I'm not here to uh push dkx thex doing all right I'm here to to talk about the problem we have to talk about the solution we have and I want to say that guys if you think that this is important if you think that decentralization censor persistence ability to run any application this way is important if you
think that this potentially might do next wave of apps but what's even more important it will give the power computation power to unlock blockchain for the next 1 billion of users perable 1 billion of users then maybe there's one thing that needs to be done and I believe that it is doable because well when you set your eyes on on on targets everything is doable so if you think it's interesting for you if you think there is some minutes I know we only had 20 I think it's like what five minutes but if you think that is something that you might be interesting in if you have interest in decentralization in permission in computation please do talk to me email
Twitter whatever you know me probably as it pum if you are in any NE mind or stock uh groups um yeah I think that it needs to be done and hopefully it will be done thank [Applause] you
Related talks
- From Uniswap to Ekubo—The DEX Uprising with Moody and Benjamin Sturisky
- Why builders are flocking to interchain DeFi and how users can reap the benefits
- Cross-Chain Arbitrage
- Enabling Ethereum-Native Orderbook Exchanges With Novel Zero-Knowledge Construction | Vladimir
- Why DeFi Matters on Ethereum
- DAPPCON 2018: Batch Auctions on Plasma - Alexander Hermann (Gnosis)
- Liquidity Availability Layer
- Future Challenges of the Web3 ecosystem
- ROLLUP: 1st Week of February (ATH for $ETH & $DPI, Logan Paul NFTs, HashMasks, Saylor Conference)
