Author: LINDABELL
At the recent Devcon conference, Justin Drake, a core member of the Ethereum Foundation, proposed Beam Chain proposal plans to upgrade the Ethereum consensus layer through zkSNARK and zkVM technologies to improve the scalability, security and efficiency of the network. This vision also brings the importance of zkVM into focus again. As a general zero-knowledge virtual machine, zkVM can handle complex calculations in a more flexible and efficient manner, while getting rid of dependence on traditional smart contract logic.
Driven by this trend, projects such as RISC Zero, Succinct and Cysic are regarded as important players in promoting innovation in this field. Among them, RISC Zero has developed a series of open source tools such as Zeth, Kailua and Bonsai with zkVM based on RISC-V architecture, which not only improves the performance of block verification and rollup, but also provides technical support for the ZK upgrade of Ethereum.
RISC zkVM ecological product matrix: from core technology to scenario applicationRISC Zero is based on RISC The zkVM implementation of the -V instruction set architecture, as a general zero-knowledge computing platform, supports a variety of mainstream programming languages, such as Rust and C++, and can run almost any computing task. Compared with other zero-knowledge technology platforms, RISC Zero's provers and verifiers are completely open source, and developers can generate and verify proofs locally. In addition, RISC Zero’s verifier is compatible with multiple platforms and can adapt to different blockchain ecosystems, simplifying the development process of decentralized applications.
In June this year, RISC Zero released zkVM 1.0. zkVM 1.0 not only supports multiple languages and complex computing tasks, but also uses Continuations technology to divide large-scale calculations into multiple small segments to achieve efficient parallel computing and verification. According to the roadmap, RISC Zero plans to achieve a 20-fold improvement in zkVM performance and cost by the end of 2024. Optimization content includes completely migrating the proof process to the GPU (80% completed), introducing new RISC-V v2 circuit designs, and targeting recursion. Special optimization of circuits, etc. At the same time, R.I.SC Zero is integrating a series of acceleration modules for algorithms such as RSA, Keccak, and ECDSA to improve the performance of Ethereum-related tasks and cryptographic operations.
Revolving around the core capabilities of zkVM, RISC Zero has also developed a series of open source tools and products. For example, by providing proof services through the Bonsai network, developers can generate zero-knowledge proofs without the need for dedicated hardware; through the Steel tool, complex EVM calculations can be transferred to an off-chain environment for operation, while keeping the results verifiable, reducing on-chain execution costs; Blobstream Zero provides more possibilities for data sharing and verification in the modular blockchain ecosystem by bridging the Celestia data availability layer.
Zeth: Prove that the entire Ethereum block is correctly constructedZeth is an open source Ethereum zero-knowledge block prover developed by RISC Zero based on its zkVM technology. Verify the validity of Ethereum blocks through zero-knowledge proofs without relying on traditional validators or synchronization committees. RISC Zero defines Zeth as Type-0 zkEVM, which is fully compatible with the Ethereum protocol and improves development efficiency through code reuse.
Ethereum co-founder Vitalik Buterin divided zkEVM into four categories in the article "Different types of zk-EVMs", among which Type-1 strives to be completely and completely Compromised equivalent to Ethereum; Type-2 strives to be completely equivalent to EVM, but not completely equivalent to Ethereum; Type-3 is almost equivalent to EVM; Type-4 is completely incompatible with Ethereum.
Thanks to the high performance of RISC Zero zkVM, Zeth can complete it in minutes Verification of Ethereum blocks. Test data shows that Zeth can generate block proofs at a speed of 1.1 MHz, and expands the GPU cluster through the "continuations" feature to increase the speed to 4.7 MHz to 6.3 MHz. This performance optimization also reduces the cost of proof generation. According to tests, the proof generation cost for a block containing 182 transactions is only $21.72, and each transaction costs approximately $0.11.
At the same time, in the process of developing Zeth, the RISC Zero team made full use of components of the Rust ecosystem, such as revm, ethers, and alloy, allowing developers to quickly implement the block proof function and apply it to different scenarios . This design provides developers with more flexibility to adjust block construction logic as needed and adapt to future Ethereum improvement proposals.
At the application level, Zeth is zk Rollup, light clients and cross-chain bridges provide efficient solutions. The construction of traditional zk Rollup and zkEVM requires a lot of time and money, which is prohibitive for small teams. Zeth is based on a modular zkVM architecture that allows developers to easily customize the area. Block verification logic. For example:
zk Rollup: Zeth can quickly implement block certification, which can shorten the development cycle of ZK Rollup and reduce capital investment.
Light client: Verify block validity without rebuilding the block, reducing operating costs
Cross-border. Chain Bridge: Zeth can verify the correctness of cross-chain data without leaking sensitive information on the chain through ZKP, which reduces reliance on third parties and reduces the risk of cross-chain attacks.
In May of this year, Zeth It has been successfully expanded to support extracting Optimism block data from the Ethereum main network and generating ZKP to verify the correctness of the block. It also supports verification on the chain. In other words, with the help of Zeth, Optimism can verify transactions more efficiently and resolve transaction disputes.
Bonsai: allows developers to generate proofs without using their own hardwareBonsai is a project designed for zkVM The remote certification service designed by the application allows developers to generate certifications without using their own hardware, thus solving the contradiction between limited computing resources and high costs on the chain. Through Bonsai, developers only need to define the zkVM applications and inputs that need to be executed. Based on the data, Bonsai can run calculations in the background and generate corresponding zero-knowledge proofs. This process does not require developers to deploy additional hardware devices. At the same time, Bonsai utilizes a large number of GPU clusters to support parallel processing of multiple computing tasks. In addition, Bonsai provides simple and easy-to-use API and SDK interface, enableDevelopers can easily integrate it into existing systems, further reducing development difficulty.
Based on this remote certification service, RISC Zero launched the open source tool Bonsai Pay, which combines OAuth2.0 identity authentication and ZKP technology to enable users to use Google accounts Send or receive tokens on the Ethereum network. For example, when Alice wants to transfer funds to Bob, Alice can enter Bob's Google email and transfer amount through Bonsai Pay. Bob can then log into Bonsai Pay, enter his email address and complete Google Account authentication. Bonsai Pay will use OAuth 2.0 to generate an authorization token to prove that Bob is indeed the holder of the email address. Bonsai Pay then calls the Bonsai proof service to generate a zero-knowledge proof proving that Bob's Google account is associated with the wallet address. After the smart contract verifies the proof, it unlocks the funds and transfers them to Bob's wallet address.
During the entire process, Bonsai Pay used ZKP technology to verify the fact that "Bob's Google account is associated with the wallet address" while avoiding the disclosure of any specific Google account details. information.
Another important application of Bonsai is the Bonsai ZK Co-processor ). It uses zero-knowledge proof technology to transfer complex computing tasks from the chain to the off-chain, and generates tamper-proof proofs to ensure the correctness of the results. At the same time, the deployment of Bonsai coprocessor is also very simple. Developers only need to write a zkVM application to process the logic, and call Bonsai through a simple Solidity contract to run the calculation and verify the results. Throughout the process, the Bonsai Proof Service is responsible for generating off-chain zero-knowledge proofs that can be verified on-chain.
Bonsai ZK coprocessor is suitable for on-chain applications that require high performance and low cost. For example, in DAO governance, it can move complex voting calculations off-chain, significantly reducing on-chain gas fees. Bonsai DAO Governor reduces the gas cost of each vote by more than 50% through the co-processor, effectively improving governance efficiency and lowering the participation threshold.
Boundless: Verifiable Computation LayerIn the traditional blockchain architecture, in order to ensure the validity of transactions, all nodes need to repeatedly perform all calculations for each transaction. Although this "global re-execution" mode can ensure security and consistency, it also brings extremely high computing costs. To solve this problem, RISC Zero launched Boundless, which allows a single node to complete a calculation and generate a verifiable zero-knowledge proof. Other nodes only need to verify the proof to confirm the result without repeating the calculation.
Boundless simplifies the verification process through recursive combination technology. It combines multiple small zero-knowledge proofs into an overall proof, allowing the verifier to only check one overall proof instead of having to verify all stages of the proof one by one. In order to further optimize the generation efficiency of zero-knowledge proofs, Boundless has built-in dedicated cryptography acceleration circuits to optimize the efficiency of common tasks such as hash calculations and digital signature verification.
In addition, developers using Boundless do not need to have an in-depth understanding of zero-knowledge technology and can simply write applications in familiar programming languages such as Rust or Solidity. Currently, Boundless is open to developers for free access. Developers can use the proving service provided by Boundless to quickly build and deploy zero-knowledge applications on any blockchain without migrating existing systems or updating verification contracts.
Blobstream Zero: zkVM’s cross-chain bridge that simplifies cross-chain data verificationBlobstream Zero is The zkVM-based cross-chain bridge launched by RISC Zero and Celestia aims to seamlessly connect Celestia's data availability layer to the existing modular blockchain ecosystem. By sharing and verifying data on Celestia, Blobstream Zero enables more convenient data transmission and verification between chains.
As a completely open source public good, Blobstream Zero allows any project or developer to run a local instance and generate a zero-knowledge proof. In addition, Blobstream Zero provides support for the ZK coprocessor. The ZK coprocessor is essentially an off-chain computing tool and therefore requires reliable data to perform calculations. And Blobstream Zero can ingest data from blockchains such as Celestia and can prove that the transferred data is reliable by generating ZK proofs.
Steel: A new paradigm for smart contracts with off-chain execution and on-chain verificationSteel is an open source tool launched by RISC Zero, which uses zkVM technology to achieve off-chain verifiability. Smart contract execution. Through Steel, developers can move EVM operations from on-chain to off-chain execution while generating zero-knowledge proofs to ensure the authenticity and verifiability of calculation results.
Traditional smart contracts need to completely execute all logic on the chain, which not only has high gas costs, but also limits the development of complex applications. Steel's off-chain calculation and on-chain verification mechanism solve this problem. For example, in a simple smart contract, determine whether the ERC20 balance of an account is greater than 1 and increment the counter variable. Traditional methods require complete execution of logic on the chain, while Steel completes calculations and generates zero-knowledge proofs off-chain. Only verification of the proof is required on the chain, without the need to repeatedly execute contract logic.
Currently, RISC Zero has released Steel 1.0, and partners have already developed applications using this tool. For example, in a contract call that handled approximately 400,000 SLOAD operations, Steel moved the computation to off-chain execution and subsequently verified the resulting zero-knowledge proof on-chain. The proof generation cost is less than $10, and the on-chain verification cost is less than 300,000 Gas.
Kailua: a hybrid ZK solution that promotes innovation in Rollup architectureFollowing the release of Zeth, RISC Zero launched Kailua, aiming to provide a hybrid ZK Rollup solution for optimistic Rollup Upgrade plan. Traditional optimistic rollup usually requires a 7-day challenge period, resulting in slower transaction finality. While ZK rollup can quickly achieve finality, the cost of continuously generating zero-knowledge proofs is too high. Kailua combines the best of both worlds, achieving a balance between cost and efficiency through a hybrid architecture. As an extension of the Optimism Kona framework, Kailua not only supports unmodified Kona running on zkVM, but also introduces an innovative dispute resolution mechanism that lowers staking requirements and reduces finality delays, thereby improving system efficiency and availability.
In Kailua's architecture, the dispute mechanism adopts a completely new design. First, its dispute resolution mechanism removes time limits, allowing validators sufficient time to generate proofs when encountering special circumstances such as network interruptions, thereby enhancing the system's resilience. Even in extreme cases, RISC Zero zkVM’s scaling architecture can still prove it in under an hour. In addition, Kailua's on-demand verification feature allows developers to flexibly configure verification frequency and gradually transition to a fully verified rollup model at a lower cost.
Unlike ZK Rollup, Kailua's design does not require continuous generation of proofs. For low-frequency empty blocks or rollups with special contract requirements, Kailua provides a more cost-effective option. At the same time, Kailua also significantly reduces Rollup’s staking cost requirements. The pledge amount of traditional optimistic rollup will increase linearly with a longer finality period, while Kailua's optimized design fixes the pledge requirements, allowing the system to maintain security and activity at a lower cost even in a long period.
Currently, Kailua is completely open source. Developers can use its command line tools to deploy a local Optimism test network and quickly upgrade to a network that supports ZK failure proofs. Kailua also supports simulated fault proposals, helping developers understand how validators challenge error states through zkVM, providing insight into its dispute resolution mechanism. In the future, Kailua will further optimize cost and performance, and expand to support more Rollup frameworks.
SummaryAs can be seen from the above, RISC Zero’s zkVM product matrix is promoting the development of zero-knowledge proof technology in multiple fields. Zeth and Kailua focus on optimizing the Rollup architecture to improve block verification efficiency and dispute resolution speed. Bonsai provides remote certification services, reducing hardware dependence and operating costs, allowing developers to build applications more efficiently. Blobstream Zero provides reliable support for the modular blockchain ecosystem by efficiently verifying cross-chain data. In addition, Steel reduces the gas cost of smart contract execution through the off-chain calculation and on-chain verification model.
Of course, while constantly improving the zkVM product matrix, RISC Zero also continues to promote innovation in the underlying technology of zkVM. Recently, RISC Zero zkVM released version 1.2, introducing a newThe precompilation method allows developers to deploy precompiled logic together with the application without having to be built into zkVM itself. This means developers can add new precompiled logic without modifying the configuration of on-chain verification contracts or coordinating provers, and can achieve performance optimizations without forking or major changes to zkVM. Additionally, by applying definition precompilation, the computational cost of proof generation can be reduced. For example, after Automata integrates RSA precompilation, the execution cycle is reduced from 39 million to 217,000, and the cost is reduced by about 180 times.
With the continuous optimization of zkVM technology, its development potential will be gradually reflected in multiple application scenarios. However, if we want to better unleash these potentials, we still need to It depends on the actual performance of ecological collaboration and technology implementation.