The final step from Web2 to Web3: Why zkWASM?

All articles2个月前更新 wyatt
14 0 0
I hope we can become the Chainlink in this field. Users do not need to be aware of our existence, but with our help, customers can build their own technology stack that seamlessly grafts from Web2 to Web3.

Vitalik Buterin came up with the idea of creating Ethereum because a character he loved in World of Warcraft was modified by Blizzard, and it still represents the original intention of this industry:How to effectively break the fear brought by centralized servers in high-concurrency applications that are popular with the public (for example, games).

As he said in his latest speech at Token2049, there are two wrong paths: either sacrificing practicality for decentralization, or forever becoming an ecosystem that only attracts itself. However, "we are not doomed to be trapped in these two options, but can balance decentralization and practicality."

To achieve this goal, the entireBlockchainThe industry has undergone tremendous changes in the past decade, from singleBlockchainTo modularBlockchain,从一层区块链到二层区块链,交易的TPS和交易量不断提高,但我们到今天仍未见到真正的mass adoption,也让不少从业者陷入了迷茫。

Take rollup as an example. Currently, rollup tends to achieve extreme compatibility with existing blockchain applications and exponential transaction volume expansion in terms of capacity. This seems to have taken into account both decentralization and practicality.L2But it became a "ghost den", why?

One of the reasons is that the current rollup infrastructure assumes that the ease of use and attractiveness of the current blockchain is sufficient to attract Web2-level applications and developers. However, in Github's 2023 development language rankings, the popularity of languages such as Solidity, Cairo, and Move cannot even make it to the top two pages of the rankings.For users, variousL2There have been a lot of discussions in the industry about the separation between the two, the long waiting time for final confirmation, and the centralization problems caused by actual committee governance, so there is no need to elaborate.

We can imagine such a scenario: if developers can use the language they are most familiar with, whether it is Rust, C++ or Go, and produce the games they want according to the development logic they are familiar with without having to master additional cryptographic knowledge, users can control their own game assets and data without spending extra time and money, and no longer have to worry about a centralized demon in a distant place destroying their years of leveling results with just a flick of the finger, or wantonly modifying the rules. So, how will developers and users choose?

This is not a pipe dream, this is actually what the protagonist of this article, Delphinus Lab, and many other zkVM projects are doing.

Why do we need zkVM?

“The future of Ethereum will be multi-chain - a multi-chain vision similar to Cosmos, but with Layer 1 providing data availability and sharing.Safetysex.

—Vitalik Buterin

The future world belongs to multiple chains.Just like every company has a website today, in the future every company/project will have a dedicated rollup connected to Ethereum (or other decentralized value networks). The user's operations on this project will be packaged and sent to the Ethereum mainnet for verification. The dedicated rollup is responsible for providing the best experience for users, and the Ethereum network is responsible for the overallSafetyIt also provides core data storage and the most critical settlement service.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

But as we said before, the current multi-chain vision is not friendly to the world's most mainstream developers and applications. Data shows that the number of Web3 developers accounts for about 0.07% of all developers in the world, and there are even fewer Solidity developers, not to mention niche languages such as Cairo and Move. This means that whether it is to compete for the existing Solidity developer resources of various zkEVMs, or to find another way to let developers master a new language with a very steep learning curve, it is not a way to make incremental progress in a short period of time. From another perspective, a large number of applications developed using traditional Web2 languages cannot be used as blockchain nativecontractHowever, natively running on the blockchain blocks an important path for scaling applications on the chain.

We need a scaling solution that has the best of both worlds: one that is compatible with traditional development environments and can trustlessly integrate applications into the current blockchain ecosystem.

Currently, ZK technology is the most recognized mainstream method for integrating trustless programs into blockchains. However, many people still have the impression that ZK is "difficult to learn" and "difficult to implement". This is because in the early days of ZK technology, people generally used ZK-specific languages such as Cairo and Noire to develop ZK applications, but these languages are actually more difficult for programmers to use flexibly than blockchain development languages such as Solidity.

With the rapid development of ZK technology in recent years, this problem has actually been gradually overcome, and the development of a general-purpose zkVM is no longer an unattainable dream.In 2022, Delphinus Lab released the first open source zkVM that supports WASM, which also marks that Delphinus Lab has taken a key step in solving the layout of trustless application integration.——Readers can read Sinka Gao and several colleagues published in IEEE entitledFor technical details, please refer to the paper. As stated in the paper, “…we propose and implement the first ZKSNARK Wasm virtual machine that supports the Wasm specification and is able to generate concise zero-knowledge correctness proofs of execution results. In addition, by providing ZAWA, existing programs that have been compiled to Wasm can meet the emerging privacy and trust requirements in cloud and edge computing without any modification.”

For readers who don’t know what Wasm is, Wasm is a bytecode supported by major web browsers. It provides an effective compilation target for source languages such as C, C++ and Rust. They will be compiled into your browser and run at near-native speeds on your CPU. In 2019, it was officially accepted by the W3C World Wide Web Consortium as the fourth new network standard, with strong potential for performance revolution.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

As for what zkWASM is, we recommend reading this article by Polygon co-founder SandeepUltimate Guide to zkWASMIn this blog post, Sandeep clearly stated:zkWASM combines the flexibility of traditional programming with the privacy-focusedZero knowledge proofCombined, this brings new use cases for decentralized technologies while ensuring strongSafetyIt has the potential to revolutionize the blockchain industry by combining security, privacy, and interoperability.

Why does Sandeep make such an assertion? First of all, Wasm, as a binary instruction format, was originally positioned to be portable and high-performance, supporting almost all programming languages you can think of, such as C++, Rust, Python, Go, Java, JavaScript, Ruby, Swift, etc. Since almost all web browsers have built-in Wasm interpreters, this means that developers can choose the appropriate language according to their preferences and project requirements to improve development efficiency and code quality. With the addition of ZK, zkWASM is even more powerful. Developers can choose their favorite programming language to write privacy applications without anyZero knowledge proof的知识。可以说,zkWASM兼具安全性、可扩展性、互操作性和隐私保护,它不仅解决区块链和 dApp 的问题,还能加速 ZK-ML 和链上 ML 的实现,是理想中的“强强联合”。

Stay optimistic, but don’t be blind

Due to the rapid progress of zkVM in recent years, some zkVM optimists such as Bobbin Threadbare of Polygon Miden even believe that:

“The best solution under the current circumstances is to build a WASM or RISC-V zkVM, preferably one that supports Rust, Go, C++, and even Solidity. If there is such a universal zkVM, it will be a dimensionality reduction blow to zkEVM.

However, as the creator of the zkWASM open source virtual machine, Delphinus Lab is more cautious. In its 2022 roadmap, zkWASM is the most important glue in the entire layout, but it is far from enough to support the "trustless link web2 application toweb3The reason is hidden in the following formula:

“Developer willingness = economic benefits * tool maturity * amount of reusable code”

– Sinka Gao, Founder of Delphinus Lab

From the right side of the formula, we know that the real weight that a general-purpose virtual machine can have on the willingness of driver developers is not high. Just as the Linux kernel needs powerful devices, drivers, and POSIX APIs to reflect its value, zkVM not only needs to be strong itself, but also needs to leverage mature platforms, richCommunityCode and mature economic effects to achieve a positive cycle of business and technology.

If readers have a better understanding of zkVM, they will find that in addition to Delphinus Lab's zkWASM, there are many first-class teams and solutions active in this field, such as RISC-ZERO, Succint's SP1, Valida, Nexus (2.0 uses Jolt), etc. The main competitive indicator of these virtual machines is the number of instructions that can be proved per unit time. For example, the performance data of RISC-ZERO in 2024 is that it takes 10-12s to prove every million RiscV instructions on GPU 4090. At the same time, Delphinus Lab is also making continuous efforts to optimize the performance of zkWASM. At present, zkWASM can already support 64-bit instruction sets. It takes 15 seconds to prove 1 million instructions on GPU 4090, consuming 64G memory.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

2024 Electric Capital ZK Market Map: Core Infrastructure

But, does performance determine everything? We can go back to the ranking list of development languages on Github over the years. JavaScript, Python, and Java, which dominate the top three, are precisely the scripting languages with the lowest performance.

Performance is only an "enabling" indicator of digital infrastructure, not a decisive factor, and it should not be alienated into the ultimate goal, falling into an arms race that is out of context.Our original intention has always been to have more incremental killer applications. If we predict that the "enabling" problem will eventually be solved, the engineering and hardware optimization of the performance of the ZK backend (stark, gkr, jolt, KZG + folding, etc.) will eventually move towards Moore's Law. Then what is left on the right side of the equation except for performance?

As Munger said, we have to fish where the fish are.web3In terms of mass adoption, the “fish-rich place” will be the browser. At this stage, we cannot say which zkVM will win or whether there will be a hundred flowers blooming, but Delphinuslab’s view is thatWeb3 adoption will still start with mini-programs, and browsers are the heavyweight birthplace of mini-programs:Whether it is the first browser version of Chatgpt, various CMS platforms such as Shoplify and WordPress are first available on the browser, or the browser is used as a Web3walletThe Web is the only truly universal platform that allows applications to be accessed on any device. Moreover, Web applications are constantly evolving, from simple search and email functions to games, video editing, music production, and more.

WASM is binary code designed for browsers.Some researchers have compared WASM to a magic engine that can run the Web instantly anywhere and whenever it is needed with just one click, without downloading or installing. zkWASM inherits this advantage, and users can use these applications in the browser like ordinary applications, without any special hardware or software to run these applications.

Only when there are scenarios and users can there be economic benefits.zkWASM aims to solve the problem of countless small and medium-sized Web2 applications wanting to enter the Web3 world.Compared to traditional Java Script, WASM has the ability to run efficiently on browsers, which will open up the possibility of bringing many other applications to browser terminals, and zkWASM will further bring these applications into the world of Web3, becoming a true entry point for large-scale adoption of Web3.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

Delphinus Lab Roadmap

An open and co-built ecological landscape

“I hope we can become the Chainlink in this field. Users don’t need to be aware of our existence, but with our help, customers can build their own technology stack that seamlessly grafts from Web2 to Web3.

——Sinka Gao, founder of Delphinus Lab”

When technology moves from the laboratory to the market, it is not enough to just talk about technology. The engineering capabilities that turn technology into usable products and the strategic approach to the ecosystem will determine the success or failure of the technology to a greater extent.

Delphinus Lab has been committed to serving small and medium-sized customers wholeheartedly since the beginning. In its cooperation with Blade Games, Delphinus Labs not only helped Blade Games introduce zkWASM for verification of its tower defense game, but also worked together to develop the industry's first solution for developing verifiable games directly from Unity. Game developers can use the familiar C# instead of Solidity, Rust or Cairo, and do not need to spend time and effort trying to unify the rendering and animation of the Unity engine with the solidity/cairo game logic code based on Mud/dojo.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

Using this collaborative development solution as the engine, Blade Games and multiple game studios have developed a number of verifiable full-chain games such as Dune Factory, Craftpunk, and 0xPioneer, a top strategy game on the Scroll chain that is currently undergoing Beta testing. Become the first infrastructure provider in the industry to use the modular ZK technology stack to build a fully on-chain game engine.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

The same is true for the cooperation with MineMatrix. The industry has been suffering from the fact that most of the airdrop benefits are taken away by robots, while real users often gain little. Based on zkWASM technology, MineMatrix has developed a digital game template that allows users to prove that they are real people and receive airdrops by solving interesting NP-difficult problems without revealing their identity information, making fair distribution truly fair. This template is completely flexible and open. Projects can adjust the storyline, modify the game mechanism, or integrate NFT according to their own style or needs. This mechanism based on zkWASM can provide customers with out-of-the-box solutions at any time.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

This is also the positioning of Delphinus Lab. In addition to completing the mission of bringing Web2 developers into Web3 to build verifiable applications, it is more important to stand firm in the positioning of ecological empowerment.I hope that every customer who works with us can have their own technology stack with our assistance, rather than having us become their technical reliance.” said Sinka Gao.

In contrast, many other players in this industry have concentrated their clients on the industry's top projects, but they are likely to fall into the common misunderstanding of traditional 2B service companies, namely "big companies, small projects", just like countless financial IT companies list large state-owned banks as their cooperative clients, but may only help transform their internal OA systems; on the other hand, in the process of cooperation with small and medium-sized customers, they are too all-inclusive and only output packaged solutions, and small and medium-sized customers cannot grow in their capabilities in the process.

Sharing capabilities is one part, and sharing benefits is another part that is more difficult to achieve. The relationship between Delphinus Lab and the validator is a win-win cooperation, not a simple supplier-customer relationship. Taking the three-party cooperation between Delphinus Lab, zkCross and Gevolut Network as an example, on the intuitive platform ZKCross Playground, developers can write code online, compile it into zkWasm-compatible bytecode, sign it with their own private key, and then upload it to the ZKCross node. The node will handle the remaining tasks, such as proof storage, and then store the transaction and proof in the DA layer of the modular blockchain (such as Avail), and forward the proof generation to Gevolut Network.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

During this process, anyone can run a node and share the verification revenue, as well as potential airdrop incentives in the future.Since June this year, Delphinus Lab has opened node operation rights to third parties. Anyone interested in becoming a zkWASM external node can join.And get 3% profit incentives during the testing period.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

There are many such mutually beneficial collaborations, such as the joint release of the zkGo compiler with ETH Storage and Hyper Protocol, which is the first in the industry to compile regular Go code into ZK protocol-compatible Wasm code; cooperation with Pi Squared to integrate zkWASM proofs with its Universal Settlement Layer (USL); and open sourceXiaobai NavigationThe development tool Spin is collaborating with Spin to help Spin users build and run verifiable applications using zkWASM.

Web2 到 Web3 的临门一脚:为什么是 zkWASM?

Delphinus Lab will also stand in the perspective of every participant in the industry and think about how to make every link in the value chain obtain reasonable benefits to promote the healthy development of the industry. Taking the game industry as an example, in the previous articleThe Dilemma and Solution of Web3 GamesThey contributed such thinking by building an application rollup chain through the mini-rollup SDK, in which they provided a one-click lending platform. By lending game internal tokens to users, they solved the problem of difficulty in initial recharge for game users, and effectively acted as a native cross-chain bridge for game assets in circulation, allowing part of the value of game derivative transactions to be captured by the game itself.

At this stage, Web3 entrepreneurs need to consider not how to divide the limited pie, but how to make the pie bigger together. Only when the gate is large enough and the road is smooth enough, will large-scale developers and users be able to enter. With fresh water from the source, Web3 will not fall into the vicious circle of self-enclosure and the confusion of crypto nihilism.

Many people believe that the current crypto cycle is a virtual cycle, and the market has become a game of ups and downs that is a vassal of the U.S. stock market. But in fact, real foundation-level innovation is bursting out on the edge where public opinion does not pay attention.Vitalik said, “We are not incryptocurrencyThe industry is in its early stages, butcryptocurrencyThe real builders in this industry should also have the confidence to predict that the market will eventually return to the "application cycle" with real revenue, real monopoly, and real use cases.As Sinka hopes, in the next five years, zkWASM can prove itself to be a project that can achieve an economically positive cycle, helping Web2 applications that want to enter Web3 to get the finishing touch and become an important part of driving the industry's flywheel.

The article comes from the Internet:The final step from Web2 to Web3: Why zkWASM?

Related recommendations: Read ZK by numbers:L2 Spending on ZKP has exceeded $60 million, and zkRollup is gradually rising

This article will explore the growth, adoption, network health, and competitive dynamics of zero-knowledge at the application and infrastructure level.Zero knowledge proofZero-Knowledge Proofs – This is the most important yet least understood technology in our industry…

share to
© 版权声明

相关文章