LayerZero: A New Era of Seamless Cross-chain Interoperability

BTS Labs
11 min readJun 25, 2023

--

Interoperability is a major challenge for blockchain networks. Most blockchains operate independently, making it difficult to transfer data and assets between them. As more and more blockchains emerge, the need for communication and transactions between them becomes increasingly important. This is precisely the gap that LayerZero aims to bridge.

LayerZero is a cutting-edge interoperability protocol that has emerged as a game-changer in the decentralized technology ecosystem. LayerZero introduces innovative features and enhancements to address interoperability, scalability, and usability challenges without compromising security or decentralization.

Key Takeaways

● LayerZero revolutionizes blockchain intercommunication through its innovative protocol to facilitate seamless communication between blockchain networks. By addressing the limitations of existing interoperability systems, LayerZero offers a robust solution that enhances the overall security, efficiency, and scalability of cross-chain transactions.

● LayerZero utilizes an Ultra-light Node(ULN) and leverages Decentralized Oracle and Relayers to enable seamless information transfer between two endpoints in a decentralized application.

● Adopting modular architecture, LayerZero allows for easy integration of new chains and functionalities, making it a flexible and scalable solution. This modularity enables integration with new blockchain networks and innovative features without requiring significant modifications to the core protocol.

● The emphasis of LayerZero on trustlessness, modularity, and user experience positions it as a pioneering solution in the field of blockchain interoperability. Its advancements in cross-chain transactions and its commitment to improving trust and usability pave the way for future innovations in the blockchain industry.

Blockchain Interoperability

Interoperability solutions aim to create exchange portals between separate blockchain networks, enabling resource sharing and facilitating the transfer of assets. Interoperability solutions establish a communication bridge between separate networks through the use of an intermediary, which can be in the form of a middle chain or a node.

Middle chains act as intermediaries by receiving messages from the source chain, processing them, and forwarding them to the destination chain. However, middle chains face security issues, and any mishap can result in asset loss. Alternatively, on-chain Light Nodes provide enhanced security. These protocols run nodes on the destination chain, validate messages from the source chain, and seamlessly add them to the destination chain. Although Light Node interoperability protocols offer greater security, they can be more costly.

LayerZero revolutionizes intercommunication between blockchain networks by addressing security limitations of current interoperability systems through its innovative Ultra Light Nodes which handles batch transactions to reduce cost, and decentralized oracles to securely transfer messages between chains.

LayerZero facilitates direct, secure cross-chain transactions between blockchain networks, eliminating the need for third-party intermediaries. By consolidating liquidity and enabling seamless interaction across different chains, LayerZero establishes a fully-connected omnichain ecosystem, showcasing the potential of future blockchain advancements.

Background

LayerZero was founded in 2021 by a team of engineers led by Bryan Pellegrino (Co-founder & CEO), alongside Caleb Banister (Co-founder) and Ryan Zarick (Co-founder & CTO) to solve the fragmentation issue caused by blockchains’ proliferation. Moreover, with numerous chains operating in isolation, users are forced to divide their resources and liquidity, limiting their options to move liquidity and state between walled ecosystems.

Since its launch, LayerZero has gained attention and achieved remarkable network effects by connecting over 30 mainnet blockchains. The protocol has gained widespread recognition and adoption among top decentralized exchanges such as PancakeSwap, SushiSwap, Trader Joe, and Uniswap. It has facilitated transactions exceeding $6 billion in volume while ensuring the security of over $7 billion in total locked value.

LayerZero’s achievements have attracted investments from investors and Venture Capital firms. In a recent Series B funding round concluded in early April 2023, LayerZero successfully raised an impressive $120 million, leading to a significant increase in its valuation from $1 billion to $3 billion.

The funding round saw the participation of 33 investors, including a16z Crypto, OKX, Circle Ventures, and Sequoia Capital. With this latest funding, LayerZero Labs has now amassed a total funding of $263 million, solidifying its position as a well-funded and forward-thinking entity within the blockchain ecosystem.

Venture Capital funding history

These substantial investments provide the necessary resources to propel LayerZero’s continued growth, innovation, and development, paving the way for a future defined by its transformative solutions.

How LayerZero Works

LayerZero Endpoint

At the core of LayerZero is the LayerZero Endpoint deployed on supported chains. The implementation of Endpoints within LayerZero is realized through a collection of smart contracts, enabling seamless communication between domains. Every Endpoint is made up of a Communicator, Validator, and Network to ensure the message is delivered correctly.

Within the LayerZero system, each chain possesses its own dedicated Library, accompanied by an Endpoint equipped with a domain-specific messaging library. These Endpoints are further reinforced by a proxy mechanism that guarantees the utilization of the appropriate library version. Once deployed, Endpoints operate as immutable smart contracts, ensuring an uninterrupted flow of messages.

LayerZero relies on two off-chain entities, an Oracle and a Relayer, to facilitate the transmission of messages between endpoints located on different domains. The Oracle, such as Chainlink, forwards a block header from one domain to another, while the Relayer transmits a transaction proof from the source domain to the destination domain. To ensure integrity, the proof is validated against the block header, and if they correspond, the cross-chain message is successfully delivered to the intended destination address.

Communication flow in a single LayerZero cross-chain transaction

LayerZero simplifies transaction processing by requiring only source gas in a single call. A transaction starts with a User Application initiating an on-chain transaction. Through the collaboration of the Oracle, Relayer, and LayerZero Endpoint, the transaction is fragmented into multiple parts, including a proof and block header. Once the information is validated by the LayerZero Endpoint, transmitted by the Oracle and Relayer, and confirmed to be correct, the message is then translated and executed on the destination chain.

Key features

Trustless cross-chain communication

LayerZero introduces a trustless approach to cross-chain communication, removing the reliance on centralized intermediaries. By leveraging its independent Oracle and Relayer service, LayerZero guarantees the validity of transactions without the need to trust a third party. This distinguishes LayerZero from alternatives like Cosmos, where centralized or semi-centralized intermediaries may introduce potential security vulnerabilities, undermining the inherent trustlessness of blockchain technology.

Modular and Scalable

LayerZero offers a modular and extensible framework, allowing the addition of new chains and functionalities without the need to modify the core protocol. This flexibility and scalability set it apart from other approaches that may require significant protocol changes to support new chains or functionalities.

Take Polkadot as an example, another project focusing on blockchain interoperability. Polkadot utilizes a relay chain to connect independent chains, enabling communication between them. Additionally, Polkadot introduces “parachains” for specific use cases. In contrast, LayerZero achieves interoperability without the need for creating new chains or complex smart contracts. This streamlined approach simplifies the process and enhances efficiency.

Simple user experience

LayerZero simplifies and enhances the user experience for cross-chain transactions. With its architecture, users can seamlessly and efficiently perform single-transaction swaps without the complexity of intermediary tokens or additional transactions. This streamlined approach reduces costs and improves overall transaction efficiency for users.

LayerZero stands out from other solutions in the space due to its emphasis on trustlessness, modularity, and user-centric design. By prioritizing these factors, LayerZero ensures a secure and intuitive experience, providing users with a seamless and hassle-free way to engage in cross-chain transactions.

Security

LayerZero’s Oracle and Relayer systems prioritize the highest level of security for users. When it comes to cross-chain transactions, other bridge designs that rely on middle chains can be vulnerable to censorship by malicious actors seeking to disrupt cross-chain activity. If a malicious actor gains control of the middle chain, they can manipulate or withhold specific messages exchanged between chains, seriously compromising the security of the entire omnichain functionality.

However, LayerZero’s unique Oracle-Relayer security model eliminates the appeal for message censorship by malicious actors. The design ensures that either all messages are censored or none at all, thanks to the strict sequential ordering of nonces on the receiving chain. Oracles and Relayers are unable to selectively censor messages without censoring all messages in the process. Therefore, even if an attacker gains control of the Oracle and Relayer and attempts to censor a message, all subsequent messages would also be censored, effectively halting the attack. The protocols can swiftly address this issue by selecting new Oracles or Relayers, allowing messaging to resume promptly.

This bifurcated model prevents effective collusion among potential malicious actors, guaranteeing the continuous operation of cross-chain transactions while maintaining security.

Use Cases

Bridging

LayerZero finds its primary application in bridging different blockchain networks. LayerZero recently launched Stargate, a cross-chain liquidity transfer protocol built on LayerZero’s generic messaging. Stargate solves a holy grail problem called the Bridging Trilemma and enables cross-chain liquidity transfer in native assets, with unified liquidity and instant guarantee of finality.

Stargate Finance enables seamless transfers across multiple chains, including Ethereum, BNB Chain, Avalanche, Polygon, Fantom, Arbitrum, Optimism, and Metis, spanning both Layer 1 and Layer 2 chains.

Cross-Chain Swaps and Unified Liquidity

Current bridges operate with separate liquidity pools, causing discrepancies in efficiency. For example, while the Ethereum to Polygon bridge may have sufficient liquidity to handle all requests, the bridges between Fantom and Polygon may lack the necessary assets on both chains to instantly fulfill a bridging request.

In contrast, LayerZero offers a unique advantage by utilizing a unified liquidity pool. This enables LayerZero to efficiently address bridging requests from multiple destination chains, ensuring smoother and more reliable transactions. Ryan Zarick, one of the co-founders of LayerZero, highlights this advantage, emphasizing the platform’s capability to leverage a unified liquidity pool for enhanced bridging functionality.

Cross-chain Borrowing

By integrating LayerZero’s cross-chain borrowing functionality, money market protocols, like Radiant Capital deployed on Arbitrum and BNB Chain, can leverage LayerZero’s infrastructure to facilitate cross-chain borrowing. Users who deposit their assets with Radiant Capital can access borrowing capabilities on any of the chains supported by LayerZero.

This offer users the flexibility to borrow assets from different chains, expanding their borrowing options and enabling them to access liquidity from a broader range of blockchain networks.

Omnichain Tokens and NFTs

One of the remarkable aspects of LayerZero is its ability to introduce “non-native” crypto assets. These assets can be utilized on any chain without the requirement of bridge conversions, preserving their original form. As a result, omnichain tokens and NFTs become distinct and experience accelerated adoption since users can conveniently purchase and store them on their preferred blockchains.

Hence, NFTs will no longer be limited to their native ecosystems. Users will have the ability to transfer their NFTs across different ecosystems like Ethereum, Polygon, and Solana. A notable example of this is Pudgy Penguins, which recently announced that its sub-series Lil Pudgys can now seamlessly move across Polygon, BNB Smart Chain, and Arbitrum using LayerZero’s comprehensive cross-chain technology.

This breakthrough allows many NFT projects to tap into the liquidity and user base of other ecosystems without the need to launch separate projects on different chains, thus avoiding fragmentation among their user community.

Ecosystem

LayerZero has achieved significant milestones, with over 4 million messages sent on the protocol. The platform has seen the deployment of over 30,000 contracts on its testnet and 3,500 contracts on its mainnet, showcasing its growing adoption. These achievements have resulted in a total value locked (TVL) of over $7 billion and processing transactional volume exceeding $6 billion across nearly 80 DApps.

As LayerZero continues to evolve, we can anticipate the emergence of even more innovative products built on their technology. These developments will introduce exciting new features and possibilities to the blockchain space.

Challenges and Future Directions

LayerZero offers several advantages in cross-chain functionality, notably enhancing trustlessness, efficiency, and flexibility. Nevertheless, there are still some challenges that require attention and resolution, including:

Limited adoption: One of the challenges faced by LayerZero is the current lack of widespread adoption and broader support within the blockchain community. As a relatively new technology, it needs to overcome the hurdle of gaining broader acceptance and building strong partnerships to maximize its potential impact.

Competition: LayerZero faces the challenge of competing with established players like Polkadot, which also offers interoperability solutions. The presence of established alternatives like Polkadot may pose difficulties in terms of gaining traction and attracting users to adopt LayerZero’s infrastructure. To overcome this challenge, LayerZero needs to differentiate itself by emphasizing its unique features, benefits, and potential advantages over existing solutions.

Security Vulnerabilities: As with any blockchain technology, there is a challenge of potential bugs or vulnerabilities that could compromise the security of LayerZero. Ensuring robust security measures and conducting thorough audits are crucial to mitigate these risks.

Conclusion

LayerZero represents a groundbreaking advancement in cross-chain communication and interoperability solutions. With its innovative technology and unique features, LayerZero has the potential to reshape the blockchain ecosystem by addressing limitations, enhancing user experience, and enabling seamless interaction between different blockchain networks.

Through its trustless and decentralized approach, LayerZero eliminates the need for intermediaries, allowing for direct and more secure cross-chain transactions. Its modular and extensible architecture ensures flexibility and scalability, enabling the addition of new chains and functionalities without compromising the core protocol.

LayerZero’s achievements in connecting over 30 mainnet blockchains, attracting significant investments, and partnering with notable projects demonstrate its growing recognition and adoption within the blockchain community.

While challenges like limited adoption and competition from established solutions exist, LayerZero’s commitment to continuous improvement and differentiation will be crucial in overcoming these hurdles. By prioritizing security, addressing potential bugs, and promoting its unique values, LayerZero can further establish itself as a trusted and preferred choice for cross-chain communication.

As LayerZero continues to mature as a product, it is anticipated that more innovative applications and projects will be developed on its technology, leading to new possibilities and features for the blockchain space. With its focus on trustlessness, modularity, and user experience, LayerZero is positioned to shape the future of blockchain interoperability and contribute to the advancement of the entire industry.

Further Reading

Official Website

Docs

LayerZero for Developers

Whitepaper

Analytics Dashboard

About BTS Global

BTS Global (BTS Labs & BTS Ventures & BTS Trading) offers a wide range of consultancy services including Financing, Market Making, and PR & Marketing. The most well-known clients of BTS Global are AAVE, Sushi, Polkadot, YGG, Dfinity, Alpaca, Crypto Blades, Polygon, Wault, Pundix, Beyond, NFTb, Deri, Onbuff, MilliMeter, Cartesi, Near Protocol and many others.

Disclosure

The material above has been prepared by BTS Ventures and is intended for information purposes only. This material is not intended to be relied upon as investment or forecast advice. This article does not recommend or suggest buying or selling any cryptocurrencies, or implementing any type of investment strategy. BTS Ventures research derived this information and opinions from proprietary and nonproprietary sources it considers to be reliable. They aren’t necessarily all-inclusive and can’t be guaranteed to be completely accurate. Always remember to Do Your Own Research (DYOR) and tread carefully.

Join BTS Global community;

Website: http://www.bts.global

Twitter: https://twitter.com/BTS_Ventures

Twitter: https://twitter.com/btslabs_global

Telegram: https://t.me/officialbtslabs

--

--

BTS Labs

BTS Labs mainly provides a wide range of consultancy services including Financing, Listing, and PR & Marketing.