Original Title: "LayerZero Technology Principles and Analysis of Advantages and Disadvantages: Why is it Valued at 3 Billion US Dollars"
Source: Fourteen Jun
Within just one year, the full-chain interoperability protocol LayerZero has once again raised $120 million at a valuation of $3 billion, triple the previous valuation. Investors include a16z, Christies Inc, and Sequoia Capital.
A ten-thousand-word research report will comprehensively review the mainstream models of cross-chain technology, the technical principles of layerZero, provide a detailed explanation of the cross-chain lifecycle, and conduct a comprehensive analysis of its protocol advantages and disadvantages.
This article is the first part, focusing on discussing the technical solutions of LayerZero and evaluating its advantages and disadvantages.
LayerZero is a cross-chain communication protocol that provides trustless communication. Its essence is to utilize the technology principles of light nodes and design a mechanism for super light nodes. By dividing the intermediate trust link into two parts through relays and oracles, it achieves better security at a lower cost.
Attention, LayerZero's focus is not on asset cross-chain, but on higher-level message cross-chain. As a bottom-layer protocol, the application layer of asset cross-chain is a subset of it. More specifically, asset cross-chain is also developed by Layerzero Labs, called Stargate.
The communication link between cross-chains is mainly completed through external verification or on-chain light nodes. Firstly, a light node is a node operation mode, and there are also full nodes and archive nodes. Different nodes of the same chain are a reduced version of the chain information. Light nodes only save all historical block headers and do not store specific transaction information within the blocks.
With multiple Merkle Roots of block headers, it is possible to use Merkle tree verification to determine whether a transaction truly exists in this block.

【Ethereum's EVM virtual machine architecture diagram from official GITHUB】
The benefit of running verification on the chain through light nodes is the complete elimination of external role interference from notaries, achieving a high degree of decentralization based on the security of the chain, thus making it more secure.
However, this will result in even higher cross-chain costs, which will ultimately be borne by users with cross-chain needs. The author once estimated the cost of storing NFT metadata in KB units.
Expand reading: 【Source Code Interpretation】What is the NFT you bought?
Ultra-Light Node (ULN) is actually very simple. Compared to a light node, an ultra-light node performs the same verification as a light node on the chain, but does not preserve all block headers in order. Instead, they are streamed on demand by dispersed oracles.
Its benefit is that it does not rely on the block header data flow from the light node to start.
The cost, however, is the lack of historical sequential data flow, which means that once the oracle and relay are both malicious, they can pass verification and allow malicious information to be executed.
The trade-off between the loss of a certain degree of security and the significant reduction of costs depends on how everyone weighs it based on their own scenarios. Referring to the design of social protocols such as Lens, the value of information that social attention focuses on is not too high. Therefore, it is optimistic to perform meta-transactions while ensuring application-level isolation, and it is also advisable to execute first and trace later.
In the LayerZero official whitepaper shown in the following image, the green section plays a crucial role in facilitating information transfer between two chains, namely Oracle and Relayer.

【LayerZero Official Whitepaper from Official Website】
In short, the main function of Oracle is to let the contracts on the target chain know when to verify and what the verification answer is. The Relayer is responsible for providing the proof process required for verification transactions and the specific content of cross-chain information.
The author also mentioned in the previous research report 4337 that the current 4337 contract still needs to access off-chain oracle price services to truly achieve the function of multi-currency payment transaction fees: expand reading Interpretation of the Approval Plan for the Abstract of Ethereum Account ERC4337.
In short, Oracle plays the role of a notary in LayerZero cross-chain. Perhaps due to such malicious motives, the security of the oracle is almost equivalent to the value of on-chain Defi. Too many lending products rely on the oracle to provide prices. If it is willing to act maliciously, there are more profitable things to do.
The role of an oracle is: to transmit the Blockhash and Block Receiptsroot of the cross-chain request on the source chain to the target chain.
Blockhash is the block hash that informs the contract on the target chain which block contains the user's cross-chain request.
Block Receiptsroot is used to verify the messages passed by the transaction relay.
The role of a relay is: to transmit the path information required for the cross-chain message's Receipt and Merkle Proof to the target chain's contract for verification.
其中 Receipt refers to the transaction receipt information, which mainly includes the transaction execution result, transaction hash, and transaction event log.
Transaction execution result: whether the transaction on the source chain was successful or not.
Transaction hash: The globally unique hash of each transaction.
Transaction event log: Understand the specific content of cross-chain information.
The path information here is the red arrow in the following figure. For example, after the relay sequentially informs the L2 -> Hash 0-0 -> Hash 1 information to the on-chain node, comparing it with the TopHash given by the oracle, and after the secondary calculation based on the information contract provided by the relay is consistent, it indicates that the relay is correct.


LayerZero Official Whitepaper from Official Website
If there is only one relayer or one oracle, there may be a real danger (which is beyond the scope of protocol management), but currently layerZero implements that any application can customize its own relayer and even choose different oracles to support its system.
Even if some relayers are down or not working for some purpose, in the gradual market competition, a many-to-many selection pattern will be formed, and decentralized mutual supervision will be formed between their respective games, similar to the mining mechanism.
Even if Oracle 1 and Relay A collude maliciously, this is an isolated risk, as only applications that use Oracle 1 as an oracle and Relay A as information will be affected.
And LayerZero is just the mechanism for transmitting information at the lowest level. As for how upper-layer applications use the transmitted information, it can be defined and secured separately. For the protocol itself, it does not store funds or data, which reduces the likelihood of it being attacked.
Therefore, because the funds are dispersed, it makes the cost of hacking higher and the return lower.
Currently, LayerZero has undergone over 30 official audits, including Quantstamp, Zokyo, Zellic, and Trail of Bits, among others. Additionally, it currently hosts a $15 million bug bounty program through ImmuneFi, which is the largest real-time bug bounty program in the industry! So far, LayerZero has rewarded nearly $1 million to disclosed white hat hackers.
Consistent with the previous conclusion, the extremely low cost of cross-chain security verification is a major highlight, while the security of highly trusted oracles is compromised. Excluding security factors (after all, it can be strengthened at the application layer), the low protocol access cost and universality for developers are the hidden advantages that the author sees.
Greater universal scalability
In the current cross-chain at the protocol level, as well as the IBC protocol in the Cosmos ecosystem and the XCMP cross-chain protocol in the Polkadot ecosystem, their limitations in scalability refer to the fact that in order to verify transactions on other public chains from Ethereum, corresponding light nodes must be deployed on Ethereum. The high gas costs associated with this make it difficult for many EVM-compatible chains (such as ETH/BSC/Polygon/L2, etc.) to support the IBC protocol, greatly limiting its universality. Therefore, currently it can only run between relatively niche Cosmos ecosystem chains.
Lower complexity for developers to access
The workload of the underlying protocol has been placed on the extremely simple contract access design from the beginning. The demand for cross-chain messaging scenarios is extremely high, such as cross-chain lending, yield aggregation, and trading, just to name a few. Due to its convenience and ease of development, the protocol has already transmitted millions of messages on more than 30 chains' Dapps (including decentralized exchanges such as PancakeSwap, SushiSwap, TraderJoe, and Uniswap), and its application bridges have locked in a total value of over 7 billion US dollars (the TVL in the recent article is 400 million US dollars).
解除多链碎片化的兼容性
解除多链碎片化的兼容性 translates to "Resolve the compatibility of multi-chain fragmentation" in English.
In the lock-up casting mode mentioned earlier, the generated packaged tokens are a kind of fragmentation phenomenon for multi-chain funds. LayerZero uses non-packaged asset methods, supports both EVM and non-EVM, has a unified liquidity layer, and can bundle complex transactions such as original chain exchange, bridging, target chain exchange, and pledging when assets cross chains.

【Cross-chain solution interpretation: https://research.web3caff.com/zh/archives/7592】
Translation:https://medium.com/layerzero-official/layerzero-an-omnichain-interoperability-protocol-b43d2ae975b6
https://medium.com/layerzero-official/layerzero-an-omnichain-interoperability-protocol-b43d2ae975b6
https://blog.li.fi/layerzero-a-deep-dive-6a46555967f5
https://layerzero.gitbook.io/docs/
https://github.com/LayerZero-Labs/Audits/tree/main/audits
https://blog.li.fi/navigating-arbitrary-messaging-bridges-a-comparison-framework-8720f302e2aa
https://web3caff.com/zh/archives/37040
https://foresightnews.pro/article/detail/1322
https://mp.weixin.qq.com/s/Ji-3XKfquPlP7upnUWEaHQ
https://stargate.finance/overview
https://blog.ethereum.org/2015/11/15/merkling-in-ethereum
https://layerzero.network/pdf/LayerZero_Whitepaper_Release.pdf
https://github.com/LayerZero-Labs
Welcome to join the official BlockBeats community: Telegram Subscription Group: https://t.me/theblockbeats Telegram Discussion Group: https://t.me/BlockBeats_App Official Twitter Account: https://twitter.com/BlockBeatsAsiaOriginal article link