header-langage
简体中文
繁體中文
English
Tiếng Việt
Scan to Download the APP
Partnered With:

ZkSync: How do I extend it while keeping it safe

Read this article in 7 Minutes
Network congestion and Ethereum's high fees have created a mature market for EVM-compatible Layer2 projects and L1 competitors.
The original title: the introduction | zkSync: to expand, not safety downgrade"
原文作者: Nichanan Kesonpat
原文编译: 阿剑



-ZKSync: The first general-purpose programmable ZK-Rollup -

Network congestion and Ethereum's high fees have created a mature market for EVM-compatible Layer2 projects and L1 competitors. Because developers can deploy decentralized applications with little need to switch tools, and because users driven away by the high price of the Ethereum mainnet welcome such solutions, they can present themselves as pioneers on the throughput upgrade road.


But such solutions often face serious security trade-offs. Side chain technology relies on a separate consensus mechanism (from the mainnet), thus introducing the problem that groups of verifiers can band together to steal or freeze user funds. These risks may not be significant right now, but they will accumulate over time. One successful attack is enough to have a fatal impact on businesses and users.


Decentralized Exchanges (DEX) and Lending Agreements are almost the largest consumers of eEthereum's network, with more than $29 billion locked up in the three largest lending agreements. At the time of this writing, monthly turnover of DEX was over $65 billion. To accommodate the billions of dollars locked up in DEFI applications today, and the trillions of dollars that will migrate from traditional finance in the future, scalable throughput solutions should be capable of supporting a full range of economic activities, while there should be no upper limit to the amount of capital that can be protected.


Future-oriented extension technologies should rely to the maximum extent on the security of the base layer (  Side chain & have spent And relies as little as possible on game-trust assumptions (both optimistic rollup and Plasma do not). That's why we believe the ZK-Rollup is the only viable expansion option in the long term.


Systems like ZK-Rollup, which use "proof of validity", are fundamentally   Put an end to & have spent The possibility of containing invalid transactions significantly reduces the value that an attacker can extract. ZK-Rollup is the only extension solution that relies on cryptographic security to remain robust no matter how much value is locked in the system. Cryptoeconomics security guarantees (" proof of fraud ") do the opposite, and the system starts to break down whenever malicious acts become more profitable than honest ones.


Cryptoeconomics can be useful in kick-starting an ecosystem, and there is still a place for designing higher-level protocols. However, as a security mechanism for extended solutions, we believe that ultimately it is only a transitional solution before the advent of general-purpose programmable ZK-Rollup. Because it (Universal Programmable ZK-Rollup) can accommodate mainstream application scenarios, provides full composability, and does not have the risks that current solutions face. That was our vision when Matter Labs launched ZKSync.


The first general-purpose programmable ZK-rollup


ZKSync is the first general-purpose, open source, EVM-compliant ZK-Rollup solution. For protocol and application developers, ZKSync provides an automated compiler that converts Solidity and Vyper smart contracts into ZKEVM bytecode. This also means that deployment and maintenance of field tested code on ZK-rollup is minimal additional overhead. EVM compatibility also makes it easy for wallets and other ecological infrastructures, such as Etherscan and Infura, to integrate with ZKSync.


ZKSync has a throughput of up to 3,000 BPS, which is limited by the fact that ZK-Rollup needs to expose data on the chain, whereas Ethereum's chain has limited data capacity. To accommodate the diversity of network activity and user activity, we have an additional protocol --   zk-Porter  Its data is only exposed off-chain, so it can handle up to 20,000 strokes per second.


Nodes on both networks can interoperate with each other, but ZkPorter is 100 times cheaper to use (for example, a Uniswap transaction costs less than $0.03). Users can choose to use ZK-Rollup or ZKPorter based on their preference for security and cost, on a per-transaction basis -- those who prefer security can choose to operate on ZK-Rollup, and those who prefer cheap can choose ZKPorter.


In the medium term, ZKPorter addressed the data availability issue and improved ZKSync's throughput and user experience without sacrificing the key security attributes of the existing extension solution. Participants in the network (called "guardians") are locked in deposits and penalized for breaking the availability of data. In the future, ZKSync can become even more powerful when combined with ETH 2.0 advanced sharding technology. In this paradigm, data availability is tightly coupled to the security of the network, because the data availability layer is secured by the Ethereum network itself.


As a result, ZKSync not only addresses the issue of security scaling and can address immediate and even medium-term needs, its roadmap also enhances Ethereum's long-term plans. ZKSync and ETH2.0 sharding can eventually combine to help us realize our vision of maximizing scaling and minimizing the sacrifice of decentralization.


MEV mitigation with privacy


The problem of "Mev for Miners" is manifested in the form of high network fees and "sandwich attack" on users, which causes huge value leakage while sacrificing the interests of ordinary users. To alleviate this problem, Matter Labs plans to introduce ZKSync in future versions. Time Lock Encryption & NBSP; Technology. This feature prevents anyone, including the block producer, from seeing the actual contents of the transaction before the transaction is linked.


This privacy-based approach to mitigating the MEV problem is right up Matter Labs' league, because it relies on cryptographic components in the same pedigree as those that protect the protocol itself.


In addition, having ZKSync implement a general-programmability recursive PLONK circuit is a built-in, low-cost way to make it easy for smart contracts to verify zero-knowledge proofs. Native support for privacy features means that private transactions such as Tornado Cash can be cheaper to use on ZKSync than on optimistic rollup.


In the long run, security is more important than scalability


Due to the lack of a mature cross-chain solution, the liquidity fragmentation of the DEFI world remains a major barrier to the expansion solution truly winning the market. As scaling scenarios grow, we expect that in the near term, DeFi applications will exist simultaneously on multiple L2 (and certainly on L1), as long as the overhead of maintaining code on different networks remains low.


As for Universal Programmable Expansion, code portability and user experience will win over most projects. The rapid popularity of side chains proves that long tail developers will take the path of least resistance in order to get their app to market quickly.


Matter Labs will work closely with early adopter teams who want to integrate ZKSync into their products to make the development and deployment experience as smooth as possible.


Over the medium to long term, the differences in performance and end-user experience will disappear, with the only differences being security guarantees and the network effects they build up over that time. Given the potential for growth in the industry, app developers and high-value liquidity providers will opt for expansion solutions that offer greater security.


Verifier, guardian and ZKSync protocol token


ZKSync makes money by charging transaction fees for evidence verification and data disclosure (on the chain), as well as state storage and proof generation (off the chain). Network participants called "validators" are responsible for generating zero-knowledge proofs, while "guardians" nominate validators, monitor P2P transaction traffic, and detect censorship.


Both the verifier and the guardian need to lock down a native protocol token to participate, with the benefit of receiving network fees. The more transactions ZKSync handles, the more profit the network makes from the fees. Native protocol tokens enable users to become service providers of the network and/or participate in the governance of the network. Tokenization allows ZKSync to maintain minimal but sustainable value extraction -- users can become stakeholders, operators, and network owners at the same time.


In the spirit of decentralization, it is also important that the software requirements and hardware requirements for participating in cybersecurity mechanisms remain low so that users are likely to actually participate. As a result, guardians can choose to track only a small number of transactions, using a regular laptop or cloud server. We also expect that someone will provide hardware acceleration based on FPGA in cloud services, so that more people can become validators.


The future of zkSync


ZKSync has reached several key milestones in the first half of 2021. The first is the release of ZKSync 1.x, which provides native coinage, transfer, and NFT atomization interchange. More recently, ZKSync 2.0& NBSP; Launched on the Open Beta web, it provides EVM compatibility and Solidity/Viper code conversion capabilities.


Next milestones include:


  · The main network of ZKSync 2.0 was launched, and the protocol token and its liquidity mining program were introduced
 ·  引入时间锁加密功能以缓解抢跑问题、最小化 MEV 问题
 ·  基于 FPGA 的硬件加速以缩短证明的生成时间
 ·  隐私特性
 ·  ZincVM 原生 Rust 支持


(after)


The original link



Welcome to join the official BlockBeats community:

Telegram Subscription Group: https://t.me/theblockbeats

Telegram Discussion Group: https://t.me/BlockBeats_App

Official Twitter Account: https://twitter.com/BlockBeatsAsia

举报 Correction/Report
Choose Library
Add Library
Cancel
Finish
Add Library
Visible to myself only
Public
Save
Correction/Report
Submit