arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.10535cs.SEcs.DCcs.PF
收藏

我应该在哪里部署我的合约?一份实践经验报告

Where Should I Deploy My Contracts? A Practical Experience Report

Cătălina Lazăr, Gabriela Secrieru, Emanuel Onica

AI总结:

针对开发者面临的智能合约多网络部署选择难题,报告通过评估投票(高安全需求)和供应链(成本敏感)两类DApp用例,分析指标在L1提供商(Alchemy、Infura)与L2 rollup(Arbitrum One、OP Mainnet)间的差异,为部署决策提供实践参考。

摘要:

区块链网络为智能合约支持的去中心化应用(DApps)提供了可靠的信任锚。以太坊生态系统目前涵盖了大多数支持智能合约代码兼容运行的区块链网络。近年来,许多以太坊Layer 2(L2)rollup解决方案应运而生,旨在扩展基础Layer 1(L1)网络,从而降低交易费用并丰富使用场景。此外,提供L1和L2网络基础设施访问的区块链服务提供商数量持续增长。开发者面临众多部署选项,必须在成本收益与信任损失之间权衡——信任问题仍是L2的痛点。这一权衡的决定性因素可能是用例本身,取决于其安全需求。不过,成本和性能评估不容忽视,且应基于一组可衡量的指标,尽管选择合适的指标可能很复杂。在这份实践经验报告中,我们探讨了多个此类指标在选择不同服务提供商和rollup时的相关性。为此,我们对两种DApp用例进行了评估:一是安全需求高、适合L1部署的投票DApp,二是对成本敏感、L2可作为选项的供应链DApp。我们分析了一组基础指标:针对L1部署场景,比较了两个高使用率访问提供商Alchemy和Infura;针对L2部署场景,比较了两个最受欢迎的rollup——Arbitrum One和OP Mainnet(Optimism)。

英文摘要:

Blockchain networks provide a reliable trust anchor to decentralized applications (DApps) backed by smart contracts. The Ethereum ecosystem now encompasses most blockchain networks that provide compatible support for smart contracts code. Recently, many Ethereum Layer 2 (L2) rollup solutions emerged, meant to scale the base Layer 1 (L1) network, consequently decreasing transaction fees and diversifying the usage scenarios. Furthermore, the number of blockchain providers that offer access to the network infrastructure for both L1 and L2 continuously increases. A developer is faced with a multitude of deployment options and must weigh between the gains in costs and the losses in trust that are still an issue with L2. A decisive factor in this trade-off can be the use case itself, depending on its security requirements. Still, the evaluation of costs and performance cannot be ignored and should rely on a set of measurable metrics, although choosing the right metrics can be complicated. In this practical experience report, we explore the relevance of several such metrics in choosing between different providers and rollups. For this purpose, we perform evaluations for two use cases of DApps: a voting DApp with high security demands, suited for L1 deployment, and a cost-sensitive supply chain DApp, where L2 can be an option. We analyze a set of basic metrics by comparing these between two highly used access providers, Alchemy and Infura, for the L1 deployment case, and between two of the most popular rollups, Arbitrum One and OP Mainnet (Optimism), for the L2 deployment scenario.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑