一文读懂Vitalik的EIP-7702新提案:账户抽象的终极药方?

Odaily星球日报Publicado a 2024-05-09Actualizado a 2024-05-09

Resumen

涉 3074、4337、5003 这 3 个账户抽象既往提案,或彻底改变所有人与 Web3 的交互方式。

原文作者:Jarrod Watts

原文编译:Frank,Foresight News

Vitalik Buterin 最新提出了 EIP-7702 提案,这可能是以太坊历史上影响最大的变化之一,本文就将介绍该新提案的有关工作原理以及实现其所需要了解的一切。

首先,EIP-7702 新提案出奇地简短,这让部分人感到困惑,不知道它到底如何运作,为了理解 7702 ,我们首先要了解其中提到的另外三个提案:

  • EIP-4337 

  • EIP-3074 

  • EIP-5003 

让我们从所有这些提案的共同目标「账户抽象」说起——以太坊上的 EOA(「普通」账户)很糟糕,它们风险很大,功能非常有限,而账户抽象则允许用户使用智能合约作为账户,以添加更多功能和安全性来解决这个问题。

一文读懂Vitalik的EIP-7702新提案:账户抽象的终极药方?

EIP-4337 

EIP-4337 于 2023 年 3 月在主网上线,它允许用像账户一样编写智能合约,以便它们可以验证和执行交易,这改进了许多用户体验(UX)。

自发布以来,EIP-4337 得到了广泛的采用,主要由 Polygon 主导,而 Base 在过去几个月中的相关活动也在增多。

一文读懂Vitalik的EIP-7702新提案:账户抽象的终极药方?

EIP-4337 相关的最新创新来自 Coinbase 生态及 Coinbase 智能钱包,它基于生物识别技术,用户体验非常棒,我曾在上周末于 ETH Global Sydney 制作了另一个小型演示来展示这一点。

那么 EIP-4337 存在什么问题?为什么今天又有另一个帐户抽象提案?因为 EOA 仍然是迄今为止使用最广泛的账户类型。

除此之外,大多数 EIP-4337 的智能合约账户都由单个 EOA 签署者控制,下面是示例代码:

一文读懂Vitalik的EIP-7702新提案:账户抽象的终极药方?

因为无法将用户的 EOA「转换」为智能合约账户,所以有这个奇怪的中间步骤解决方案——主要是由于 Web3 应用缺乏对连接智能合约账户的原生支持,如今大多数人仍通过 MetaMask 等插件钱包使用 EOA。

EIP-3074 

这引出了我们的下一个提案:EIP-3074 。

实际上,这个提案是在 EIP-4337 之前提出的,但是它尚未合并到主网,EIP-3074 试图赋予 EOA 更多权力,允许他们将其 EOA 的控制权委托给智能合约。

该提案概述了以下内容,添加两个新的操作码:

  • AUTH:EOA 可以调用 AUTH 来授权给定的智能合约代表其 EOA 执行操作;

  • AUTHCALL:获得授权的智能合约可以使用 AUTHCALL 为 EOA 执行交易;

一文读懂Vitalik的EIP-7702新提案:账户抽象的终极药方?

这实现了与 EIP-4337 许多相同的用例,而无需每个用户部署新的智能合约。一个关键的区别在于交易来自用户的 EOA,而不是一个没有用户任何帐户历史记录、ETH、NFT、代币等的新合约。

一文读懂Vitalik的EIP-7702新提案:账户抽象的终极药方?

对 EIP-3074 的一个常见反应是「如果有人制定恶意合约并且用户委托给他们怎么办?」,毕竟委托给恶意合约可能会导致用户的钱包里的所有加密资产都被抽走。

解决这个问题的方法是钱包服务提供商甚至不允许用户对任何合约进行授权,他们可能会保留一份用户可以委托授权的智能合约白名单列表,并且此列表之外的任何合约都不会显示给用户。

一文读懂Vitalik的EIP-7702新提案:账户抽象的终极药方?

EIP-3074 委托的一个关键点是委托并非永久性的,「EOA 的单个交易会导致 nonce 增加,从而使未完成的授权失效」。

实质上,在用户进行新交易后,委托将不再有效。

一文读懂Vitalik的EIP-7702新提案:账户抽象的终极药方?

EIP-5003 

我们也确实不想赋予 EOA 更多权力。毕竟,这些提案的目标是将用户从 EOA 转移到智能合约账户,那么我们为什么要向 EOA 添加功能呢?

这很好地引出了我们的下一个提案:EIP-5003 。EIP-5003 添加了另一个操作码「AUTHUSURP」,它将代码部署在 EIP-3074 授权地址。

EIP-3074 和 EIP-5003 两者的区别在于:

  • EIP-3074 是对智能合约的临时委托,可撤销;

  • EIP-5003 是从 EOA 永久迁移并从 EOA 「转换」 到智能合约账户;

EIP-3074 + EIP-5003 的一个大问题是它与通过 EIP-4337 的当前账户抽象方案不太兼容,所以以太坊社区的一些人担心我们会通过这两种类型的账户抽象「创建两个独立的代码生态系统」。

EIP-7702 

这就到了 Vitalik Buterin 今天的提议:EIP-7702 ——他提议修改 EIP-3074 ,使其更精简并与 EIP-4337 更兼容,这样我们就不会最终得到两个独立的账户抽象生态系统,还将 EIP-5003 视为永久迁移的下一步。

EIP-7702 提出了一种同时接受 contract_code 和签名字段的新交易类型,在开始执行交易时,它将签名者账户的合约代码设置为 contract_code。在交易结束时,它会将代码重新设置为空。

这和 EIP-3074 一样,实现了 EOA 对智能合约的临时委托功能。然而 EIP-7702 并没有引入新的操作码(这需要硬分叉),而是定义了要调用的函数:

  • AUTH -> 调用「verify」(验证)

  • AUTHCALL -> 调用「execute」(执行)

一文读懂Vitalik的EIP-7702新提案:账户抽象的终极药方?

具体来说,它:

  • 检查你的账户合约代码是否为空;

  • 如果为空,则设置为提供的合约代码;

  • 根据提供的智能合约处理交易的方式执行交易;

  • 将账户合约代码设置恢复为空;

「合约代码」 就是字面意思,智能合约的代码就存储在「合约代码」中。由于 EOA 本身不是合约,所以这个字段通常是空的。然而 EIP-7702 的巧妙之处在于,它会在交易执行期间临时将一些智能合约代码填充到该字段中。

这是一种为您的 EOA 提供新行为(代码形式)的方式,用于执行此特定交易,下一步是使之成为永久性的行为改变,只需选择「在交易结束后不将代码设置为空」。

该提案最棒的一点之一是,它与迄今为止为 EIP-4337 构建的所有账户抽象工作高度兼容,「用户需要签名的合约代码实际上可以是现有的 EIP-4337 钱包代码」。

一旦此项改动生效,用户现有的 EOA 就可以执行任何智能合约代码。通过额外的 EIP,EOA 还可以永久升级以运行特定的代码。

假以时日,这可能会彻底改变我们所有人与 Web3 应用的交互方式。

Lecturas Relacionadas

DRAM ETF Issuer: Samsung, SK Hynix, Micron All Surpass $1 Trillion, the AI Era of Memory Chips Has Only Just Begun

Authors: Dave Mazza, Thomas DiFazio | Source: Deep Tide TechFlow The article, written by Roundhill Investments (issuer of the DRAM ETF), responds to Morningstar's caution about investing in memory chip stocks. Morningstar warns of the sector's history of boom-bust cycles, a lack of economic moats, and potential momentum-driven overvaluation. Roundhill argues the current situation is structurally different due to AI. Key points in Roundhill's rebuttal include: * **Changed Demand & Supply Dynamics:** AI infrastructure, not consumer electronics, is now the primary growth driver for memory demand. New, strict long-term supply agreements with hyperscalers reflect the high capital intensity of advanced manufacturing. * **Existence of a Moat:** High-Bandwidth Memory (HBM), essential for AI, has extremely high manufacturing barriers. The market is dominated by Samsung, SK Hynix, and Micron, with new entrants blocked by technological complexity and long lead times for equipment like ASML's EUV machines. * **Strong Fundamental Outlook:** Analyst consensus projects the three companies will rank among the world's most profitable by 2027, with combined profits of $704 billion on over $1 trillion in revenue. Their operating margins have already reached record highs. * **Valuation Re-rating:** Despite significant stock price gains, memory stocks trade at attractive valuations (e.g., a median NTM P/E of 8.37x for the DRAM ETF) relative to projected explosive EPS growth. Roundhill suggests historical valuation frameworks may no longer apply given the new profitability paradigm. Conclusion: Roundhill contends the rally is justified by fundamentals, marking a structural shift for the memory industry into a new era of sustained, AI-driven demand against constrained supply, rather than a repeat of past cycles.

marsbitHace 15 min(s)

DRAM ETF Issuer: Samsung, SK Hynix, Micron All Surpass $1 Trillion, the AI Era of Memory Chips Has Only Just Begun

marsbitHace 15 min(s)

EF's Epic Reorganization: 20% Layoffs, Budget Halved, Is Ethereum Gearing Up for a Leaner Future?

The Ethereum Foundation (EF) has announced a major organizational restructuring, involving a 20% staff reduction (approx. 54 employees) and a division into functional clusters like Protocol, Access, User, Community, and Institutional layers. Co-founder Vitalik Buterin further revealed plans to cut the EF's budget by around 40% over the coming years, aiming to reduce its annual spending rate from about 15% to roughly 5% by 2030, transitioning to an endowment-driven model. This overhaul is seen as a long-overdue correction to the EF's ambiguous role. As Ethereum grew, the foundation faced persistent criticism over ETH sales, perceived lack of execution, and unclear strategy, often becoming a focal point for community frustration amid ETH's price stagnation. The reform aims to redefine the EF's boundaries, narrowing its focus to core protocol research, public goods funding, and ecosystem coordination, while offloading more applied development work to the broader market. Concurrently, ecosystem forces like the newly formed Ethlabs (founded by ex-EF researchers) and other independent groups are stepping in to fill the space, signaling a shift from a centralized model to a more distributed, collaborative ecosystem structure. The move was notably praised by Solana co-founder toly, who viewed a "leaner" EF as potentially more decisive and agile.

Odaily星球日报Hace 55 min(s)

EF's Epic Reorganization: 20% Layoffs, Budget Halved, Is Ethereum Gearing Up for a Leaner Future?

Odaily星球日报Hace 55 min(s)

Dragonfly Partner Haseeb: The Fastest-Growing Companies of the Future May All Get Stuck at 149 Employees

Dragonfly partner Haseeb explores the distorted economics of AI model pricing, drawing parallels to tax policy. He notes that startups and small teams (under 150 users) enjoy heavily subsidized, fixed-price AI subscriptions (like Claude Code), where the marginal cost of an additional token is effectively zero. This creates a powerful incentive for them to maximize token usage ("token-maxxing") and innovate aggressively with AI automation. In contrast, large enterprises (over 150 users) are forced onto "Enterprise" plans, paying per-token API fees with high (~75%) markups. This acts like a steep "tax" on AI-powered labor, disincentivizing marginal automation and experimental use, and encouraging them to retain more human workers. Haseeb argues this pricing creates a "150-person cliff," a regulatory notch similar to labor laws in France that discourage firms from growing past 50 employees. He predicts the fastest-growing future companies may deliberately cap their headcount at 149 to avoid the punitive enterprise pricing. This would foster an "AI-first" management philosophy obsessed with automation and outsourcing to stay lean. While not intentionally designed, this bifurcated pricing could become one of the most influential de facto tax policies, shaping how AI replaces labor—not through mass layoffs at big firms, but through agile, AI-native startups outcompeting them.

marsbitHace 1 hora(s)

Dragonfly Partner Haseeb: The Fastest-Growing Companies of the Future May All Get Stuck at 149 Employees

marsbitHace 1 hora(s)

How xBubble Breaks Through in the VC-Heavily-Backed OPC Economy

xBubble: Addressing the Structural Gap in the VC-Backed OPC Economy The concept of OPC (One Person Company) is evolving from a buzzword to a significant AI-driven market. While AI coding tools like Replit and Lovable have validated demand from non-technical users wanting to build applications, a key gap remains: the leap from creating a demo to running a stable, evolving business. These tools still require users to manage the development process, including technical judgments for integrations, modifications, and deployments—a major hurdle for OPCs. xBubble, by DAPPOS, tackles this by shifting from "Prompt-to-Code" to "SOP-to-Business." Instead of generating code from instructions, its core is a system of pre-organized SOPs (Standard Operating Procedures) that translate business goals—like "sell World Cup merchandise"—into complete, executable workflows. This includes generating cohesive assets, pages, payment systems, and backend logic. The platform is augmented by a network of third-party service providers who handle infrastructure (hosting, domains, payment setup), acting like "on-site service engineers." Users can pay for these services directly with xBubble credits, simplifying onboarding. This ecosystem aims to deliver not just an app, but a complete, modifiable business launch path. xBubble targets a clear OPC segment: small commercial nodes (e.g., creators, merchants) with existing products, customers, or channels, but for whom a full tech team is unjustifiable. Its potential lies in SOPs accumulating expertise from real cases, improving reliability and reducing delivery costs over time. Additionally, its native support for crypto payments caters to global or digital-native OPCs. In summary, as AI democratizes software creation, xBubble's opportunity is to prove that "SOP-to-Business" provides more immediate value for launching a real, operational business than a powerful but unstructured AI coding tool.

链捕手Hace 1 hora(s)

How xBubble Breaks Through in the VC-Heavily-Backed OPC Economy

链捕手Hace 1 hora(s)

Trading

Spot
Futuros
活动图片