# WORLD APP更新使其对OPTIMISM的负荷减少了三分之二

By [simple#8720](https://paragraph.com/@ta-ra) · 2023-09-26

---

“Tools for Humanity（TFH）”贡献团队发布了一项更新，通过捆绑交易，显著提高了[WORLD APP](https://worldcoin.org/blog/worldcoin/world-app-faqs)钱包的可扩展性和成本效益。该更新结合了批处理和压缩等技术，以消除一大部分第一层（L1）的燃气费用。

总体而言，费用支出已大幅削减（TFH资助了WORLD APP用户的燃气费用），并且对乐观情绪的负荷已经减少了三分之二。自更新发布以来，WORLD APP的单日交易量达到了50多万笔交易，创下历史新高。

[https://twitter.com/worldcoin/status/1699000546022117782?ref\_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1699000546022117782%7Ctwgr%5Ed2da2bcc68b4ef8ae311d2165da0e07ee8897931%7Ctwcon%5Es1\_&ref\_url=https%3A%2F%2Fworldcoin.org%2Fblog%2Fannouncements%2Fnew-world-app-update-slashes-optimism-load-two-thirds](https://twitter.com/worldcoin/status/1699000546022117782?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1699000546022117782%7Ctwgr%5Ed2da2bcc68b4ef8ae311d2165da0e07ee8897931%7Ctwcon%5Es1_&ref_url=https%3A%2F%2Fworldcoin.org%2Fblog%2Fannouncements%2Fnew-world-app-update-slashes-optimism-load-two-thirds)

### 成本分解

总体而言，World App的交易成本可以分解如下：90%用于以太坊的L1燃气费用，剩下的10%用于Optimism的L2燃气费用。成本的大部分是由于交易的大小（即其数据大小），而不是它们的操作内容。

### 批处理

World App对所有用户账户都使用了[Safe](https://safe.global/)。这会增加一些交易额外开销，但允许进行优化，从而在规模上使它们具有成本效益。

其中一种优化是使用[MultiCall](https://optimistic.etherscan.io/address/0xcA11bde05977b3631167028862bE2a173976CA11)合约来批处理多个合约常量函数调用的结果，并将固定开销分摊到多个交易中。仅仅这一项就可以在批处理足够大的情况下节省高达三分之一的成本。

批处理大小由交易速率和两个参数决定：最大批处理大小和最大延迟。随着交易的到来，它们被排队。一旦队列大小等于最大批处理大小，或者最旧的交易已经达到最大延迟，它就会被提交。这种方法适用于任何Safe交易。

### 压缩

为了减小交易大小，TFH及其合作伙伴已经实施了基于L1和L2之间价格差异的压缩。压缩算法在L2上运行。

其中一种特定的优化技术是开发并[上传](https://github.com/Consensys/gnark/pull/810)到Consensys gnark的Groth16证明压缩。该技术修改了gnark库中Groth16证明验证器的Golang合同模板，以优化验证器的L1和L2燃气消耗。

Worldcoin的Groth16验证器经过Least Authority的审计，Least Authority是一支全球安全顾问团队，致力于构建和支持可用技术解决方案和道德商业实践的发展。他们的研究结果可以[在这里找到](https://leastauthority.com/blog/audits/audit-of-groth16-verifier-in-evm-smart-contract/)。

[https://twitter.com/worldcoin/status/1704517237678227628?ref\_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1704517237678227628%7Ctwgr%5Ed2da2bcc68b4ef8ae311d2165da0e07ee8897931%7Ctwcon%5Es1\_&ref\_url=https%3A%2F%2Fworldcoin.org%2Fblog%2Fannouncements%2Fnew-world-app-update-slashes-optimism-load-two-thirds](https://twitter.com/worldcoin/status/1704517237678227628?ref_src=twsrc%5Etfw%7Ctwcamp%5Etweetembed%7Ctwterm%5E1704517237678227628%7Ctwgr%5Ed2da2bcc68b4ef8ae311d2165da0e07ee8897931%7Ctwcon%5Es1_&ref_url=https%3A%2F%2Fworldcoin.org%2Fblog%2Fannouncements%2Fnew-world-app-update-slashes-optimism-load-two-thirds)

### 了解更多

本文的目的是向读者介绍最新的[World App](https://worldcoin.org/blog/worldcoin/world-app-faqs)更新，该更新成功地消除了几乎所有的L1燃气费用，并将其对Optimism的L2区块链的负荷减少了三分之二。有关此更新的更详细信息将在不久的将来分享。

如果您想要了解有关Worldcoin的更新和其他重要信息，请在本页底部订阅博客通讯，或加入[Twitter](https://twitter.com/worldcoin)、[Discord](https://worldcoin.org/discord)、[YouTube](https://youtube.com/@worldcoinofficial)和[Telegram](https://t.me/worldcoin)上的日常持续对话。

[https://worldcoin.org/blog/announcements/new-world-app-update-slashes-optimism-load-two-thirds](https://worldcoin.org/blog/announcements/new-world-app-update-slashes-optimism-load-two-thirds)

---

*Originally published on [simple#8720](https://paragraph.com/@ta-ra/world-app-optimism)*
