Arbitrum Stylus 主网已上线:引入 WASM VM 允许使用 Rust、C 和 C++ 编写合约

深潮Pubblicato 2024-09-04Pubblicato ultima volta 2024-09-04

Stylus 为开发智能合约提供了高效且安全的编程工具。

自 2021 年 8 月 31 日 Arbitrum One 正式推出以来,Arbitrum 生态系统为开发者提供了一系列灵活工具,以帮助更好的释放想象力,并在区块链上构建更强大、高效和独特的产品,而今天在 Arbitrum One 和 Nova 主网上激活 Stylus则是又一个里程碑,并将进一步增强 Arbitrum 在赋能开发者方面的努力。

恰逢 Arbitrum 三周年庆典,目前 Arbitrum Stylus 已在 Arbitrum One 和 Nova 主网上推出,未来 Orbit 链也将有机会自行决定是否使用和实验Stylus这项新技术,毕竟,Arbitrum 一直以来的宗旨都是:你的链,你的规则

目前,Solidity 是以太坊上最广泛使用的智能合约语言之一。不可否认 Solidity 在塑造区块链方面发挥了重要作用,并将在未来继续发挥作用。然而,使用 Solidity 构建智能合约时存在一些挑战,从数据维度来看,估计目前大约有 20,000 名 Solidity 开发者,这一数字远低于 Rust 的 300 万开发者,以及 C / C++ 的 1200 万开发者。

Stylus 为开发智能合约提供了高效且安全的编程工具。任何编译为 WebAssembly(WASM)的语言都受到支持,包括 Rust 及其他语言。这是因为 Stylus 引入了一个与 EVM 完全互操作的平行虚拟机,旨在执行 WASM 而非 EVM 字节码。该虚拟机并不是替代 EVM,而是与其协同工作,以促进状态转换和执行各自的字节码,与 EVM 相比,它在性能上进行了优化。

此外,WASM 由于对 Rust 和 C 语言进行了数十年的编译器开发,其程序比 Solidity来得更高效。这使得开发者能够创建复杂的加密和计算任务,否则这些任务将极其耗费 Gas。另外值得一提的是,Solidity 合约和 WASM 合约是完全可互操作的。Solidity 合约可以自由调用 Rust 合约,反之亦然。若选择使用 Rust,开发者可以立即访问完整的开发工具套件和链上功能。

借助这些新的编程语言和高效的 WASM 虚拟机,开发者拥有了更具表现力的编码工具,可以帮助他们进一步探索链上创新的边界。此外,Stylus 引入的 WASM 虚拟机可以显著降低复杂智能合约的 Gas 成本,这意味着对于计算和内存密集型应用来说,使用 Stylus 将大幅降低他们的运行成本。

在 Arbitrum One 和 Nova 主网上推出 Stylus 与我们扩容以太坊的愿景相一致,未来通过 Stylus 我们将更有能力探索区块链更广阔的未知领域,同时我们希望更多开发者加入我们这段旅程。

点击此处观看视频进一步了解 Stylus

与我们一起构建

虽然 Stylus 生态系统充满了增长和扩展的可能性,但在推出之际,Stylus 生态系统仍处于早期阶段。尽管启动所需的基本组件已经到位,但我们还是很期待能通过生态系统的扩展,为大家提供更多开发工具、和功能以进一步促进创新。这意味着第一批使用 Stylus 的先锋者们将能够在积极构建的过程中同时帮助塑造和完善 Stylus。

目前已经有许多早期采用者团队正在使用 Stylus,下面我们将通过一些项目案例来让大家进一步了解 Stylus。

  • Renegade Finance

Renegade 正在构建一种「链上暗池(onchain dark pool)」,这是一种新型的具有隐私保护能力的去中心化交易所。与传统金融中的暗池类似,Renegade 实现了隐藏规模的交易,以达到高质量的执行效果,并且没有 MEV、滑点、价差或价格影响。在其底层,Renegade 利用多方计算(MPC)和零知识证明来确保交易前后的隐私。

Renegade 创始工程师 Andrew 介绍:

「如果没有 Stylus,这个交易所不会如此快速、便宜和安全。」

  • Superposition

Superposition 的 AMM 合约「Longtail」是一种集中流动性类型的 AMM,旨在实现无缝的跨链流动性,同时最小化市场风险。得益于 Stylus,Longtail 旨在将所有流动性集中在一个合约中,每个池之间仅共享一个资产(fUSDC)。该 AMM 还支持 Permit2,使用户能够更无缝、更低成本的与代币进行交互。

Superposition 创始人 Alex 表示:

「Stylus 是一个两全其美的解决方案,它结合了 Rust 生态系统的表现力、经济性和安全性,以及 EVM 的丰富性。我们选择 Stylus 来构建 EVM 上最低成本和最安全的 DeFi 套件,同时兼顾可组合性。Stylus是实现这一切的游戏规则改变者。」

  • Crypto Valley Exchange

Stylus 为 Crypto Valley Exchange 提供了利用 Rust、WASM 和 LLVM 的工具,使得 Crypto Vally 团队可以开放一个高效且与以太坊生态完全互操作的前沿智能合约。这一能力使团队能够在链上实现衍生品交易的投资组合保证金管理。

Crypto Valley Exchange 首席技术官 Ivan 表示:

「多亏了 Stylus,我们可以充分利用 Rust、WASM 和 LLVM 的潜力,创建先进且高效的智能合约,同时保持与整个以太坊生态的完全互操作性。Stylus 成为了我们在链上实现全面功能的衍生品交易投资组合保证金管理的唯一选择。」

  • Fairblock

Fairblock 利用 Stylus 实现多方计算(MPC)方案,例如阈值身份基础加密,这在仅依靠 EVM 操作码的情况下是不可行的。这些算法释放了构建多种应用程序的潜力,包括防抢先交易的订单、玩家对玩家(PVP)游戏、NFTs 盲盒、抗胁迫投票以及机密 AI 等。

生态系统支持

Stylus 的应用离不开整个生态系统的共同推动,Web3 的许多伙伴们正在齐心协力,让 Stylus 变得更加普及、人人可用。

  • Etherscan:备受欢迎的区块浏览器和分析平台 Etherscan 正在支持 Stylus 合约在 Arbitrum rollups 和 orbit 链上的验证和交互,从而增强对 Stylus 智能合约的信任和可访问性。

  • OpenZeppelin:作为开源智能合约库和安全解决方案的提供者,OpenZeppelin 正在为 Rust 构建 Stylus 库,旨在使开发更加安全可靠。这将使开发人员能够加速 Stylus 的开发。

  • Tenderly:作为全栈 Web3 基础设施提供者,Tenderly 将通过区块发现、执行和模拟来支持Stylus。他们的路线图中还包括改进追踪和虚拟测试网,以提高Stylus的兼容性。

下一步规划

未来 Offchain Labs 将继续致力于开发 Stylus SDK 并改进 CLI。Offchain Labs 承诺以开放、透明的方式构建经得起时间考验的产品。为了帮助更多人了解 Stylus,未来几周 Arbitrum 将上线多个活动。以下是一些值得关注的活动:

  • Stylus AMA 活动

从 9 月 2 日开始,Arbitrum 基金会每周将会举办 AMA 活动,邀请使用 Stylus 的团队分享他们的开发的经验,并讨论这些工具为他们的产品及服务带来了哪些赋能。

  • 主网铸造

为了庆祝 Stylus 的发布,Arbitrum 基金会还将为首个由 Stylus 提供支持的 NFT 合约举办铸造活动!这款 NFT 由艺术家 Jimena Buena Vita 所创作,将于 2024 年 9 月 9 日开始铸造。

  • StylusPro 系列

我们计划将于 9 月底和 10 月底举办直播研讨会,该活动将面向对 Stylus 感兴趣的高级开发者,旨在鼓励使用 Stylus 在 EVM 上构建以前不可能实现的事物或创新用例,比如:

  • 零知识证明;

  • 25519 曲线验证及其他密码学方法;

  • 完全同态加密;

  • 期权定价的 Black Scholes 模型;

  • 存储证明。

  • Stylus 迭代

Stylus 迭代计划旨在鼓励 Stylus 智能合约和工具的早期开发,从而最终使 Stylus 可以服务于更广大的加密社区、生态, 并开拓新的应用潜力。

目前,一项 DAO 提案正在寻求为Stylus 迭代计划提供高达 500 万 ARB 的奖励。该提案目前正在等待 Arbitrum DAO 的反馈,如果获得通过,团队申请将于 10 月 4 日开放。

结语

作为 Arbitrum 有史以来最大的执行层升级,Arbitrum Stylus 使开发人员不必局限在传统 Solidity 语言,而能够使用他们最喜欢的编程语言(包括 Rust、C 和 C++)部署应用程序,并与 EVM 完全可组合,这不仅使得开发者和用户体验更上一层楼,更让 Arbitrum 生态面向全行业乃至 Web2 行业的应用打开了大门,未来随着 Stylus 的不断采用与发展,期待 Arbitrum 生态更多精彩表现。

Letture associate

Warsh's First Day in Office, Markets Deliver a 'Wake-up Call': Rate Hike Expected This Year

On his first day in office, newly inaugurated Federal Reserve Chairman Warsh received a stark market warning, with expectations now fully pricing in a 25-basis-point interest rate hike this year. The shift was triggered by hawkish remarks from Fed Governor Waller, who stated that inflation is now the key policy "driver" and that the odds of a hike or cut are evenly split. This sent short-term Treasury yields higher. Waller signaled a significant pivot in his stance, citing disappointing inflation and labor data. He suggested removing "easing bias" language from Fed statements and did not rule out future rate increases if inflation fails to recede, though he noted immediate action isn't warranted without signs of unanchored inflation expectations. Chairman Warsh faces immediate pressure at his first FOMC meeting in June. With the preferred inflation gauge at a three-year high, analysts warn that failing to hike could be interpreted as an implicit easing of policy. The geopolitical situation in the Middle East is adding to existing price pressures. The market's expectation for a hike contrasts sharply with earlier forecasts for multiple cuts. While long-term Treasury yields have been contained by lower energy prices recently, analysts note they remain under structural upward pressure. Warsh's swearing-in at the White House highlights political scrutiny over Fed independence. However, the market has made it clear that inflation is the most urgent challenge, leaving the new chairman little time to settle in.

marsbit4 h fa

Warsh's First Day in Office, Markets Deliver a 'Wake-up Call': Rate Hike Expected This Year

marsbit4 h fa

Has Microsoft Lost Its Way in the AI Race, and Can Copilot Bring It Back on Track?

Microsoft, once seen as an early AI frontrunner due to its investment in OpenAI, is navigating a strategic shift amid increased competition. Its initial reliance on OpenAI’s GPT models has been complicated by OpenAI’s growing ambitions as a direct competitor, rapid advancements from rivals like Claude and Gemini, and the disruptive rise of AI agents, which challenge its traditional SaaS business model. These factors contributed to stock declines and slower-than-expected adoption of its flagship Copilot products. In response, CEO Satya Nadella has taken a hands-on role in product development, signaling the urgency of change. Microsoft is pivoting from a model-centric strategy to a "model-agnostic" enterprise platform approach. It aims to become the foundational layer connecting various AI models—from OpenAI, Anthropic, or its own new "Superintelligence" team—with enterprise workflows, data, security, and cloud services. Recent organizational changes merged consumer and enterprise Copilot teams to accelerate innovation, exemplified by new products like Copilot Tasks and Copilot Cowork. However, this transformation comes at a high cost. Microsoft faces massive capital expenditures, potentially reaching ~$190 billion by 2026, to support AI infrastructure. While its platform strategy shows early signs of traction with growing Azure AI revenue, it must balance startup-like agility with the reliability expected by enterprise clients. The core challenge is no longer being the sole AI winner but defending its position as the essential enterprise software entry point amidst rapid technological commoditization and the shift towards always-on AI agents.

marsbit5 h fa

Has Microsoft Lost Its Way in the AI Race, and Can Copilot Bring It Back on Track?

marsbit5 h fa

Why Haven't Forex Stablecoins Taken Off?

Why FX Stablecoins Never Took Off: A Path Forward via Synthetic FX Despite the explosive growth of stablecoin-powered digital banking, which has seen ~$6B in VC investment and a 24x surge in crypto card spending in under a year, a major limitation persists: these banks are essentially dollar-only accounts. This leaves 95-99% of global accounts, which are denominated in non-USD currencies, underserved. Attempts to create native foreign currency (FX) stablecoins (like EURC) have largely failed, with total FX stablecoin TVL at ~$600M compared to $400B for USD stablecoins—a 700x gap. These FX tokens face critical challenges: fragile pegs due to low liquidity, limited exchange/FinTech acceptance, poor on/off-ramps, complex regional compliance, and a chicken-and-egg adoption problem. The article argues that the solution lies not in competing with entrenched USD stablecoin networks (USDT/USDC), but in adopting a synthetic FX model inspired by traditional finance. Specifically, it advocates for Mark-to-Market Non-Deliverable Forwards (NDFs)—cash-settled FX derivatives that allow users to maintain underlying USD stablecoin holdings while having their account balance and P&L denominated in a foreign currency. This approach offers key advantages: strong oracle-based pegs, retention of deep USD stablecoin liquidity and yield, superior on/off-ramps, scalability to any currency with a reliable feed, and capital efficiency. It mirrors how modern institutional FX markets operate. Primary use cases for on-chain NDFs include: 1. **Digital Banks/Wallets:** Enabling multi-currency accounts for international users without leaving the USD stablecoin ecosystem, boosting deposits and retention. 2. **FX Carry Trade Vaults:** Offering access to sovereign interest rate differentials (e.g., earning yield on BRL) in a more stable and scalable format than crypto-native products like Ethena. 3. **Global Enterprise Payments:** Allowing merchants to receive payments in local currency equivalents while settling in USD stablecoins, similar to services offered by Stripe for fiat. The conclusion is that synthetic FX, not native FX stablecoins, is the viable path to integrating foreign exchange into the growing stablecoin digital banking landscape, potentially unlocking the next phase of institutional DeFi and multi-trillion-dollar global adoption.

链捕手5 h fa

Why Haven't Forex Stablecoins Taken Off?

链捕手5 h fa

Trading

Spot
Futures
活动图片