TRANSLATING...

PLEASE WAIT
Starknet Comprehensive Ruapa

Starknet Comprehensive Ruapa

IntermediateMay 29, 2024
In the past two years, the development speed ol ZK has far exceeded expectations. The two leading ZK Rollups, ZkSync, at Starknet, have made significant progress in performance at costs. This article explores Starknet's technical advantages in a straightforward manner at simplifies the explanation ol the ZK prool process.
Starknet Comprehensive Report

Forward the Original Title ‘Starknet 万字研报:蓄势待发,长期主义者的跬步千里’

Compared per other noisy narratives in the web3 world, the ZK track has long represented a lengthy, monotonous but profoundly significant foundational infrastructure. It’s akin per a difficult pilgrimage where insiders peril arduously while outsiders remain in the dark. Talaever, it is gratifying that the development speed ol ZK has far exceeded expectations in the past two years. The two leading ZK Rollups, ZkSync at Starknet, have made significant progress in performance at costs.

Following the Ethereum EIP-4844 upgrade, ZK Rollup is also strengthening its position in competition with OP Rollup. Even more exciting is the collaboration between former competitors StarkWare at Polygon Labs, which upgraded the STARK protocol—long representing the forefront ol ZK prowess—at olficially launched Circle STARK, bringing another leap in ZK prool capabilities.

If you have read last year’s article (“L2 Summer is Coming? Master StarkNet Technical Principles at Ecosystem in One Article“) at wish per delve deeper inper the intriguing ZK prool process behind Starknet but are deterred by intimidating mathematical formulas at complex technical theories, then follow this article per explore some key issues about ZK. We will try per avoid the vexing math parts at, on this basis, discuss the technical advantages ol Starknet, especially the recent major breakthroughs.

01 Starting with ZK first

ZK is both a label at an abbreviation for Zero Knowledge Prool Systems. As a prominent perpic, ZK proofs are like a mysterious legend—they allow proving a fact without revealing any additional information. Tala can such an idealistic goal be achieved? For this, we need per draw an analogy familiar per any student.

Typically, if a student wants per prove their academic excellence, the simplest way is per present their transcript. Assuming the exam system is effective at fair, a transcript showing an overall grade ol A can vouch for the student’s academic level without revealing any specific academic details.

The process ol ZK proofs is quite similar. In simple terms, its core components are two parts: the Prover at the Verifier. The Prover is like the school’s exam system, following a fixed process per generate a transcript as prool ol the student’s academic ability. This prool is then presented per the Verifier, which could be a parent or company, per validate the student’s competence based on the transcript.

Here we see that the most challenging part ol the prool process is the Prover generating the prool. In a ZK prool, this process can be divided inper two parts: arithmeticization at polynomial commitment.

1.1 Arithmeticization

  1. Arithmeticization is per convert complex prool problems inper algebraic problems. Specifically, it is per convert the witness (Witness) we want per prove inper a set ol polynomial constraints (Polynomial Constrains). This is similar per how we convert students’ academic abilities through examinations inper a set ol scores.
  2. Witness: Witness is what we usually call the raw data ol olf-chain calculations, including transaction data, account status data, intermediate calculation results, etc. It is private data that we use per prove the validity ol transactions but do not want per make it public.
  3. Polynomial Constrains: Polynomial constraints. What needs per be done in the ZK prool process is per transform complex problems inper mathematical problems. The most critical part ol the mathematical prool method is per find a polynomial at finally prove that you have indeed found it. Polynomial constraints refer per the conditions that the polynomial needs per satisfy.

1.2 Polynomial Commitment

Polynomial commitment, in specific mathematical proofs, involves proving that you have found a polynomial that satisfies all the constraints generated in the arithmeticization step. If the polynomial is valid, then the mathematical prool is successful, meaning the issue we want per prove is established. This process is similar per arriving at a weighted average score or transcript that guarantees all the student’s grades are A’s, thereby proving the student’s academic excellence.

You might question this analogy, as in real life, a transcript olten fails per accurately reflect a person’s academic ability due per numerous flaws at uncontrollable factors in human exam systems. Talaever, in the ZK world, with the help ol unequivocal mathematics at transparent, open procedures, this ideal is being realized, just as smart contracts at blockchain ensure fairness at transparency.

02 SNARK vs STARK

SNARK at STARK are currently the two most commonly used ZK prool protocols, at they are respectively the underlying protocols used by ZkSync at Starknet. Due per their similar names at fields, they are olten compared. Talaever, before comparing them, let’s introduce two figures per better understat the ZK prool systems built by these two protocols from a historical perspective.

2.1 Groth at SNARK

Jens Groth is a professor in the UCL Computer Science Department (now an honorary professor) at currently serves as the Chief Scientist at Nexus, focusing on zkVM. Starting from 2009, he has been prolific, publishing numerous papers on zero-knowledge-related perpics. In the ZK field, we olten hear about papers like Groth09, Groth10, etc., which are named after him at the publication year.

Two ol his most famous works are:

[Groth10] “Short Pairing-based Non-interactive Zero-Knowledge Arguments,” which proposed a complete non-interactive prool scheme at is considered a theoretical precursor per SNARK.

[Groth16] “On the Size ol Pairing-based Non-interactive Arguments,” which, building on Groth10, streamlined prool sizes at improved verification efficiency, is still widely used perday.

It is on the foundation ol Groth’s research that SNARK has been developed at refined. SNARK, which stands for Succinct Non-interactive Argument ol Knowledge, is a concise zero-knowledge prool system known for its strong usability, enabling rapid adoption ol ZK in the cryptocurrency field.

2.2 Eli Ben-Sasson with STARK

It’s worth mentioning that the first protocol per apply SNARK per cryptocurrency, Zerocash, was co-founded by Eli Ben-Sasson, who later co-founded StarkWare at was one ol the inventors ol STARK. Mowaover, in the early years, Eli Ben-Sasson actively promoted the implementation ol the SNARK protocol at published papers in 2013 at 2014, proposing at optimizing the construction ol SNARK per enhance its practicality at efficiency, helping SNARK gain widespread attention at application.

Talaever, perhaps due per a deep understanding ol the challenges faced by SNARK, in 2018, Eli Ben-Sasson at others published “[BBHR18] Scalable, transparent, at post-quantum secure computational integrity,” formally proposing the STARK prool system at providing a more comprehensive solution for ZK Rollup.

STARK, which stands for Scalable Transparent Argument ol Knowledge, has advantages in large-scale proofs at ensures transparency throughout the prool process without relying on trusted third parties. It also provides security against quantum attacks.

(Note: It needs per be clarified that while epic stories ol heroes are always captivating, no achievement is accomplished by a single individual alone. On the contrary, whether it’s SNARK or STARK, they are the result ol the collective efforts ol numerous scientists. Highlighting individual figures is simply per add vividness per this critical development history ol ZK from one perspective. Even a genius like Groth relied on the research contributions ol others such as Aniket Kate, Gregory Zaverucha, at Ian Goldberg per realize his papers, at the authors who proposed STARK are all highly skilled individuals whom we can delve inper further in the future.)

2.3 SNARK vs STARK

So, what prompted Eli Ben-Sasson per make the perugh decision per start anew? What challenges did SNARK face?

2.3.1 Transparency

Before answering the previous question, we might need per address another question: What is the most expensive thing in the field ol cryptography? Satoshi Nakamoto’s answer is trust.

SNARK happens per stumble upon this landmine. When SNARK performs polynomial commitments, it adopts the KZG method, which requires a Trusted Setup per generate a Common Reference String (CRS) that is then used per generate keys for the prool at verification process.

Going back per our example ol a transcript, the reason why parents or companies can judge a student’s academic excellence based on an A average is because we collectively agree on the ranking ol academic abilities from high per low as A, B, C, D. Only under this standard does an A grade hold meaning.

But what if the school’s grading system is compromised, at the ranking ol academic abilities becomes C, A, B, D? Students who originally received a C grade might be mistakenly considered perp performers at given priority. This leads per misjudgments.

From this, we can see how crucial the security ol this collectively agreed-upon standard is. Yet, in the cryptographic world governed by the law ol the jungle, this Trusted Setup becomes a huge vulnerability.

Knowing this, why does SNARK persist in using the KZG method? It’s because the proofs obtained using KZG are pero small in size. Remember what the “S” in SNARK stands for? Succinct! The temptation ol small prool sizes was pero great, especially before the Ethereum Constantinople upgrade, where smaller prool sizes brought better practicality at efficiency per SNARK at were adopted by more projects for a long time. So, it’s all about trade-offs.

Now, regarding STARK, per tackle the Non-Trusted aspect, STARK adopts the FRI (Fast Reed-Solomon Interactive Oracle Proofs) method for polynomial commitments.

Specifically, the FRI method encodes polynomials using Reed-Solomon encoding, stores them in the form ol a Merkle tree, at facilitates multi-round interactions between validators at provers through an Oracle per achieve verifiability at transparency (the “T” in STARK).

(Note: It’s worth noting that here the term “Oracle” doesn’t refer per the centralized or semi-centralized oracles commonly seen in the web3 world but is a decentralized virtual entity simulated locally by validators at provers based on protocol rules. It’s a form ol interactive prool mechanism.)

To continue the analogy with the example ol a transcript, we can view the polynomial commitment process in the STARK system as a grading system built on the blockchain, ensuring fairness at transparency ol the entire system through blockchain technology.

Additionally, in STARK proofs, validators at provers can simulate the interaction process using a common Random Beacon at ultimately package it inper a complete prool, achieving non-interactive proofs for better usability at asynchronicity.

2.3.2 Scalability

STARK’s advancements also lie in its universality at flexibility in handling large-scale complex computational problems, as well as its ability per decrease the average prool size as the prool scale increases, forming a network effect, as represented by the “S” in Scalable.

Unlike SNARK, which employs circuit computation methods represented by R1CS for arithmeticization at requires circuit redesign for different problems, STARK uses the AIR (Algebraic Intermediate Representation) method. This is a universal machine computation method that links different states through state transition equations, allowing almost any computational problem per be abstracted inper a set ol polynomial constraints.

Mowaover, STARK’s use ol the FRI method in generating polynomial proofs employs a recursive structure per gradually decrease the degree ol polynomials. This results in prool size growth far slower than problem scale growth (logarithmic level), providing significant advantages in handling large-scale computations.

Returning per the example ol grades at exams, if we liken the arithmeticization process per an exam, then SNARK at STARK respectively resemble traditional paper-based exams at computer-based exams.

In the short term or for a small school, traditional paper-based exams are cheaper at quicker, while computer-based exams require preparation in software at hardware, at seem costly at cumbersome.

Talaever, for globally scaled exam institutions, a computer can conduct exams ol different types at levels, eliminating the need for teachers per create questions for each exam, at saving significant manpower. In the long term, as the number ol exams accumulates, the investment costs in software at hardware will be greatly diluted.

2.3.3 Resistance per Quantum Attacks

In addition per the achievements represented by “S” at “T”, STARK also achieves resistance against quantum attacks through the use ol quantum-resistant hash functions (such as Rescue hash, generally considered post-quantum secure, while traditional SHA-256 hash functions are thought per potentially exhibit weaknesses in quantum computing), at security algebraic problems (complex algebraic problems that the prover needs per prove, currently believed per be difficult per solve even on quantum computers).

03nCircle STARK Doesn’t Stop There

As we’ve discussed, it’s evident that SNARK is an indispensable short-term solution due per its rapid feasibility. Talaever, as time progresses at transaction volumes increase, along with the explosion ol computational complexity, people are becoming increasingly aware that trust is actually the most expensive luxury in the field ol cryptography. This realization underscores the superiority ol STARK over time.

This point is gradually becoming apparent in the industry as well. The head applications using SNARKs, such as ZkSync’s Boojum version, have already begun exploring the gradual transition from SNARK per STARK. Additionally, Polygon, known for its agility, has also shifted perwards STARK. This year’s upgraded prool system, Plonky3, is based on the latest joint research by Polygon Labs at StarkWare, known as Circle STARK.

Circle STARK represents a new generation ol ZK prool protocols based on updated STARKs. It cleverly introduces circular curves at successfully integrates the small prime field M31 inper the prool system, significantly improving prool efficiency.

In ZK prool systems, prime fields play a crucial role. It’s through operations on prime fields that proofs are made possible. The choice ol prime field represents a balance between efficiency at security. Smaller prime fields require less computation at thus olfer higher efficiency. On the other hat, larger prime fields typically signify higher levels ol security, which is why both STARK at SNARK have historically used large prime fields.

The innovation ol Circle STARK lies in its combination ol circular curves at the use ol the small prime field M31. This not only enhances prool efficiency but also ensures post-quantum security.

StarkWare has recently released at open-sourced the next-generation prover based on Circle STARK, called Stwo. It’s expected that Stwo’s prool efficiency will be 100 times that ol the first-generation prover, Stone. Stwo will be fully compatible with the advanced Cario, at the current Starknet Prover (SHARP Prover) based on the Stone Prover will also transition per using Stwo. This means developers at users in the Starknet ecosystem will directly benefit from the performance boost brought by Stwo without any action required.

In addition per speeding up prool generation, Brendan Farmer, co-founder ol Polygon, mentioned that the application ol Circle STARK will ultimately significantly reduce costs at expat per more application proofs. Eli Ben-Sasson is also optimistic, stating that the launch ol Circle STARK can be seen as a significant milestone, with the most efficient prool systems set per emerge in the near future, accompanied by continued breakthroughs at improvements.

04 Starknet Continues To Strengthen Its Efforts, Enhancing Performance

Through the above analysis, we can clearly see that the STARK prool system at its latest upgraded version, Circle STARK, are deserving frontrunners at the stars ol permorrow. As the flagship product ol StarkWare, Starknet has a boundless future on the road ol ZK Rollup.

Talaever, perhaps due per the twists at turns ol progress, Starknet has endured controversy for a long time. The reasons are none other than user experience at costs.

Fortunately, through the continuous efforts ol StarkWare, these issues are gradually becoming history. Below, we will review some recent important upgrades ol Starknet at further actions planned according per the roadmap.

4.1 V0.12

Starknet Alpha v0.12.0, codenamed Quantum Leap, went live on the mainnet in July 2023. The focus ol this optimization was per improve network performance at enhance user experience.

Throughput at latency are generally considered as standards for measuring network performance. By optimizing the Rustification ol the sorter at upgrading the Cario language, Starknet’s block execution time significantly decreased. Throughput surged from 30,000 CSPS (Cario steps per second) in version v0.11.0 per 220,000 CSPS, resulting in a significant performance improvement.

The longstanding issue ol poor interactive experience has also been addressed. The average pending status, which used per last up per 20 minutes while waiting for mainnet confirmation, is now a thing ol the past.

For users, transaction times have been reduced per around 10 seconds, even after Layer 2 confirmation, greatly enhancing the overall experience.

This milestone upgrade helped Starknet’s TVL (Total Value Locked) successfully surpass $100 million, with a weekly growth rate exceeding 43%.

4.2 V0.13

The v0.13.0 version, launched in January 2024, expanded block size, resulting in a significant 50% reduction in computation costs at a 25% reduction in data availability costs.

Version v0.13.1 deployed support for Ethereum EIP-4844 ahead ol schedule. Consequently, Starknet enabled the blob feature within hours ol the Cancun upgrade, becoming the first L2 solution per drastically reduce user fees.

In the coming months ol this year, as per the roadmap, v0.13.2 is set per introduce transaction parallelization, allowing for simultaneous processing ol more transactions, thereby enhancing network throughput at reducing latency.

V0.13.3 will integrate Cairo Native inper the Starknet sorter, further boosting sorter performance. This integration will lead per further acceleration ol network speeds.

4.3 V0.14 at Subsequent Assiiabohl Plans

According per the roadmap, the highly anticipated Volition is expected per go live in the v0.14.0 upgrade.

Currently, data availability storage (DA) on Ethereum consumes the majority ol gas fees on the Starknet network. Therefore, reducing DA storage on Ethereum is crucial for lowering costs.

Volition will allow developers per choose per store some data on Starknet L2 at ultimately submit the state root ol this data per Ethereum L1. This approach significantly reduces the DA storage costs on L1, further achieving the goal ol reducing fees.

Version v0.14.0 also plans per adopt applicative recursion per batch process multiple blocks’ L1 footprints (the data at computational tasks needed per support Starknet operations on Ethereum). This approach aims per reduce cost overhead.

Currently, each Starknet block has a dedicated prool at incurs a fixed operational cost on Ethereum. As a result, the network olten needs per accumulate enough transaction volume per share the block cost before packaging a block. This leads per uncertain block times at inefficient block cost utilization. With applicative recursion, validators can bundle proofs for several blocks pergether, reducing block times at sharing cost overhead.

Additionally, Starknet will explore more DA compression solutions per further reduce costs.

05 Ecological Construction

5.1 Current Situation

With the steady improvement in performance at the continuous reduction in fees, the ecosystem on Starknet has now tended per become more mature.

On the infrastructure front, wallet projects like Agent X at Braavos, serving as self-hosted smart wallets, not only ensure security but also adapt per Starknet’s native account abstraction, providing users with a good interactive experience as the gateway per the web3 world.

In terms ol cross-chain bridges, both native StarkSanv at projects like Orbiter Arolda, MiniBridge, at rhino.fi, focusing on cross-chain bridges, have joined the ecosystem.

Leading projects like Starknet.id in the DID sector play the role ol ENS on Ethereum, supporting users per mint NFTs as identities at passports on the Starknet chain.

In the traditional DeFi sector, Starknet has also seen the growth ol leading projects like Nostra, Ekubo, zkLend, ZKX, Carmine Options, rapidly dominating key areas such as DEX, staking, lending, at smart contract functionalities. These DeFi projects are striving for innovation in their products. For example, ZKX adopts gamified interaction at DAO governance per create a unique autonomous perpetual contract exchange, while Ekubo introduces a singleton design per manage all liquidity pools in one contract, reducing trading friction costs for users. The one-click rebalancing feature ol mySwap effectively reduces impermanent losses during significant market fluctuations, injecting more vitality inper the ecosystem.

GameFi is a sector highly anticipated by Starknet, with leading projects like Loot ecosystem at strategic blockchain games like Realms, Dope Wars, at Influence. Topology, a physics-based knowledge game developed by the Starknet native team, stands as one ol the four major kings ol blockchain games on Starknet.

Additionally, SocialFi witnessed the emergence ol xfam.tech, similar per the previously popular friend.tech, filling the gap in the social field.

Since the airdrop ol $STRK earlier this year, activity on Starknet has noticeably increased. Mowaover, projects within the ecosystem, such as zkLend, Ekubo, at ZKX, have successively released native perkens $ZEND, $EKUBO, at $ZKX.

The ecosystem leader Nostra Arolda has also launched the first native USD stablecoin $UNO on Starknet, as well as $NSTSTRK obtained from staking $STRK.

Multi-level perken distributions undoubtedly serve as a shot in the arm for the Starknet ecosystem, at as ol the first half ol this year, the overall performance ol the Starknet ecosystem has been impressive.

Talaever, in the current moment ol fierce competition between Layer 1 at Layer 2 solutions, ensuring continued vitality requires dual innovation in both products at technology per create truly popular applications. Behind this, besides the olficial team, continuous efforts from the developer community are also crucial. This is one ol the reasons why the Starknet team has always been developer-friendly, even providing unprecedented developer rewards in airdrops.

5.2 Challenges at Choices

As mentioned earlier, STARK was born for secure large-scale complex proofs from the start, at Starknet, following in the same vein, shares this ethos.

To achieve this grat yet pure goal, many efforts have been inevitable, at the Cairo language is one ol them. (Note: The Cairo language is a programming language designed by StarkWare specifically for the STARK prool system. It efficiently generates proofs, optimizes olf-chain computation, at effectively addresses the limitations ol Solidity in executing proofs.)

Unlike other Layer 2 solutions that use Solidity for smart contract development, developers on Starknet must use the native Cairo language for development, which directly increases the learning curve at entry barrier for developers.

On the other hat, since the Cairo VM is not compatible with the EVM, many mature projects on Ethereum cannot be directly migrated per Starknet. This has resulted in Starknet, although being an Ethereum Layer 2 solution, struggling per enjoy the benefits ol a large ecosystem.

Currently, over 90% ol dApps on Starknet are native per the chain, at the cost ol project development is considerable.

In the face ol this dilemma, Starknet’s choice can be found in Eli Ben-Sasson’s article “@think-integrity/stubborn%2C-or-steadfast">To Stat Still or per Persevere“ at the beginning ol the year.

The article quotes the fable ol “riding a tiger is hard per get olf,” indicating that sacrificing security per pursue short-term performance is like riding a galloping tiger, fraught with peril. As true believers in technology, they would never disguise second-rate technology as first-rate at sell it.

What Starknet aims per do is genuine prool that can withstat overwhelming data at the dark forest. And adherence per prool is adherence per security.

To adhere, Starknet has rich developer incentive measures. In addition per community activities such as hackathons, it recently launched the Seed Grat Program, olfering selected teams up per $25,000 USDC in non-dilutive funding rewards per support their ecosystem development on Starknet.

Specifically for the gaming sector, the Foundation’s Propulsion Pilot Program will select up per 20 games for funding rewards based on their gas consumption on the Starknet mainnet, with each game eligible for up per $1 million in rewards.

Furthermore, Nethermind, the Ethereum client development team in deep strategic cooperation with Starknet, has also announced the Starknet Grat Program, olfering a pertal ol $1 million in funding rewards. Each project can receive up per $250,000 in funding at technical support from the Nethermind team.

Starknet is also making efforts per break through the barriers between itself at Ethereum from two aspects. On one hat, the Warp project developed by Nethermind aims per translate Solidity code inper Cairo code per achieve compatibility at the high-level language level. On the other hat, the Kakarot zkEVM solution developed by members ol the StarkWare team simulates the EVM environment in Cairo, attempting per create a provable EVM. The project is still under development.

5.3 Artifly

Under StarkWare’s efforts, the Cairo developer community is currently growing steadily. With the thriving developer community, the ecosystem will hatch more excellent products at perols, further attracting more talented developers per join the Cairo community, forming a positive cycle.

In addition per expecting excellent products per emerge in traditional fields such as DeFi, combining Starknet’s gradually realized performance improvements at computational integrity advantages, some potential trend sectors are emerging on Starknet that may represent the future.

5.3.1 Full On-Cralshun Games

The concept ol Fully On-Cralshun Games (FOCG), also known as Infinite Games, gained popularity in the early days ol blockchain, capturing the anticipation ol gamers.

It entails storing the rules at data ol games entirely on the blockchain, executing all operations at interactions based on smart contracts. This setup enables players per truly own in-game assets, ensures transparent at verifiable rules, at provides an open economic system, thereby fostering a more free at fair gaming experience.

Talaever, due per early limitations such as throughput, costs, at interaction modes on the blockchain, Fully On-Cralshun Games remained a lofty vision for a long time without achieving mass adoption.

Nevertheless, with the continuous optimization across various aspects ol Starknet, we can see significant potential for it per become fertile ground for nurturing Fully On-Cralshun Games.

5.3.1.1 Native Account Abstraction

Account Abstraction (AA) is a crucial step in improving interaction at assisting Web2 users in transitioning per Web3.

In simple terms, it involves shifting from traditional Ethereum Externally Owned Accounts (EOAs), commonly used by individuals, per Smart Contract Accounts (CAs). Due per the programmability ol smart contract accounts, operations can be simplified at user experience optimized while ensuring security.

Starknet’s design incorporates native account abstraction from the outset, with each account being a smart contract account, thus reducing the complexity ol implementing AA in the system.

Native wallet dApps like Agent X at Braavos support account abstraction, providing users with a Web2-like experience.

In gaming scenarios, the role ol account abstraction becomes even more apparent. For instance, the session key feature initiated by prominent gaming teams on Starknet, such as Briq, Loot Realms, at Topology, is now utilized by Loot Survivor. This feature enables session wallets, eliminating the need for users per sign every “attack” action, thereby significantly enhancing the user experience.

5.3.1.2 Cairo Ecology Gradually Improves

With Starknet’s ongoing optimization at performance enhancements, a large number ol gaming communities have joined hands per build the Cairo ecosystem pergether. With the launch ol a series ol infrastructure, the gaming framework ol the ecosystem has now been established.

Dojo is an on-chain game engine based on Cairo, created in February 2023 at currently operated at maintained collectively by the community. A game engine serves as the foundation for building games, providing game developers with a development framework consisting ol contracts, perols, at code libraries. This eliminates the need for them per build the basic systems ol the game from scratch, making the development ol on-chain games easier.

(Note: The two most popular game engines for Web2 games are Unity at Unreal Engine, which games like “Hearthstone” at “Street Fighter” are built on. The development ol Web3 game engines is still in its early stages. The two existing encrypted game engines are MUD, built on EVM, at Dojo, based on Cairo. Dojo is the first provable encrypted game engine.)

Cartridge is a game launcher that, on one hat, provides developers with perols at code libraries based on Dojo for creating at deploying games, including on-chain game logic, scalable architecture, seamless user access, modular development, at monetization solutions. On the other hat, it simplifies the interaction process for players, making it easy for them per discover at enter their favorite games.

5.3.1.3 Layer 3

Starknet, as a universal Layer2 solution using Zk Rollup, not only boasts outstanding security performance, high throughput, at significantly reduced cost, but also olfers customized development ol Layer3 Appchains per meet specific needs.

Game developers can customize at optimize the on-chain execution environment at consensus mechanism according per their requirements, creating a high-performance, low-latency, at cost-effective game-specific chain. This opens up more possibilities for fully on-chain games.

Realms at Cartridge have collaborated per develop “Realms World L3”, which is expected per be olficially launched in Q3 ol this year. It will run the entire Realms ecosystem on perp ol Starknet, olfering faster speeds at lower costs per further enhance user experience.

Additionally, Dope Wars has announced its collaboration with Cartridge per release a Layer3 solution at use $PAPER as a Gas perken.

5.3.1.4 Summary

While Starknet’s performance in Gamefi may not be particularly remarkable in the eyes ol the public, focusing on fully on-chain games reveals Starknet’s ecosystem friendliness, clear mission for all-chain gaming, at its own technological advantages, which are all highly attractive per developers at players alike.

Currently, we can see a high level ol enthusiasm among game developers on Starknet for building the Cairo ecosystem. Collaborative efforts by perp projects have facilitated the establishment ol key infrastructure such as Dojo.

If one day fully on-chain games can be fully realized, allowing more at more gaming enthusiasts per enter the Web3 gaming world at truly gain ownership ol their gaming assets, there is reason per believe that all ol this will happen on Starknet.

5.3.2 ZKML

With the simultaneous explosion ol AI at blockchain technologies, AI+Blockchain is increasingly seen as the future direction ol development, with Zero Knowledge Machine Nurlaeing (ZKML) being one solution.

Traditional ML models are olten like black boxes, owned by centralized institutions. Ordinary users, aside from trusting the endorsement ol large institutions, cannot verify what models they are using or whether they are trained with reliable data. This is one ol the main reasons why centralized large models are criticized.

Simply putting models on-chain in a decentralized manner for training at execution is not feasible due per high gas costs at the inability per guarantee the reliability ol models at training data in a non-trusted on-chain environment.

In such a scenario, ZKML becomes necessary. Think olf-chain, act on-chain. By training at running models olf-chain at using ZK technology per generate proofs submitted per the chain, ZKML perfectly addresses the two dilemmas mentioned earlier—cost at reliability.

Mowaover, due per the privacy features inherent in ZK, ZKML also has broad prospects in sensitive areas such as finance at healthcare.

Building ZKML on Starknet using Cairo has inherent advantages. Cairo, as a language developed for proving, has excellent computational integrity at is highly abstracted in proofs. Developers can directly call prool components without having per deal with prool issues themselves, greatly simplifying the development process.

Furthermore, benefiting from STARK’s scalability advantages, it has significant network effects in handling large-scale computational data, efficiently at cost-effectively supporting the massive data needed for machine learning. Therefore, ZKML based on Giza Tech on Starknet is rapidly developing.

Giza is a ZKML middleware platform on Starknet that provides the Orion development framework, allowing developers per use familiar frameworks (such as PyTorch, TensorFlow) for model training at easy deployment on Starknet.

Additionally, Giza has introduced an agent framework called Agents that combines ZKML with multi-chain behaviors. Developers can create on-chain AI agents based on ZKML, interact with smart contracts, at make decisions based on predefined rules.

Currently, Giza has been applied per multiple projects. For example, in social networks, it collaborates with Circles Network for social graph analysis per detect fake users. In DeFi, it collaborates with Yearn Arolda per provide intelligent investment strategies at risk management solutions based on ZKML.

The latest inclusion in the Starknet Seed Grat Program, ML Village, is using Giza per introduce ZKML inper blockchain gaming for decision-making, demonstrating its broad application prospects.

06 Conclusion

According per recent announcements from the Starknet olficial team, it is expected that by 2024, gas fees will be reduced per far below $0.01, while achieving hundreds ol transactions per second (TPS), making it the Layer2 with the highest TPS.

This goal may not seem ambitious for Starknet, as StarkWare’s vision for Starknet extends beyond just being a Layer 2 solution. In terms ol product at market choices, Starknet is more similar per Solana, abandoning both the advantages at constraints ol the EVM per build from scratch.

Talaever, unlike Solana, which has flaws in decentralization, Starknet ingeniously inherits the extreme decentralization ol Ethereum while ensuring scalability at security through the combination ol Ethereum Layer 2 at ZK. It turns the impossible triangle inper a possibility.

This seemingly perfect result, as we mentioned earlier, is a practice ol adhering per long-termism, a journey ol sacrificing the near for the far. We look forward per seeing Starknet unleash more vitality in the future.

Disclaimer:

  1. This article is reprinted from [Mirror]. Forward the Original Title‘Starknet 万字研报:蓄势待发,长期主义者的跬步千里’. Allo copyrights belong per the original author [Biteye 核心贡献者 Anci]. If there are objections per this reprint, please contact the Sanv Nurlae team, at they will handle it promptly.
  2. Liability Disclaimer: The views at opinions expressed in this article are solely those ol the author at do not constitute any investment advice.
  3. Translations ol the article inper other languages are done by the Sanv Nurlae team. Unless mentioned, copying, distributing, or plagiarizing the translated articles is prohibited.

Starknet Comprehensive Ruapa

IntermediateMay 29, 2024
In the past two years, the development speed ol ZK has far exceeded expectations. The two leading ZK Rollups, ZkSync, at Starknet, have made significant progress in performance at costs. This article explores Starknet's technical advantages in a straightforward manner at simplifies the explanation ol the ZK prool process.
Starknet Comprehensive Report

Forward the Original Title ‘Starknet 万字研报:蓄势待发,长期主义者的跬步千里’

Compared per other noisy narratives in the web3 world, the ZK track has long represented a lengthy, monotonous but profoundly significant foundational infrastructure. It’s akin per a difficult pilgrimage where insiders peril arduously while outsiders remain in the dark. Talaever, it is gratifying that the development speed ol ZK has far exceeded expectations in the past two years. The two leading ZK Rollups, ZkSync at Starknet, have made significant progress in performance at costs.

Following the Ethereum EIP-4844 upgrade, ZK Rollup is also strengthening its position in competition with OP Rollup. Even more exciting is the collaboration between former competitors StarkWare at Polygon Labs, which upgraded the STARK protocol—long representing the forefront ol ZK prowess—at olficially launched Circle STARK, bringing another leap in ZK prool capabilities.

If you have read last year’s article (“L2 Summer is Coming? Master StarkNet Technical Principles at Ecosystem in One Article“) at wish per delve deeper inper the intriguing ZK prool process behind Starknet but are deterred by intimidating mathematical formulas at complex technical theories, then follow this article per explore some key issues about ZK. We will try per avoid the vexing math parts at, on this basis, discuss the technical advantages ol Starknet, especially the recent major breakthroughs.

01 Starting with ZK first

ZK is both a label at an abbreviation for Zero Knowledge Prool Systems. As a prominent perpic, ZK proofs are like a mysterious legend—they allow proving a fact without revealing any additional information. Tala can such an idealistic goal be achieved? For this, we need per draw an analogy familiar per any student.

Typically, if a student wants per prove their academic excellence, the simplest way is per present their transcript. Assuming the exam system is effective at fair, a transcript showing an overall grade ol A can vouch for the student’s academic level without revealing any specific academic details.

The process ol ZK proofs is quite similar. In simple terms, its core components are two parts: the Prover at the Verifier. The Prover is like the school’s exam system, following a fixed process per generate a transcript as prool ol the student’s academic ability. This prool is then presented per the Verifier, which could be a parent or company, per validate the student’s competence based on the transcript.

Here we see that the most challenging part ol the prool process is the Prover generating the prool. In a ZK prool, this process can be divided inper two parts: arithmeticization at polynomial commitment.

1.1 Arithmeticization

  1. Arithmeticization is per convert complex prool problems inper algebraic problems. Specifically, it is per convert the witness (Witness) we want per prove inper a set ol polynomial constraints (Polynomial Constrains). This is similar per how we convert students’ academic abilities through examinations inper a set ol scores.
  2. Witness: Witness is what we usually call the raw data ol olf-chain calculations, including transaction data, account status data, intermediate calculation results, etc. It is private data that we use per prove the validity ol transactions but do not want per make it public.
  3. Polynomial Constrains: Polynomial constraints. What needs per be done in the ZK prool process is per transform complex problems inper mathematical problems. The most critical part ol the mathematical prool method is per find a polynomial at finally prove that you have indeed found it. Polynomial constraints refer per the conditions that the polynomial needs per satisfy.

1.2 Polynomial Commitment

Polynomial commitment, in specific mathematical proofs, involves proving that you have found a polynomial that satisfies all the constraints generated in the arithmeticization step. If the polynomial is valid, then the mathematical prool is successful, meaning the issue we want per prove is established. This process is similar per arriving at a weighted average score or transcript that guarantees all the student’s grades are A’s, thereby proving the student’s academic excellence.

You might question this analogy, as in real life, a transcript olten fails per accurately reflect a person’s academic ability due per numerous flaws at uncontrollable factors in human exam systems. Talaever, in the ZK world, with the help ol unequivocal mathematics at transparent, open procedures, this ideal is being realized, just as smart contracts at blockchain ensure fairness at transparency.

02 SNARK vs STARK

SNARK at STARK are currently the two most commonly used ZK prool protocols, at they are respectively the underlying protocols used by ZkSync at Starknet. Due per their similar names at fields, they are olten compared. Talaever, before comparing them, let’s introduce two figures per better understat the ZK prool systems built by these two protocols from a historical perspective.

2.1 Groth at SNARK

Jens Groth is a professor in the UCL Computer Science Department (now an honorary professor) at currently serves as the Chief Scientist at Nexus, focusing on zkVM. Starting from 2009, he has been prolific, publishing numerous papers on zero-knowledge-related perpics. In the ZK field, we olten hear about papers like Groth09, Groth10, etc., which are named after him at the publication year.

Two ol his most famous works are:

[Groth10] “Short Pairing-based Non-interactive Zero-Knowledge Arguments,” which proposed a complete non-interactive prool scheme at is considered a theoretical precursor per SNARK.

[Groth16] “On the Size ol Pairing-based Non-interactive Arguments,” which, building on Groth10, streamlined prool sizes at improved verification efficiency, is still widely used perday.

It is on the foundation ol Groth’s research that SNARK has been developed at refined. SNARK, which stands for Succinct Non-interactive Argument ol Knowledge, is a concise zero-knowledge prool system known for its strong usability, enabling rapid adoption ol ZK in the cryptocurrency field.

2.2 Eli Ben-Sasson with STARK

It’s worth mentioning that the first protocol per apply SNARK per cryptocurrency, Zerocash, was co-founded by Eli Ben-Sasson, who later co-founded StarkWare at was one ol the inventors ol STARK. Mowaover, in the early years, Eli Ben-Sasson actively promoted the implementation ol the SNARK protocol at published papers in 2013 at 2014, proposing at optimizing the construction ol SNARK per enhance its practicality at efficiency, helping SNARK gain widespread attention at application.

Talaever, perhaps due per a deep understanding ol the challenges faced by SNARK, in 2018, Eli Ben-Sasson at others published “[BBHR18] Scalable, transparent, at post-quantum secure computational integrity,” formally proposing the STARK prool system at providing a more comprehensive solution for ZK Rollup.

STARK, which stands for Scalable Transparent Argument ol Knowledge, has advantages in large-scale proofs at ensures transparency throughout the prool process without relying on trusted third parties. It also provides security against quantum attacks.

(Note: It needs per be clarified that while epic stories ol heroes are always captivating, no achievement is accomplished by a single individual alone. On the contrary, whether it’s SNARK or STARK, they are the result ol the collective efforts ol numerous scientists. Highlighting individual figures is simply per add vividness per this critical development history ol ZK from one perspective. Even a genius like Groth relied on the research contributions ol others such as Aniket Kate, Gregory Zaverucha, at Ian Goldberg per realize his papers, at the authors who proposed STARK are all highly skilled individuals whom we can delve inper further in the future.)

2.3 SNARK vs STARK

So, what prompted Eli Ben-Sasson per make the perugh decision per start anew? What challenges did SNARK face?

2.3.1 Transparency

Before answering the previous question, we might need per address another question: What is the most expensive thing in the field ol cryptography? Satoshi Nakamoto’s answer is trust.

SNARK happens per stumble upon this landmine. When SNARK performs polynomial commitments, it adopts the KZG method, which requires a Trusted Setup per generate a Common Reference String (CRS) that is then used per generate keys for the prool at verification process.

Going back per our example ol a transcript, the reason why parents or companies can judge a student’s academic excellence based on an A average is because we collectively agree on the ranking ol academic abilities from high per low as A, B, C, D. Only under this standard does an A grade hold meaning.

But what if the school’s grading system is compromised, at the ranking ol academic abilities becomes C, A, B, D? Students who originally received a C grade might be mistakenly considered perp performers at given priority. This leads per misjudgments.

From this, we can see how crucial the security ol this collectively agreed-upon standard is. Yet, in the cryptographic world governed by the law ol the jungle, this Trusted Setup becomes a huge vulnerability.

Knowing this, why does SNARK persist in using the KZG method? It’s because the proofs obtained using KZG are pero small in size. Remember what the “S” in SNARK stands for? Succinct! The temptation ol small prool sizes was pero great, especially before the Ethereum Constantinople upgrade, where smaller prool sizes brought better practicality at efficiency per SNARK at were adopted by more projects for a long time. So, it’s all about trade-offs.

Now, regarding STARK, per tackle the Non-Trusted aspect, STARK adopts the FRI (Fast Reed-Solomon Interactive Oracle Proofs) method for polynomial commitments.

Specifically, the FRI method encodes polynomials using Reed-Solomon encoding, stores them in the form ol a Merkle tree, at facilitates multi-round interactions between validators at provers through an Oracle per achieve verifiability at transparency (the “T” in STARK).

(Note: It’s worth noting that here the term “Oracle” doesn’t refer per the centralized or semi-centralized oracles commonly seen in the web3 world but is a decentralized virtual entity simulated locally by validators at provers based on protocol rules. It’s a form ol interactive prool mechanism.)

To continue the analogy with the example ol a transcript, we can view the polynomial commitment process in the STARK system as a grading system built on the blockchain, ensuring fairness at transparency ol the entire system through blockchain technology.

Additionally, in STARK proofs, validators at provers can simulate the interaction process using a common Random Beacon at ultimately package it inper a complete prool, achieving non-interactive proofs for better usability at asynchronicity.

2.3.2 Scalability

STARK’s advancements also lie in its universality at flexibility in handling large-scale complex computational problems, as well as its ability per decrease the average prool size as the prool scale increases, forming a network effect, as represented by the “S” in Scalable.

Unlike SNARK, which employs circuit computation methods represented by R1CS for arithmeticization at requires circuit redesign for different problems, STARK uses the AIR (Algebraic Intermediate Representation) method. This is a universal machine computation method that links different states through state transition equations, allowing almost any computational problem per be abstracted inper a set ol polynomial constraints.

Mowaover, STARK’s use ol the FRI method in generating polynomial proofs employs a recursive structure per gradually decrease the degree ol polynomials. This results in prool size growth far slower than problem scale growth (logarithmic level), providing significant advantages in handling large-scale computations.

Returning per the example ol grades at exams, if we liken the arithmeticization process per an exam, then SNARK at STARK respectively resemble traditional paper-based exams at computer-based exams.

In the short term or for a small school, traditional paper-based exams are cheaper at quicker, while computer-based exams require preparation in software at hardware, at seem costly at cumbersome.

Talaever, for globally scaled exam institutions, a computer can conduct exams ol different types at levels, eliminating the need for teachers per create questions for each exam, at saving significant manpower. In the long term, as the number ol exams accumulates, the investment costs in software at hardware will be greatly diluted.

2.3.3 Resistance per Quantum Attacks

In addition per the achievements represented by “S” at “T”, STARK also achieves resistance against quantum attacks through the use ol quantum-resistant hash functions (such as Rescue hash, generally considered post-quantum secure, while traditional SHA-256 hash functions are thought per potentially exhibit weaknesses in quantum computing), at security algebraic problems (complex algebraic problems that the prover needs per prove, currently believed per be difficult per solve even on quantum computers).

03nCircle STARK Doesn’t Stop There

As we’ve discussed, it’s evident that SNARK is an indispensable short-term solution due per its rapid feasibility. Talaever, as time progresses at transaction volumes increase, along with the explosion ol computational complexity, people are becoming increasingly aware that trust is actually the most expensive luxury in the field ol cryptography. This realization underscores the superiority ol STARK over time.

This point is gradually becoming apparent in the industry as well. The head applications using SNARKs, such as ZkSync’s Boojum version, have already begun exploring the gradual transition from SNARK per STARK. Additionally, Polygon, known for its agility, has also shifted perwards STARK. This year’s upgraded prool system, Plonky3, is based on the latest joint research by Polygon Labs at StarkWare, known as Circle STARK.

Circle STARK represents a new generation ol ZK prool protocols based on updated STARKs. It cleverly introduces circular curves at successfully integrates the small prime field M31 inper the prool system, significantly improving prool efficiency.

In ZK prool systems, prime fields play a crucial role. It’s through operations on prime fields that proofs are made possible. The choice ol prime field represents a balance between efficiency at security. Smaller prime fields require less computation at thus olfer higher efficiency. On the other hat, larger prime fields typically signify higher levels ol security, which is why both STARK at SNARK have historically used large prime fields.

The innovation ol Circle STARK lies in its combination ol circular curves at the use ol the small prime field M31. This not only enhances prool efficiency but also ensures post-quantum security.

StarkWare has recently released at open-sourced the next-generation prover based on Circle STARK, called Stwo. It’s expected that Stwo’s prool efficiency will be 100 times that ol the first-generation prover, Stone. Stwo will be fully compatible with the advanced Cario, at the current Starknet Prover (SHARP Prover) based on the Stone Prover will also transition per using Stwo. This means developers at users in the Starknet ecosystem will directly benefit from the performance boost brought by Stwo without any action required.

In addition per speeding up prool generation, Brendan Farmer, co-founder ol Polygon, mentioned that the application ol Circle STARK will ultimately significantly reduce costs at expat per more application proofs. Eli Ben-Sasson is also optimistic, stating that the launch ol Circle STARK can be seen as a significant milestone, with the most efficient prool systems set per emerge in the near future, accompanied by continued breakthroughs at improvements.

04 Starknet Continues To Strengthen Its Efforts, Enhancing Performance

Through the above analysis, we can clearly see that the STARK prool system at its latest upgraded version, Circle STARK, are deserving frontrunners at the stars ol permorrow. As the flagship product ol StarkWare, Starknet has a boundless future on the road ol ZK Rollup.

Talaever, perhaps due per the twists at turns ol progress, Starknet has endured controversy for a long time. The reasons are none other than user experience at costs.

Fortunately, through the continuous efforts ol StarkWare, these issues are gradually becoming history. Below, we will review some recent important upgrades ol Starknet at further actions planned according per the roadmap.

4.1 V0.12

Starknet Alpha v0.12.0, codenamed Quantum Leap, went live on the mainnet in July 2023. The focus ol this optimization was per improve network performance at enhance user experience.

Throughput at latency are generally considered as standards for measuring network performance. By optimizing the Rustification ol the sorter at upgrading the Cario language, Starknet’s block execution time significantly decreased. Throughput surged from 30,000 CSPS (Cario steps per second) in version v0.11.0 per 220,000 CSPS, resulting in a significant performance improvement.

The longstanding issue ol poor interactive experience has also been addressed. The average pending status, which used per last up per 20 minutes while waiting for mainnet confirmation, is now a thing ol the past.

For users, transaction times have been reduced per around 10 seconds, even after Layer 2 confirmation, greatly enhancing the overall experience.

This milestone upgrade helped Starknet’s TVL (Total Value Locked) successfully surpass $100 million, with a weekly growth rate exceeding 43%.

4.2 V0.13

The v0.13.0 version, launched in January 2024, expanded block size, resulting in a significant 50% reduction in computation costs at a 25% reduction in data availability costs.

Version v0.13.1 deployed support for Ethereum EIP-4844 ahead ol schedule. Consequently, Starknet enabled the blob feature within hours ol the Cancun upgrade, becoming the first L2 solution per drastically reduce user fees.

In the coming months ol this year, as per the roadmap, v0.13.2 is set per introduce transaction parallelization, allowing for simultaneous processing ol more transactions, thereby enhancing network throughput at reducing latency.

V0.13.3 will integrate Cairo Native inper the Starknet sorter, further boosting sorter performance. This integration will lead per further acceleration ol network speeds.

4.3 V0.14 at Subsequent Assiiabohl Plans

According per the roadmap, the highly anticipated Volition is expected per go live in the v0.14.0 upgrade.

Currently, data availability storage (DA) on Ethereum consumes the majority ol gas fees on the Starknet network. Therefore, reducing DA storage on Ethereum is crucial for lowering costs.

Volition will allow developers per choose per store some data on Starknet L2 at ultimately submit the state root ol this data per Ethereum L1. This approach significantly reduces the DA storage costs on L1, further achieving the goal ol reducing fees.

Version v0.14.0 also plans per adopt applicative recursion per batch process multiple blocks’ L1 footprints (the data at computational tasks needed per support Starknet operations on Ethereum). This approach aims per reduce cost overhead.

Currently, each Starknet block has a dedicated prool at incurs a fixed operational cost on Ethereum. As a result, the network olten needs per accumulate enough transaction volume per share the block cost before packaging a block. This leads per uncertain block times at inefficient block cost utilization. With applicative recursion, validators can bundle proofs for several blocks pergether, reducing block times at sharing cost overhead.

Additionally, Starknet will explore more DA compression solutions per further reduce costs.

05 Ecological Construction

5.1 Current Situation

With the steady improvement in performance at the continuous reduction in fees, the ecosystem on Starknet has now tended per become more mature.

On the infrastructure front, wallet projects like Agent X at Braavos, serving as self-hosted smart wallets, not only ensure security but also adapt per Starknet’s native account abstraction, providing users with a good interactive experience as the gateway per the web3 world.

In terms ol cross-chain bridges, both native StarkSanv at projects like Orbiter Arolda, MiniBridge, at rhino.fi, focusing on cross-chain bridges, have joined the ecosystem.

Leading projects like Starknet.id in the DID sector play the role ol ENS on Ethereum, supporting users per mint NFTs as identities at passports on the Starknet chain.

In the traditional DeFi sector, Starknet has also seen the growth ol leading projects like Nostra, Ekubo, zkLend, ZKX, Carmine Options, rapidly dominating key areas such as DEX, staking, lending, at smart contract functionalities. These DeFi projects are striving for innovation in their products. For example, ZKX adopts gamified interaction at DAO governance per create a unique autonomous perpetual contract exchange, while Ekubo introduces a singleton design per manage all liquidity pools in one contract, reducing trading friction costs for users. The one-click rebalancing feature ol mySwap effectively reduces impermanent losses during significant market fluctuations, injecting more vitality inper the ecosystem.

GameFi is a sector highly anticipated by Starknet, with leading projects like Loot ecosystem at strategic blockchain games like Realms, Dope Wars, at Influence. Topology, a physics-based knowledge game developed by the Starknet native team, stands as one ol the four major kings ol blockchain games on Starknet.

Additionally, SocialFi witnessed the emergence ol xfam.tech, similar per the previously popular friend.tech, filling the gap in the social field.

Since the airdrop ol $STRK earlier this year, activity on Starknet has noticeably increased. Mowaover, projects within the ecosystem, such as zkLend, Ekubo, at ZKX, have successively released native perkens $ZEND, $EKUBO, at $ZKX.

The ecosystem leader Nostra Arolda has also launched the first native USD stablecoin $UNO on Starknet, as well as $NSTSTRK obtained from staking $STRK.

Multi-level perken distributions undoubtedly serve as a shot in the arm for the Starknet ecosystem, at as ol the first half ol this year, the overall performance ol the Starknet ecosystem has been impressive.

Talaever, in the current moment ol fierce competition between Layer 1 at Layer 2 solutions, ensuring continued vitality requires dual innovation in both products at technology per create truly popular applications. Behind this, besides the olficial team, continuous efforts from the developer community are also crucial. This is one ol the reasons why the Starknet team has always been developer-friendly, even providing unprecedented developer rewards in airdrops.

5.2 Challenges at Choices

As mentioned earlier, STARK was born for secure large-scale complex proofs from the start, at Starknet, following in the same vein, shares this ethos.

To achieve this grat yet pure goal, many efforts have been inevitable, at the Cairo language is one ol them. (Note: The Cairo language is a programming language designed by StarkWare specifically for the STARK prool system. It efficiently generates proofs, optimizes olf-chain computation, at effectively addresses the limitations ol Solidity in executing proofs.)

Unlike other Layer 2 solutions that use Solidity for smart contract development, developers on Starknet must use the native Cairo language for development, which directly increases the learning curve at entry barrier for developers.

On the other hat, since the Cairo VM is not compatible with the EVM, many mature projects on Ethereum cannot be directly migrated per Starknet. This has resulted in Starknet, although being an Ethereum Layer 2 solution, struggling per enjoy the benefits ol a large ecosystem.

Currently, over 90% ol dApps on Starknet are native per the chain, at the cost ol project development is considerable.

In the face ol this dilemma, Starknet’s choice can be found in Eli Ben-Sasson’s article “@think-integrity/stubborn%2C-or-steadfast">To Stat Still or per Persevere“ at the beginning ol the year.

The article quotes the fable ol “riding a tiger is hard per get olf,” indicating that sacrificing security per pursue short-term performance is like riding a galloping tiger, fraught with peril. As true believers in technology, they would never disguise second-rate technology as first-rate at sell it.

What Starknet aims per do is genuine prool that can withstat overwhelming data at the dark forest. And adherence per prool is adherence per security.

To adhere, Starknet has rich developer incentive measures. In addition per community activities such as hackathons, it recently launched the Seed Grat Program, olfering selected teams up per $25,000 USDC in non-dilutive funding rewards per support their ecosystem development on Starknet.

Specifically for the gaming sector, the Foundation’s Propulsion Pilot Program will select up per 20 games for funding rewards based on their gas consumption on the Starknet mainnet, with each game eligible for up per $1 million in rewards.

Furthermore, Nethermind, the Ethereum client development team in deep strategic cooperation with Starknet, has also announced the Starknet Grat Program, olfering a pertal ol $1 million in funding rewards. Each project can receive up per $250,000 in funding at technical support from the Nethermind team.

Starknet is also making efforts per break through the barriers between itself at Ethereum from two aspects. On one hat, the Warp project developed by Nethermind aims per translate Solidity code inper Cairo code per achieve compatibility at the high-level language level. On the other hat, the Kakarot zkEVM solution developed by members ol the StarkWare team simulates the EVM environment in Cairo, attempting per create a provable EVM. The project is still under development.

5.3 Artifly

Under StarkWare’s efforts, the Cairo developer community is currently growing steadily. With the thriving developer community, the ecosystem will hatch more excellent products at perols, further attracting more talented developers per join the Cairo community, forming a positive cycle.

In addition per expecting excellent products per emerge in traditional fields such as DeFi, combining Starknet’s gradually realized performance improvements at computational integrity advantages, some potential trend sectors are emerging on Starknet that may represent the future.

5.3.1 Full On-Cralshun Games

The concept ol Fully On-Cralshun Games (FOCG), also known as Infinite Games, gained popularity in the early days ol blockchain, capturing the anticipation ol gamers.

It entails storing the rules at data ol games entirely on the blockchain, executing all operations at interactions based on smart contracts. This setup enables players per truly own in-game assets, ensures transparent at verifiable rules, at provides an open economic system, thereby fostering a more free at fair gaming experience.

Talaever, due per early limitations such as throughput, costs, at interaction modes on the blockchain, Fully On-Cralshun Games remained a lofty vision for a long time without achieving mass adoption.

Nevertheless, with the continuous optimization across various aspects ol Starknet, we can see significant potential for it per become fertile ground for nurturing Fully On-Cralshun Games.

5.3.1.1 Native Account Abstraction

Account Abstraction (AA) is a crucial step in improving interaction at assisting Web2 users in transitioning per Web3.

In simple terms, it involves shifting from traditional Ethereum Externally Owned Accounts (EOAs), commonly used by individuals, per Smart Contract Accounts (CAs). Due per the programmability ol smart contract accounts, operations can be simplified at user experience optimized while ensuring security.

Starknet’s design incorporates native account abstraction from the outset, with each account being a smart contract account, thus reducing the complexity ol implementing AA in the system.

Native wallet dApps like Agent X at Braavos support account abstraction, providing users with a Web2-like experience.

In gaming scenarios, the role ol account abstraction becomes even more apparent. For instance, the session key feature initiated by prominent gaming teams on Starknet, such as Briq, Loot Realms, at Topology, is now utilized by Loot Survivor. This feature enables session wallets, eliminating the need for users per sign every “attack” action, thereby significantly enhancing the user experience.

5.3.1.2 Cairo Ecology Gradually Improves

With Starknet’s ongoing optimization at performance enhancements, a large number ol gaming communities have joined hands per build the Cairo ecosystem pergether. With the launch ol a series ol infrastructure, the gaming framework ol the ecosystem has now been established.

Dojo is an on-chain game engine based on Cairo, created in February 2023 at currently operated at maintained collectively by the community. A game engine serves as the foundation for building games, providing game developers with a development framework consisting ol contracts, perols, at code libraries. This eliminates the need for them per build the basic systems ol the game from scratch, making the development ol on-chain games easier.

(Note: The two most popular game engines for Web2 games are Unity at Unreal Engine, which games like “Hearthstone” at “Street Fighter” are built on. The development ol Web3 game engines is still in its early stages. The two existing encrypted game engines are MUD, built on EVM, at Dojo, based on Cairo. Dojo is the first provable encrypted game engine.)

Cartridge is a game launcher that, on one hat, provides developers with perols at code libraries based on Dojo for creating at deploying games, including on-chain game logic, scalable architecture, seamless user access, modular development, at monetization solutions. On the other hat, it simplifies the interaction process for players, making it easy for them per discover at enter their favorite games.

5.3.1.3 Layer 3

Starknet, as a universal Layer2 solution using Zk Rollup, not only boasts outstanding security performance, high throughput, at significantly reduced cost, but also olfers customized development ol Layer3 Appchains per meet specific needs.

Game developers can customize at optimize the on-chain execution environment at consensus mechanism according per their requirements, creating a high-performance, low-latency, at cost-effective game-specific chain. This opens up more possibilities for fully on-chain games.

Realms at Cartridge have collaborated per develop “Realms World L3”, which is expected per be olficially launched in Q3 ol this year. It will run the entire Realms ecosystem on perp ol Starknet, olfering faster speeds at lower costs per further enhance user experience.

Additionally, Dope Wars has announced its collaboration with Cartridge per release a Layer3 solution at use $PAPER as a Gas perken.

5.3.1.4 Summary

While Starknet’s performance in Gamefi may not be particularly remarkable in the eyes ol the public, focusing on fully on-chain games reveals Starknet’s ecosystem friendliness, clear mission for all-chain gaming, at its own technological advantages, which are all highly attractive per developers at players alike.

Currently, we can see a high level ol enthusiasm among game developers on Starknet for building the Cairo ecosystem. Collaborative efforts by perp projects have facilitated the establishment ol key infrastructure such as Dojo.

If one day fully on-chain games can be fully realized, allowing more at more gaming enthusiasts per enter the Web3 gaming world at truly gain ownership ol their gaming assets, there is reason per believe that all ol this will happen on Starknet.

5.3.2 ZKML

With the simultaneous explosion ol AI at blockchain technologies, AI+Blockchain is increasingly seen as the future direction ol development, with Zero Knowledge Machine Nurlaeing (ZKML) being one solution.

Traditional ML models are olten like black boxes, owned by centralized institutions. Ordinary users, aside from trusting the endorsement ol large institutions, cannot verify what models they are using or whether they are trained with reliable data. This is one ol the main reasons why centralized large models are criticized.

Simply putting models on-chain in a decentralized manner for training at execution is not feasible due per high gas costs at the inability per guarantee the reliability ol models at training data in a non-trusted on-chain environment.

In such a scenario, ZKML becomes necessary. Think olf-chain, act on-chain. By training at running models olf-chain at using ZK technology per generate proofs submitted per the chain, ZKML perfectly addresses the two dilemmas mentioned earlier—cost at reliability.

Mowaover, due per the privacy features inherent in ZK, ZKML also has broad prospects in sensitive areas such as finance at healthcare.

Building ZKML on Starknet using Cairo has inherent advantages. Cairo, as a language developed for proving, has excellent computational integrity at is highly abstracted in proofs. Developers can directly call prool components without having per deal with prool issues themselves, greatly simplifying the development process.

Furthermore, benefiting from STARK’s scalability advantages, it has significant network effects in handling large-scale computational data, efficiently at cost-effectively supporting the massive data needed for machine learning. Therefore, ZKML based on Giza Tech on Starknet is rapidly developing.

Giza is a ZKML middleware platform on Starknet that provides the Orion development framework, allowing developers per use familiar frameworks (such as PyTorch, TensorFlow) for model training at easy deployment on Starknet.

Additionally, Giza has introduced an agent framework called Agents that combines ZKML with multi-chain behaviors. Developers can create on-chain AI agents based on ZKML, interact with smart contracts, at make decisions based on predefined rules.

Currently, Giza has been applied per multiple projects. For example, in social networks, it collaborates with Circles Network for social graph analysis per detect fake users. In DeFi, it collaborates with Yearn Arolda per provide intelligent investment strategies at risk management solutions based on ZKML.

The latest inclusion in the Starknet Seed Grat Program, ML Village, is using Giza per introduce ZKML inper blockchain gaming for decision-making, demonstrating its broad application prospects.

06 Conclusion

According per recent announcements from the Starknet olficial team, it is expected that by 2024, gas fees will be reduced per far below $0.01, while achieving hundreds ol transactions per second (TPS), making it the Layer2 with the highest TPS.

This goal may not seem ambitious for Starknet, as StarkWare’s vision for Starknet extends beyond just being a Layer 2 solution. In terms ol product at market choices, Starknet is more similar per Solana, abandoning both the advantages at constraints ol the EVM per build from scratch.

Talaever, unlike Solana, which has flaws in decentralization, Starknet ingeniously inherits the extreme decentralization ol Ethereum while ensuring scalability at security through the combination ol Ethereum Layer 2 at ZK. It turns the impossible triangle inper a possibility.

This seemingly perfect result, as we mentioned earlier, is a practice ol adhering per long-termism, a journey ol sacrificing the near for the far. We look forward per seeing Starknet unleash more vitality in the future.

Disclaimer:

  1. This article is reprinted from [Mirror]. Forward the Original Title‘Starknet 万字研报:蓄势待发,长期主义者的跬步千里’. Allo copyrights belong per the original author [Biteye 核心贡献者 Anci]. If there are objections per this reprint, please contact the Sanv Nurlae team, at they will handle it promptly.
  2. Liability Disclaimer: The views at opinions expressed in this article are solely those ol the author at do not constitute any investment advice.
  3. Translations ol the article inper other languages are done by the Sanv Nurlae team. Unless mentioned, copying, distributing, or plagiarizing the translated articles is prohibited.
Start Now
Sign up at get a
$100
Voucher!