Shouryam Kumarforcrazydev.hashnode.net·Jan 4, 2023Installing Cairo in your local MachineAs the official Cairo blog post suggests, "Cairo is the first production-grade platform for generating STARK proofs for general computation. It is Turing complete and highly effective". Cairo is essentially of great help for having large-scale execut...Discuss·16 likes·229 readscairo-lang
Adegbite Ademola Kelvinforadegbite.hashnode.net·Feb 14, 2023Interacting with Cairo smart contracts using starknet-reactSmart contracts on the StarkNet ecosystem are powerful tools for building decentralized applications. However, without a user interface, they can be challenging to interact with. This is where the Starknet-React library comes in. With its user-friend...Discuss·16 likes·103 readsstarknet
Adegbite Ademola Kelvinforadegbite.hashnode.net·Dec 22, 2022Starknet: A layer 2 scaling solution for EthereumIntroduction The three key desirable features of a blockchain are- decentralization, scalability, and security. Most blockchains successfully achieve two out of these three as it is difficult to check all of these features, this is referred to as the...Discuss·4 likes·207 readsBlockchain technology
Adegbite Ademola Kelvinforadegbite.hashnode.net·Feb 14, 2023Interacting with Cairo smart contracts using starknet-reactSmart contracts on the StarkNet ecosystem are powerful tools for building decentralized applications. However, without a user interface, they can be challenging to interact with. This is where the Starknet-React library comes in. With its user-friend...Discuss·16 likes·103 readsstarknet
Ankit Kumar PalforTraversing Starknet with Yangitcairo-yangit.hashnode.net·Jan 24, 2023General Intro and SetupSo let’s start off with what is Starknet, StarkNet is a permissionless decentralized Validity-Rollup(often referred to as ZK-Rollup). It operates as an L2 network overEthereum, enabling any dApp to achieve unlimited scale for its computation– withou...Discusscairo-lang
Shouryam Kumarforcrazydev.hashnode.net·Jan 4, 2023Installing Cairo in your local MachineAs the official Cairo blog post suggests, "Cairo is the first production-grade platform for generating STARK proofs for general computation. It is Turing complete and highly effective". Cairo is essentially of great help for having large-scale execut...Discuss·16 likes·229 readscairo-lang
Adegbite Ademola Kelvinforadegbite.hashnode.net·Dec 22, 2022Starknet: A layer 2 scaling solution for EthereumIntroduction The three key desirable features of a blockchain are- decentralization, scalability, and security. Most blockchains successfully achieve two out of these three as it is difficult to check all of these features, this is referred to as the...Discuss·4 likes·207 readsBlockchain technology
Peter BlockmanforPeter Blockmanpeterblockman.hashnode.net·Nov 8, 2022Cairo exercise: Polynomial EquationProblem Write a program poly.cairo that computes the expression: $$ x^3 + 23x^2+ 45x + 67 = 0, x = 100 $$ After the program ends, the value should be at [ap - 1]. For this exercise, you may assume that the fp register is constant and initialized to...Discuss·104 readspolynomial-equation
Peter BlockmanforPeter Blockmanpeterblockman.hashnode.net·Nov 8, 2022Cairo: compute Pedersen hash of an array of felts challengeIntroduction Cairo provides a built-in hash2 function to calculate the Pedersen hash of two felts. In this challenge, we will recursively compute the hash of an array of felts. The challenge ex_hash_chain.cairo // Task: // Develop a function that is...Discuss·55 readspedersen-hash
Peter BlockmanforPeter Blockmanpeterblockman.hashnode.net·Nov 6, 2022Cairo: pattern of bits challengeIntroduction In Encode's Cairo Bootcamp, there is an interesting bit manipulation challenge. It took me some time to figure it out. In this article, I will discuss the challenge and the solution. The challenge ex7.cairo %lang starknet from starkware....Discuss·70 readscairo-lang
Peter BlockmanforPeter Blockmanpeterblockman.hashnode.net·Nov 5, 2022Cairo lang: Sum even numbers in an arraySetting up We use protostar to set up a simple Cairo project where we can implement and test our function. protostar init sum-even Algorithm Cairo does not have a standard for loop built-in. To sum even numbers in an array, we use recursion. main.c...Discuss·52 readscairo-lang