金色财经报道,以太坊开发者barryWhiteHat发文称,随着零知识证明虚拟机(zkEVM)的商品化,出现了一个有趣的机遇:既能提供私有智能合约基础设施,又能保持与以太坊虚拟机(EVM)的兼容性。开发者可以编写 Solidity 代码,并通过特定版本的 Solidity 编译器或一些后处理工具进行编译,从而创建私有智能合约。
围绕私有全局状态与隐私存在一些重要的权衡,其核心原因在于:要进行证明,就必须知道自己要证明的内容。因此,无法存在这样一种私有智能合约 —— 它拥有你并不知晓的全局公开状态。由此可推,也无法存在带有全局私有状态的私有智能合约。例如,Uniswap这样的应用就无法以私有形式实现,因为证明者需要知晓两个资金池的余额,才能证明一笔 swap(交易)的执行是正确的。
因此,一些我们熟知且青睐的应用,目前无法以私有形式实现,除非我们拥有输入输出(IO)功能 —— 这正是 IO 至关重要的原因。它能让我们构建一个完全私有的以太坊,且其信任假设与原生以太坊完全一致。
不过,本文旨在探讨如何通过在 reth 中添加 pstore 和 pload 这两个操作码,将其编译到零知识证明虚拟机(zkEVM)中,从而实现一种私有智能合约 —— 这类合约拥有私有用户状态,但不具备私有全局状态。
Disclaimer: The information on this page may come from third parties and does not represent the views or opinions of Gate. The content displayed on this page is for reference only and does not constitute any financial, investment, or legal advice. Gate does not guarantee the accuracy or completeness of the information and shall not be liable for any losses arising from the use of this information. Virtual asset investments carry high risks and are subject to significant price volatility. You may lose all of your invested principal. Please fully understand the relevant risks and make prudent decisions based on your own financial situation and risk tolerance. For details, please refer to
Disclaimer.
Articoli correlati
Bitcoin Gains 11.87%, Ethereum Up 7.3% in April 2026
According to Coinglass data reported by ChainCatcher, Bitcoin (BTC) and Ethereum (ETH) recorded monthly returns of +11.87% and +7.3%, respectively, in April 2026. Both assets posted notable rebounds, with Bitcoin extending gains into its second consecutive positive month after stabilizing in
GateNews14m fa
Bitcoin and Ethereum Options Worth $21.4B Expire Today as IV Drops Sharply
According to Greeks.live, on May 1, 23,000 Bitcoin options with a notional value of $17.4 billion expire today, with a Put Call Ratio of 1.13 and a maximum pain point of $76,000. Additionally, 175,000 Ethereum options worth $4 billion are set to expire, with a Put Call Ratio of 0.94 and a maximum pa
GateNews1h fa
Ethereum Spot ETFs See $236.43M in Net Outflows Yesterday, Fourth Consecutive Day of Losses
According to ChainCatcher, Ethereum spot ETFs saw net outflows of $236.43 million yesterday (April 30), marking the fourth consecutive day of losses. BlackRock's Staked ETH ETF (ETHB) led inflows with $29.10 million, bringing its historical net inflows to $70.82 million. BlackRock's ETF (ETHA)
GateNews4h fa
Bitcoin Spot ETFs See $23.5M Net Inflows Yesterday; Ethereum ETFs Post $23.7M Outflows
According to Farside Investors, U.S. spot Bitcoin ETFs recorded net inflows of $23.5 million yesterday (April 30), with IBIT receiving $19.1 million and FBTC $26.6 million. Ethereum ETFs, meanwhile, posted net
GateNews5h fa
Arbitrum DAO Votes to Release 30,766 ETH to DeFi United Following Kelp DAO Attack
According to The Block, Arbitrum DAO is voting to release approximately 30,766 ETH frozen by the Arbitrum Security Council to the DeFi United initiative formed in response to the Kelp DAO attack earlier this month. In the first hour of voting, 16.9 million ARB tokens were cast in favor, with the vot
GateNews5h fa