引言
上个月,WorldCoin 基金会宣布推出基于 OP Stack 上的区块链 World Chain,该区块链将加入 Optimism 的超级链 Superchain,并与 Base、Mode、OP Mainnet 和 Zora 等其他链进行交互。
大家可能都听说过 OP,OP Stack 和超级链。好奇宝宝们可能就会问了:What?Why?Where?本篇文章讲给大家一一解答,超级链的现状,愿景等等。文末还贴心整理一键发布 L2 / L3 的操作流程。
大家对 Optimism 一定不陌生,它是一个基于以太坊的 Layer 2 解决方案,旨在提供快速、稳定、可扩展且成本低廉的区块链服务。它通过在以太坊主链(Layer 1)之上运行,帮助缓解网络拥塞,从而减少交易成本和处理时间
Optimism 利用了一种称为 Optimism Rollups 的技术,通过将大量交易数据打包在一起,仅在以太坊主链上处理和支付一次费用。这种方法不仅加快了交易速度,降低了成本,还保持了依赖以太坊为基础的高安全性。后来 Optimism Rollup 技术开源公开,成为 OP Stack - Optimism Collective 公布的一个开源区块链框架。
OP Stack 可以理解为一键发 L2 的工具箱,大幅简化了 L2 链的构建,这些分散的基于 OP Stack 开发的 L2 链共享安全性、通信层和开源技术 Stack形成了 OP 超级链的愿景。
目前 OP Stacks 已被多个知名项目采纳,包括现在各种 L2 NFT 交易数据稳居第一的 Base:Coinbase 开发的 Layer2、资产管理应用 Debank 推出的 Debank Chain,以及社交领先协议 Farcaster 的 Farcaster Stack。这些应用的多样性体现了 OP Stack 在推出之初就旨在支持的 OP 超级链概念。
“超级链”是一种基于 Layer 2 (L2) 技术的多链网络结构,旨在解决传统区块链在水平可扩展性上的挑战。传统的多链架构通常面临着协同工作的困难和高昂的开销问题,而“超级链”通过将各条链视为“可互换的计算资源”,即将区块链商品化,从而允许开发人员在不增加系统性风险的情况下构建跨链应用程序。
在“超级链”模型中,各个链(如 OP 链)被标准化处理,并集成到由 Optimism Collective 正式管理的网络中。这些链不仅共享安全性和通信层,还共享一个开源技术堆栈。这种设计使得开发人员可以更加专注于在整个超级链上构建应用程序,而不必担心单个链的具体技术细节。
此外,这种设计理念也意味着区块链的概念本身可以变得更为抽象,开发人员可以将整个可互操作的区块链网络视为一个统一的单元,从而更高效地开发和部署新的解决方案。通过这种方式,“超级链”不仅优化了资源利用,还为区块链的未来发展提供了新的可能性。
在 “超级链”桥接安全模型中,安全性(即有效性)和活跃性(即抗审查性)能够得到保证。安全性由证明系统保证,活跃性由直接向 L1 提交交易的能力保证。安全性和活跃性的结合意味着,如果 OP Chain 排序器出现异常,用户始终可以将交易提交给 L1,L1 将他们的使用迁移到具有正确运行的排序器的新 OP Chain。
下面是 Optimism 官方对“超级链”的定义,符合以下条件即为“超级链”:
属性 | 目的 |
---|---|
共享 L1 区块链 | 为所有 OP 链提供交易的完全顺序,也就是排序器。 |
所有 OP 链的共享桥接 | 使 OP 链具有标准化的安全属性。 |
低成本的 OP 链部署 | 允许在不需要支付高额 L1 交易费用的情况下部署和进行交易。 |
OP 链的配置选项 | 允许 OP 链配置他们的数据可用性提供者、排序者地址等。 |
安全交易和跨链消息 | 使用户能够安全地在 OP 链之间迁移数据。 |
[1]. As a technology provider, such an open source framework that is widely used by the community is always waiting for scrutiny by the market and the community, and needs to bear more.
##Technical Decentralization Timeline and Milestones
Bedrock, the technology platform behind OP Stack, introduced the SystemConfig contract and began to define the L2 chain directly through the L1 smart contract. This can be extended to putting all the information that defines the L2 chain on the chain, including generating unique chain IDs, block gas limits and other key configuration values. The SystemConfig contract fragment is intercepted as follows
<code style="font-size: inherit; font-family: PingFang SC,Helvetica Neue,Helvetica,Arial,Hiragino Sans GB,Heiti SC,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;">/** * @title SystemConfig * @notice The SystemConfig contract is used to manage configuration of an Optimism network. All * configuration is stored on L1 and picked up by L2 as part of the derviation of the L2 * chain. */contract SystemConfig is OwnableUpgradeable, Semver { /** * @notice Enum representing different types of updates. * * @custom:value BATCHER Represents an update to the batcher hash. * @custom:value GAS_CONFIG Represents an update to txn fee config on L2. * @custom:value GAS_LIMIT Represents an update to gas limit on L2. * @custom:value UNSAFE_BLOCK_SIGNER Represents an update to the signer key for unsafe * block distrubution. */ /* * @notice Minimum gas limit. This should not be lower than the maximum deposit gas resource * limit in the ResourceMetering contract used by OptimismPortal, to ensure the L2 * block always has sufficient gas to process deposits. */ uint64 public constant MINIMUM_GAS_LIMIT = 8_000_000; /** * @notice Identifier for the batcher. For version 1 of this configuration, this is represented * as an address left-padded with zeros to 32 bytes. */ bytes32 public batcherHash; /** * @notice L2 gas limit. */ uint64 public gasLimit;</code>
CREATE2 generates a determined chain address
Based on SystemConfig design, After the data is completely placed on the chain, a chain factory can be created to deploy configuration and all other required contracts for each chain. We extend this step further by using CREATE2 to generate one-to-one contract addresses: this means that, given a chain configuration, we can determine all bridge addresses associated with that chain. This also allows us to interact with the chain without deploying the bridge contract, making deployment of the chain nearly free and allowing the chain to inherit standard security properties.
Bedrock introduces the establishment of L1 chain Method for L2 chains where all chain data can be synchronized with L1 blocks. With the L1 chain factory extension placing all configuration on-chain, Optimism nodes are able to deterministically synchronize any OP chain with just an L1 address plus a connection to the L1.
Modularly design the sequencer with SystemConfig
Setting the sorting in the SystemConfig contract was introduced in Bedrock function of the address. With the introduction of multiple chains with their own SystemConfig contracts, it is possible to allow the deployer of the OP chain to configure the orderer address. This configurable sorter design is called modular sorting. This allows different entities to order the OP chain while retaining the standard [Superchain Bridge] security model – a key step towards the decentralization of orderers.
Modular sorting allows experimenting with different sorting models without permissions. Developers can adopt various ordering protocols, such as round-robin ordering, orderer consensus protocol, price competitive ordering (PGA ordering), or first-in-first-out ordering (FIFO ordering). We can expect that over time, more user-friendly sorting criteria will emerge.
OP chains share a technology upgrade path
To launch with a high degree of confidence in security and decentralization For the initial Superchain, a decentralized security committee should be introduced to manage upgrades. The security committee should be able to update the chain prover set, initiate contract upgrades with a delay, and press the bridge pause button in emergency situations while canceling ongoing upgrades.
The ability to suspend the bridge in an emergency means that in the worst case scenario, where a security committee member’s private key is compromised, the result will be that withdrawals are suspended indefinitely and bridge upgrades are permanently canceled . In other words, the L1 bridge will be frozen. This follows the design principle of prioritizing security over liveness - i.e. the loss of ETH or tokens should always be prevented (i.e. enforcing security), even if this means ETH or tokens being locked (i.e. sacrificing liveness).
Of course becoming a super chain, there are still some important pain points that need to be solved before the vision of scalable blockchain can be fully realized. Anticipated pain points include:
Withdrawal requests rely on a set of trusted chain provers.
Cross-chain transactions are slow and need to wait for a challenge period.
Submitting transactions to Superchain is not scalable enough and transaction data must be submitted to L1 with limited capacity.
Cross-chain transactions are asynchronous, which destroys the ability to perform atomic cross-chain transactions (such as flash loans).
This has improved after EIP4844.
Lack of useful frameworks to build scalable applications that leverage multiple OP chains.
Lack of a simple wallet to manage tokens and applications across multiple OP chains.
We envision that when these pain points can be solved, it will be possible to build decentralized alternatives to the most complex web2 applications.
The launch of EIP-4844 coincides almost exactly with the Delta upgrade of the Optimism ecosystem, making it a perfect fit.
Data availability (DA) solutions such as Celestia are mainly to reduce the cost of rollup when submitting data to L1, while 4844 provides a native solution that reduces the operating cost (OPEX) of the OP chain by more than 90% .
We see that before 4844, the main cost of OP Stack was concentrated on the gas overhead of L1, as follows:
OP Stack chain L1 activity data (chain/L2 Revenue / L1 fee / Gross profit margin / L1 fee ratio):
OP Mainnet: 2k ETH / 1.97k ETH / 30 ETH / 98.5%
Base: 1.7k ETH / 1.37k ETH / 330 ETH / 80%
[3][4], which supports Ethereum, Base, Fraxtel, Mode, OP Mainnet, Redstone, Lisk, and Zora as L1 or L2.
At the same time, there are many tools for one-click L3 issuance in the Superchain community, such as Mode Flare developed by the Mode team. The architecture uses Pyth, Blockscout and Goldsky, etc.[5].
Some thoughts at the end: We have seen the layout of Optimism and the success of Superchain in the business landscape. OP Stacks has greatly lowered the threshold for publishing a chain. More and more teams are benefiting from OP Stack to conveniently and quickly deploy their own L2 and L3. Will OP Stack become an industry leader like AWS or Alibaba Cloud in the future, providing us with various infrastructure to facilitate developers to build their own projects? In fact, this decentralized technology solution can guarantee the open source and security of the technology to a certain extent. From a design perspective, does the super chain also have potential industry monopoly risks?
Time will tell.
以上是OP Stack 如何一步步进化成 OP “超级链”?的详细内容。更多信息请关注PHP中文网其他相关文章!