[BUIDL Asia 2022] StarkNet - Next Steps

BUIDL Asia 2022 · August 2022 · 28:17

Eli Ben-Sasson, co-founder and president of StarkWare, explains the technology behind StarkNet and invites developers to build on it. The talk covers how STARK proofs let a layer 2 scale Ethereum while keeping verification inclusive, the path from StarkEx to Cairo to StarkNet, throughput and cost goals, and the plan for decentralization with a token, a foundation and rewards for developers.

Speakers

Topics

From BUIDL Asia 2022, hosted by Kryptoplanet.

Transcript

[Applause] hi uh thank you sebastian and thank you erica for organizing such a spectacular event um i'm ellie bensasson with starkware and i want to tell you a little bit about the technology that underlies starknet and mostly to invite you especially developers or teams that want scale on ethereum with ethereum security but scale that is befitting you know real real world applications to consider learning stark net cairo joining our thriving ecosystem so the story of um starks and starknet and starkware goes

back 30 years there's been a lot of research in areas that are often called moon math to reflect that they are very sort of a little bit like rocket sciencey things that are very exciting but also seem inaccessible and feels like computational complexity and cryptography that are the underpinnings of what starknet is today and what this technology does at its core is something very desirable it gives you integrity integrity was beautifully defined by the novelist c.s lewis

as doing the right thing even when no one is watching and when our data is held by others and means so much in our digitized world today it is very important for us to know that the right thing the right computation is done with our data even when we are not watching and even when no one we trust is watching and this ability of knowing that things are done in the right way even when no one is watching is exactly what these 30 years of deep math have shown that can be done so our technology starks gives you integrity

now how is this connected to you know blockchains or biddle well this part involves a lot of hard work and engineering and development that has been done um initially by the team at starkware and now inside the starknet ecosystem so taking uh this marvelous technology cryptography and math and converting it into a system that is usable by everyday users involves a lot of very hard work and it's starkware and i think also at starknet we are i think the things like

marketing and storytelling are not our strengths our strength is in working hard and delivering uh usable code and that's what we've achieved and today this technology is the largest source of scale on ethereum today tens of millions of nfts have been minted using this technology on ethereum hundreds of millions of transactions and hundreds of billions of dollars on l2s have been settled by this technology thanks to the hard work that made this moon math a reality and now i want to give you some more details and especially i want to focus on there's

one thing that we need to improve which is decentralization and this is going to be uh also the focus of this talk so let's go back to the essentials and and you know the premises of blockchain and the way it disrupts the world that we know so this is the current state of affairs right on the left we have the conventional model that we all know from let's say banks and pension funds and health care systems where all of our data is maintained and computed by trusted central parties and blockchain its main disruption so blockchain does everything worse but for

one thing that it does different and better and that is in basing trust on an inclusive property where everyone is invited to come and check the integrity of the system so as a result in the case of of a single central trusted party you can also trust a very big computer and you get something that is fast but the way you account for its integrity and check and know that the system is doing the right thing well this is not done in an inclusive manner you and i cannot check the integrity of the banking system there there it's an exclusive thing there are certain parties auditors regulators that are

entrusted with this task but in blockchains everything is very inclusive we are all invited to be part of the nodes running the network and checking that everything is fine this is terrific but we pay with scale so blockchains are slow but inclusive whereas the conventional world is fast but exclusive and the big challenge is how do we get the best of both worlds how do we get things that are fast have large scale but are still inclusive under the same principles where integrity is based on things that we can all check and verify on our laptops how do we get this big scale so one thing that is not a good option is to increase the gas per block or the

scale you know the block size if it was bitcoin what would happen is that slowly the system would devolve into a very small number of big nodes and you and i using our laptops will not be able to track what's going on so this is not a good option this would fall back this would make the new world disruptive world look very much like the old world so starks offer a better way a long-term future-proof way to solve this problem and give you fast inclusive systems under the same security premises as blockchains were operate today so if you think about ethereum so all of our systems are deployed on ethereum we are a layer two on ethereum and let's

see how things look today so if we're going to use ethereum as a layer 1 we're going to allow all the nodes of the network to process each and every transaction and that's how we get integrity right everything we just naively re-executed on all nodes of the network if you use one of the stark based systems you do something else you take all of the transactions but instead of asking each node to process them you allow an off chain big computer to process these transactions however after processing the transactions that big computer must produce a mathematical cryptographic

proof of the integrity of the computation and it sends it to the blockchain and then all nodes of the blockchain instead of processing the transactions they just verify the correctness of the proof and then they will accept a change to the state of the system so this is how starks work today this is how we've minted tens of millions of nfts settled hundreds of billions of dollars and ran hundreds of millions of transactions all of them with integrity the point is that the math and cryptography of starks prove to you that the right thing was done even when no one is watching so if we for instance starkware would like to for one

of our customers let's say immutable for minting nfts or dydx which settles for which we settle um perpetual trading orders suppose we wanted to do something that is not the right thing it would be impossible for us to generate a stark proof that is supposed to attest to this invalid state transition it is impossible for us the math and cryptography prevents us from being able to create such a thing and this way instead of asking the nodes of the network to process each and every transaction we simply ask them instead to verify a stark proof and then accept a change to the system

so crucially there are no trusted assumptions about approver anyone can run the prover you can ask darth vader to run the prover and you can still trust the result of the computation the other amazing thing about this technology is that verifying a proof is exponentially cheaper than running and processing all transactions that are asserted by the proof in particular something we do day in and day out many times today in our production systems is take a batch of transactions that if you try to settle them on the blockchain or to run them

through the blockchain naively you would probably have to pay upwards of 5 billion gas sometimes you know 10x more instead of that we generate the proof which verifying it costs around 5 million gas give or take and thereby you achieve a factor 1000 sometimes it's 10 000 x better scale and this is not some promise of something that can be done tomorrow this has been running in production for more than a year over multiple systems this is the reality today and it is the only l2 scaling solution in which the core technology that supports its security is

running as promised today in production the only one so a little bit about starkware and the starknit story starkware is a company that is four and a half years old um and over these i just want to mention four major milestones initially we created we took the math and worked very very hard to build by hand a system of constraints mathematical constraints that captures the settlement of transactions and the minting of nfts and things like that um and this was very hard work this was the first thing we did and this is the star kick system it's a standalone layer two for things like trading and minting of nfts and assets and perpetual swaps and

things like that then the team realized that trying to scale on this and write more and more efficient code is not sustainable so we need something that works a little bit better in terms of feature velocity that we can add things securely and safely and we created a programming language that abstracts away all of the math and cryptography and just lets you write things as a developer and this is cairo and we generated it because we needed for internal use to be able to build better and better systems and indeed we did that and built better systems with more functionality and we're keeping to do this keeping uh

we're continuing to do this but we then realized that it makes sense to open up this framework that we've been using this curing complete programming language for all of the world to use and we even need to make it decentralized and allow everyone to build on it basically making it a sort of blockchain of its own a layer two and that is starknet so starknet is a layer two validity rollup based on starks offering the whole world the scale that is given by the math and cryptography that is starks and from now on i just want to focus on starknet and tell you what it where it is at today and what comes next and i hope some of you will be interested to learn

more about it and maybe join the ecosystem so starknet we announced it roughly a year and a half ago half a year later we already had testnet two months later we deployed it in alpha today it's running in alpha and just like two weeks ago we announced the continuation of the decentralization uh part so there's a very useful set of tools today there's a test net there's mainnet in alpha a lot of teams are deploying on it if you're a developer please look into it a lot of tooling a lot of documentation to start working there are three phases uh that we've all of them you know our focus

changes over time first we wanted to have feature completeness and this is something that we're still working on um adding better versions of the programming language more tooling the second phase that we're in right now is delivering higher throughput and higher scale we hope to reach 10x the throughput of ethereum at a cost per transaction of one percent of ethereum's cost within this year within 2022 and if you know a little bit about starker you know that when we make announcements and promise things we usually stand by schedule or a little bit earlier than that i know it's not that common always in blockchain world but we

stand by by our word um the third phase that we just announced is the continuation of decentralization which involves a token and a foundation and i'll say a little bit a little bit about that but first the stark knight culture today is a self-selecting one so starknet as i said requires hard work and we at starcore are very proud of the fact that we excel at delivering high quality uh production grade products we we focus on that unless on you know telling stories marketing and twitter presence but so maybe you didn't hear so much about us but that's because we're busy building and working unless

uh you know talking so um the nature of the beast is that because it involves hard work and is very cutting edge it involves the kind of builders who like to do things like this they like new technology that has great potential and can and and even though it may be rough around the edges and the kind of developers that we have also are the kind that say if i need something and it doesn't exist i build it so there are a lot of builders out there a lot of separate teams that are part of this ecosystem and it just seems to be the case that the kind of ecosystem we have has a lot of folks that are very curious very bright open-minded supportive accepting and

it's a worldwide community all around including in these regions there was just i think the very first net meetup in malaysia and there's going to be events here you can you know search for them throughout the week and later on so there's a shamans is our version of magicians and you know core developers there's uh you can google all these things you can look for start knit tutorials written by multiple independent teams around the world there are workshops and hackathons again being done by teams outside of starkware meetups conferences newsletters informational websites all you need to do is just google starknet and start uh enjoying it the one thing

you should be aware of is of course scams always abound so you know if you see anything about token and airdrops and so on that doesn't come from the three blogs that i'll mention in a minute uh beware of scammers right that's not uh from us so there are more than a thousand developers that we know of that are working full-time on starknet writing in cairo and writing tooling around it we handed out more than 200 grants to all kinds of developers these are grants and you know basically in fiat currency there are more than 400 github repos 20 companies that we know of have raised the total accumulated amount of 100 million dollars from various visas and investors focusing

only on building things on startnet so this is uh it seems that also the investor world seems to be uh hopeful about this area there have been more than five hackathons i think we should stop putting a counter there because it's hard to even track and a lot of education going on by again separate independent teams outside of of starcore's effort so now i want to tell you in the remaining part about the token and the foundation and next steps because this is something we just posted two weeks ago you can take this qr code and start there it's a three part blog series that goes into a lot of details about our plans and that's what

i want to share with you for the rest of the talk our plans for decentralization so the way we thought about it is inspired inspired by it's not exactly but it's inspired by a problem that starcraft faced early on in its career as i said we came and said okay there's this amazing moon math that is not yet implemented it's core infrastructure that allows scale and solves the problem of integrity in a better way in a future proof way and it needs to be part of all blockchains it needs to be some public good so he said we thought that our business model as a company would be that we deploy starks on chain x and we get token x

as part of uh as part of this deal but the problem we noticed early on is that change to chains you know blockchains just don't work this way they don't you know they're usually the foundation the way the the system works is not built or it doesn't you know factor in developers that come later on uh often it factors in the early team and things like that but like if you come two years later um there isn't a good mechanism to to you know give you a way to build and and be part of the system inside the token model so we moved to other things uh which is how stark x came about in stark net but now when it's our turn to define uh and design token um dynamics then we were

inspired by this problem that we had and we wanted to be the case that if you build the technology even in the future you get tokens automatically as part of the protocol so developers are getting and will get native tokens of the startnet system for the work that they are doing in advancing startnet and because of this both the governance decision and also the operation of the proof of stake system that is stark knit will be always bringing in in a way that is inclusive new developer teams that are doing valuable work for it and this way we we have inclusivity and upwards mobility and the ability to join

the network and be rewarded for work by it into the future so these are the things that are underpinning our design so we announced that we'll do that we'll have startnet will have both a foundation and tokens so why foundation the foundation's mission is to maintain starknet as a public good something that is non exclusionary and non-rivalrous we want the foundation also to develop test and implement community decision making processes that's its mission the token is needed in order to first of all define

and identify startnet as a community it's needed for governance for influencing decisions that impact starknet and it's also needed and this i'm going to spend a few more words about later it's needed for paying fees for work and these fees are going to go to developers for the work they're doing and also to operators of the system so the foundation is going to be funded by a one-time grant from starkware and it's going to receive slightly upwards of 50 of the tokens and details on the foundation are going

to arrive soon the token is going to be required for influencing decisions for instance voting on upgrades to the start net operating system and this will start very soon it's also going to be used much later on for paying transaction fees for transactions on starknet will require that and also it will be needed for staking in order to be part of the proof-of-stake based mechanism for electing the operators of starknet in starknet we have both sequencers and proverbs stark provers and we will ensure that there is code

source available code usable for everyone inside starknit to operate as a sequencer or as approver so inside the blog post we've that 10 billion tokens have been minted and roughly the left goes to which is roughly slightly less than 50 percent goes to previous parties and um roughly 50 goes through the foundation to uh community and to developers and so on and i want to say a little bit more um about specific parts here i also want to mention that these 10 billion tokens are

just part of the initial token allocation and there will be more minting ongoing and and as common with other blockchains later on so now i want to focus just a little bit on some of the things inside so first of all core contributors include this part which is roughly one-third includes uh stark net star queer employees and consultants everything on this side comes with a four year lock up and one year cliff with gradual release so that things are aligned the incentives of of those working here and the um and the network and um we also have this part also

covers a large and growing set of developer partners of stark net uh consensus open cephalin lambda classes and the list goes on and on so this is the part of the folks that are building that are already known to the ecosystem and have been allocated tokens um of the 50 percent that goes to the foundation 18 are going to go to the community of users both through a provisions mechanism to basically reward users of the technology and those who are in the in the area of supporting decentralized blockchains and operating

them and also there's going to be a rebate mechanism for um basically when people are moving from other blockchains or layer ones into starknet offsetting some of the costs the l1 cost that they that they pay another thing developers first as i said so roughly 45 are allocated to uh core contributors grants and also in addition to that fees and ongoing minting is going to go to developers in addition to going to the operators of the network and i want to focus on that now so developers are doing the work needed to build maintain and improve starknet

and we want them to get start knit tokens for the work that they are doing so that they one can influence the stark net governance because we use the token for governance decisions and also so they are the ones operating it because it's a proof-of-stake based system so we want developers to be invited to participate in both these things make their voice heard and operate the system and be rewarded for it now here there are two kinds of developer classes there are the developers whose contributions and value can be measured in some way by the stark net system for instance if you wrote a smart contract people will people who like it will be paying

fees to use it and we can measure in an objective way how much value users are assigning to this smart contract there are also the very important class of developers who are writing things that are in the background where the stark net system cannot measure their contribution these are the core developers running writing software for provers for sequencers uh infrastructure and things like that so what we're going to do is that things that can be automatically measured by the startnet system are going to get the developers of that technology are going to get automatically tokens for their work so a fraction of the l2 fees paid for smart contracts is going to go

to addresses controlled by the developers of those smart contracts and likewise a fraction of minting of new issuance of tokens is going to go to developers of smart contracts to basically cover for a portion of the l1 fees that are paid and burned on ethereum for these things core developers are going to get by a more human discretionary mechanism but we want it also to be deeply influenced by the developers at the rations that they are getting tokens for their work the core the smart contract developers so developers receive token grants before any community or user community rebates and provisions go out developers will receive a portion

of fees and minting to compensate them for their work to give them a stand governance to allow them to operate the system and to encourage newcomer developers to do work on starknet hopefully this will make starknet a public good like ethereum and then starknet will scale ethereum to meet global demand and because starknet is a layer two of ethereum and if you're on ethereum you know rainbow's called for so you know we're all happy and there's a rainbow and i just want to take a zooming out and say just summarize everything that i talked about and then i'll have time i think for a couple of questions so there's this new infrastructure blockchain that basically bases trust on an inclusive

and decentralized network of nodes this new technology requires some new um make some new challenges poses some new challenges and we took very old and very complicated moon math and showed that it can help scale this network it requires a lot of work to show that this moon map can actually help scale and culminates with starknet which is this open ecosystem that everyone can use to scale ethereum today uses and i urge you to join um the fast-growing ecosystem of developers building on it which is starknet and if you want more information so i'll be around here and

also ben from uh starkware who's you know with a wear blue shirt is also around please come to us and talk to us we'd love to you know show you how to be more involved so thank you very much and if there are any questions happy to answer you