New Ethereum talks, every Monday. The week's conference uploads by event, in your inbox.

Loading player…

Build Starknet.anything - ETHOnline 2024

ETHGlobalWed, Oct 9, 2024, 12:00 AM

Join us for a workshop with Aayush Giri titled, "Build Starknet.anything" This workshop is part of ETHOnline 2024, an async hackathon that takes place from Aug 23 – Sept 13, 2024. ----------------- Follow us: https://x.com/ethglobal Check us out: https://ethglobal.com/ Email us at: hello@ethglobal.com

Transcript

hey guys my name is aush and I work as a devil at nethermind and I'm going to tell you about the nethermind Bounty which we have for eth online 2024 and also tell you about stocket and why stocket is a game changer in the blockchain space and why you should explore it being in web 3 to understand why starnet is exciting let us first examine ethereum's scoree scaling challenges so that would be like the block size time constraint so with a 12C block time and gas limit there's a cap on how many transactions that can be processed on chain then comes the state growth as more transactions modify ethereums Global state it becomes increasingly resource intensive for nodes to manage then comes the consensus overhead in ethereum all full nodes must process every transaction to reach an agreement this Universal validation requirement fundamentally limits the scalability for L1 then comes the data availability costs storing all transaction data on chain is really expensive and this leads to Rapid chain growth these factors together combined to create a network congestion and high gas fees on L1 especially during Peak usage of the network this is where layer to Solutions like stocket come into the picture they address these challenges in four key ways first is increased throw put layer TOS process more transactions per second by moving operations offchain second is redu reduced cost the lower fees of the transactions by batching multiple transactions into one L1 interaction third comes the maintained security layer tws inherit ethereum's security through cryptographic proof generation which in case of stock net is specifically called a validity proof finally and perhaps the most exciting one is that they enable us to do complex computation on chain this means we can now run resource intensive operations cheaply opening up entirely new blockchain use cases which still needs to be explored so stocket as a ZK rollup takes these benefits even further ZK stands for zero knowledge a cryptographic method that allows one party to prove another that a statement is true without revealing any information beyond the validity of the statement itself in Star Net's case this means that we can prove that a batch of transactions is valid without processing each transaction individually on ethereum this achieves greater scalability while maintaining security enabling a new class of blockchain applications which were previously infusible due to cost or computational constraints on ethereum so stet brings ZK rollups to life using Stars which is scalable transparent argument of knowledge here's how it works actually so stocket represents its entire State using a Merkle petria tree processing transactions off chain to update this state it then generates a stark Pro proof a cryptographic guarantee that these updates are valid this proof along with the compact state commitment is sent to ethereum for verification the beauty of the system is its efficiency a single proof can validate thousands of transactions which dramatically reduces the data footprint on ethereum this allows stocket to achieve throughput and lower cost while inheriting eum's robust security features by moving complex computations off chain but anchoring the results on ethereum stocket opens up a new possibility for blockchain applications it's not just about scaling existing use cases which are present on different layers already but it's about enabling entirely new ones that were previously impractical due to cost or performance constraints now let us dig a little bit more on how stocket is classified so stocket is classified as a Type 4 ZK evm it means it's optimized for efficiency rather than exact ethereum equivalence it's like we are reimagining what's possible with blockchain computation this approach was crucial for scaling ethereum because it allows for greater optimization and efficiency by moving away from the strict evm equivalence stocket can leverage custom built systems that are specifically designed for generating zero knowledge proofs the trade-off is slightly different developer experience compared to how you do things on ethereum however this sacrifice in immediate familiarity enables us to push boundaries of what's possible on the blockchain we can perform more complex computation handle larger data sets and create more sophisticated smart contracts in Cairo which is the programming language for stocket smart contracts all while maintaining the security guarantees of ethereum and this is why type four is so exciting it's not about making ethereum faster or cheaper but about fundamentally expanding the capabilities of blockchain Technology let me quickly walk you through star Net's transaction life cycle it's a bit technical but understanding this process is key to appreciating stack Net's efficiency so the first step is transaction submission a transaction is sent to a Gateway entering the mempool with a received status the mempool is like a waiting room for transactions holding them until they are ready to being processed then comes the mempool validation step the mempool performs initial checks like ensuring sufficient balance for fees this is similar to ethereum's Signature checking but stocket adds custom validation functions for different transaction types then comes the step three which is sequencer validation the sequencer revalidates transactions before execution ensuring they are still valid in the current state the fourth step is execution valid transactions are applied to the state failed transactions are included as reverted The Next Step would be proof generation and verification this is where star Net's magic happened the prover generates a cryptographic proof for the entire blocks execution which is then verified on ethereum L1 this process allows starnet to batch thousands of transactions into a single proof significantly reducing costs and increasing throw put while maintaining ethereum security it is this efficient proof system that enables more complex computations possible on stocket one of stock Net's unique feature is its build account abstraction unlike ethereum's EAS which are externally owned accounts all accounts on stocket are smart contracts this enables signature abstraction which means that you can customize how your account validates transactions then potential for fee abstraction which means that we can pay gas fees in different erc20 tokens then comes non-s substraction which helps us to send multiple transactions in parallel so this account abstraction built-in feature in starnet opens up possibilities for various applications like social recovery wallets or biometrically authenticated wallets for your dap so stocket uses a programming language called Cairo now the question comes why do we have to learn Cairo by a different language so let me introduce you to the features of Cairo it's a language which is designed specifically for creating efficient ZK proofs which is the key to Star Net's performance CYO allows developers to write complex logic that can be efficiently proven enabling complex computation that were previously in feasible onchain you can do all these things just by writing smart contracts in Cairo you don't have to create any more circuits or anything like that for creating ZK proofs now if we talk about how you can dive in and start learning we have got a range of resources to suit different learning styles and experience level first there's an official stocket documentation it is your goto place for upto-date guides and references for anything related to stocket it can help you start by setting up your environment then declaring your smart contracts creating an account deploying your smart contracts and then also interacting with them you can deep dive into the architecture section to understand how stocket works from an architectural point of view for a deep dive into Cairo itself you can use the Cairo book it's a comprehensive guide that takes you through the language step by step to create provable programs on stocket as smart contracts or even a standalone provable program is possible to be written in Cairo so this would be the go to place to learn Cairo from very basics for people who actually like the Hands-On approach for learning any language I would suggest using stock links where you can understand how smart contracts work on stocket by going going through all these exercises exercises and compiling them and also seeing if things work the way you think they are working other than that we also have Cairo on exorcism which can help you learn Cairo for those who enjoy a more gamified experience for learning anything node Guardians would be the best place because they provide challenges and quests to level up your stocket skills we also have a crash course on stocket which is a list of various resources that you would use during your application building on stocket so I would walk you through all the resources that are mentioned here first would be the open RPC playground this would help you understand what are the different methods that you can call from a stocket node API for example like the stocket spec version which Returns the version of the stocket Json RPC specification which is being used now the question comes how do you create these code snpp bits if that is also something which you want from us then you can go on to the crash course page and then migrate to the stocket Json RPC Builder this is where you can request for code Snippets for interaction to stocket using stocket JS or stocket go or stock net. RS for example I'll walk you through a request which we can create here to get started here I would need an AP I key that I can get from Voyager which is the blockchain Explorer for stocket now we can go to access stocket RPC get started for free and here you need to create your own RPC API key uh I'll name it as demo then we can copy this API key and go back to the Json RPC Builder this one and paste the API key here now I want want to call this particular function starnet spec version and I can just click on send request you can see I get a response here saying that the result that the spec version right now is 0.7.1 you can copy code snippet from here if you're using stock. JS if you're using stock.

go you can migrate here you will get all the code Snippets which are required for creating applications on stocket in the crash course you can also see that we have an introduction to Juno which is basically a go implementation of a starnet full node client which is created by NE mind this would allow node operators to easily and reliably support the network you can create your own Juno instance on a system and you can use that for putting the RPC request that you are creating in this Json RPC Builder apart from that uh these are the things which you can also use like the stocket CLI then stocket arent architecture documentation which is also present in the stocket documentation then the CYO book and this is the bridge that you can use for ethereum to stocket so basically this bridge helps you migrate your assets from ethereum L1 to stocket within 3 minutes but a migration from stocket to ethereum L1 can take uh maximum up to 7 hours then here are some links to the major daps documentation which are present on stocket iikubo is uh the largest amm present on stocket right now and largest transaction router is Avenue so you can use these dap documentations to build something on top of them as well then here's the link for the starnet ecosystem you can go to this to explore all other Community Driven resources that are present for stocket whether you are a beginner or an experienced Dev looking to expand your blockchain skills all these resources will help you get up to speed with starnet and Cairo we have plenty of resources apart from these which are driven by Community as well but to get the link of all these resources you can scan this QR code now here comes the most awaited part the discussion about the stock. anything bounty we are offering a a price pool of $1,000 for the most Innovative project that can be built on starnet so star Net's architecture allows for some interesting capabilities that weren't feasible before onchain so we have some ideas of what you could build around so things like Dy AI verifiable compute privacy cross chain applications or games but honestly these are just suggestions what we are really interested is in seeing what you come up with maybe it's something even we have haven't thought of yet that's the coolest thing about new tech right Sometimes the best ideas come from fresh perspectives or hackathons like E online the qualification requirement for stocket anything Bounty are pretty simple the project source code must be hosted on a code repository like GitHub the code must be your own work and you must demonstrate that your project is executable on stocket test net and is working fine completely there we are not expecting you to revolutionize the blockchain overnight we are just curious to see what kind of Creative Solutions you can build using star Net's features so give it some thought we are excited to see what you'll create remember the goal isn't to make existing applications cheaper or migrating applications from different blockchains to stocket it's to imagine and build things that weren't possible before so if you have any idea that you think could work very well on stocket we would love to see it and don't worry about being perfect or world changing we are here to help you for whatever need you have or whatever doubts you get so good luck and let's push the boundaries with stocket

Automatic transcript — names and jargon may be misspelled.