Glue Network
  • 👋Welcome to Glue
  • 📚White Papers
    • 📚White Papers
    • 📕White Paper: Technology Stack
      • Technology Selection
      • Advantages of the Use-Case Optimised Model
      • Layer 1 Driven Layer 2 Development
      • Divorcing Security from Censorship Resistance
      • Cross-Consensus Messaging (XCM)
        • Use Case Example: Building a Multi-Layered dApp with XCM
      • Unified Token Model
      • Building a Robust Ecosystem of Service Providers
      • Strategic Enhancements to the Protocol
      • Recap of Key Innovations and Strategic Enhancements
    • 📘White Paper: Decentralized Application Stack
      • Goals of the Glue dApp Stack
      • Aggregation Strategy: The Glue Hub
      • Glue dApp Development Strategy: A Proactive and Integrated Approach
      • Initial dApps in the Glue Ecosystem
      • Deployment Order of Protocols
        • Deployment Phases
      • Glue's Total Value Locked Philosophy: Prioritising Utility and Stability
      • Governance Tokens and Incentives
      • Distribution Mechanism for DEX and Lending Protocol Tokens
      • Recap of Key Components
    • 📗White Paper: Service Layer
      • Custody
      • Services
        • Subscription Models
        • Service Example
      • A New Standard for DeFi
    • 📙White Paper: Governance
      • Governance and Treasury Management
      • Summary of Glue's Capital Raising Efforts
      • Valuation and Token Distribution
      • Founders Tokens
      • Foundation Allocation
      • Genesis Token Allocations
      • Strategic Capital Allocation and Future Growth Plans
      • Avoiding Traditional Pitfalls
      • Decentralised Treasury Management
      • Future Role of the Glue Foundation
      • Addressing Potential Concerns and Educating Token Holders
  • 👨‍🏫Learn About Glue
    • 🔎Understanding Glue
    • 🔎Glue's Technology
    • 🔎Glue Layer 1 Validation
    • 🔎Glue's Use-Case Optimized L2s
    • 🔎Glue's Security
    • 🔎Glue's Service Layer
    • 🔎Glue Hub
    • 🔎How Does Glue Compare?
    • NOT a Roadmap
    • 🔬Glue Audit
    • 🪙Tokenomics At Genesis
    • Glue Token Sale
  • 🖥️GLUE MAINNET
    • Bonus Vaults
      • Seed/Angel & LBP Participants
      • Public Presale Participants
    • 🌊Provide Liquidity on Glue
    • 🏦Glue Lend
    • 📃$GLUE Token Contract
    • How to Buy $GLUE
  • 💻Glue AlphaNet
    • 🥽Welcome to Glue AlphaNet
      • Glue Blockchain Explorer
      • Faucet
      • 🔎AlphaNet FAQ
      • 👨‍🔬AlphaNet User Guide
        • 📊My Portfolio
        • 💱Buy & Sell Crypto
        • 🛒Market
        • 💰Earn
        • 🏧Transfer & Pay
        • 📜Transaction History
        • 🧰Tools
  • 🏁Glue Quest
    • 🆕Onboarding Quests
    • 💹Trade Quests
    • 💰Earn Quests
    • Transfer & Pay Quests
  • 📣About Glue
    • 👨‍💼Glue Team
    • Glue AMAs
    • 🤝Partnerships
    • 🔗Official Links
Powered by GitBook
On this page
  • Enhancing Interoperability and User Experience
  • Near Instantaneous Bridging for Superior Performance
  • Cross-L2 Smart Contract Calls
  • Strategic Advantages of XCM in Glue's Ecosystem
  1. White Papers
  2. White Paper: Technology Stack

Cross-Consensus Messaging (XCM)

PreviousDivorcing Security from Censorship ResistanceNextUse Case Example: Building a Multi-Layered dApp with XCM

Last updated 10 months ago

Glue’s use-case optimised L2 model, enhanced by XCM, provides a powerful framework for building sophisticated and efficient dApps. By leveraging specialised L2s for different functions and ensuring seamless interaction through XCM, Glue offers a superior solution for developing complex applications like the illustrated game. The effectiveness of XCM within Glue is amplified by the unified and collaborative nature of its L2s, all incentivized by the same token, ensuring a synergistic and high-performance blockchain environment. This approach not only optimises performance and scalability but also sets a new standard for innovation and user experience in the blockchain space.

Enhancing Interoperability and User Experience

One of the critical innovations underpinning the Glue blockchain is the implementation of Cross-Consensus Messaging (XCM), a pivotal feature developed by Parity Technologies that ensures seamless interoperability between Layer 2 solutions.

In ecosystems where L2s cannot natively interact, users are often burdened with complex and cumbersome processes to move assets or perform actions across different chains. This fragmentation leads to inefficiencies and a poor user experience, as users must rely on third-party bridges or intermediaries to facilitate these interactions. The disjointed nature of these systems not only increases transaction costs and times, but also exposes users to additional risks and uncertainties.

Glue, through its implementation of XCM, ensures that all L2 solutions within its ecosystem can natively and seamlessly communicate with each other. This native interoperability is crucial for providing a cohesive and efficient user experience. By both allowing and requiring L2s to interact directly, unlike with Polkadot, Glue eliminates the need for external L2 to L2 bridges, reducing transaction times and costs while enhancing security. Users can move assets and execute transactions across different L2s without the friction and complexity inherent in other blockchain ecosystems.

Near Instantaneous Bridging for Superior Performance

A significant drawback of existing blockchain ecosystems is the delay in bridging assets between L2s. This latency not only hampers user experience but also limits the practical utility of L2 solutions. In contrast, Glue's use of XCM enables near instantaneous bridging between L2s, not just for assets but also for messages, ensuring that users can transfer assets and data without delay. This capability is a game-changer, as it allows for near real-time interaction and integration across the entire Glue ecosystem, despite the necessary delay for block finality. Secure and fast bridging is achieved through XCM's robust protocol, which ensures secure and trustless communication between different chains. By embedding bridging functionality directly into the Glue framework, XCM guarantees that transactions are processed swiftly and securely. This capability enhances the fluidity of the ecosystem, allowing users to interact with multiple L2s seamlessly and efficiently.

Cross-L2 Smart Contract Calls

One of the most groundbreaking features enabled by Glue’s implementation of L2s and XCM is the ability to perform cross-L2 smart contract calls. In traditional ecosystems, smart contract interactions are typically confined to a single chain, limiting their functionality and potential. XCM extends the capabilities of smart contracts, allowing them to interact across different L2s within the Glue ecosystem. Cross-L2 smart contract calls open a myriad of possibilities for dApp developers and users. For instance, a dApp operating on one L2 can seamlessly execute functions on a smart contract located on another L2.

This interactivity enables more complex and integrated applications, such as multi-chain DeFi protocols, cross-chain games, and decentralised exchanges that leverage liquidity from multiple L2s simultaneously. The ability to perform these cross-L2 operations enhances the versatility and utility of dApps, making Glue an ideal platform for innovative and sophisticated blockchain solutions.

Strategic Advantages of XCM in Glue's Ecosystem

Glue's implementation of Cross-Consensus Messaging represents a significant advancement in blockchain interoperability and user experience. The integration of XCM within Glue provides several strategic advantages:

Trusted L2 Ecosystem: Unlike ecosystems such as Polkadot where L2s are often independently managed and may have conflicting interests, Glue ensures that all L2s are trusted entities within a unified framework. This alignment is further reinforced by the use of a single, shared token model, incentivizing collaboration rather than competition among L2s.

Enhanced User Experience: By enabling seamless interoperability XCM significantly improves the user experience. Users can move assets and interact with dApps across different L2s effortlessly, without encountering the friction and delays common in other ecosystems.

Increased Efficiency: The ability to perform cross-L2 smart contract calls streamlines operations and enhances the efficiency of dApps. This capability allows for more sophisticated and integrated applications, driving innovation and utility within the Glue ecosystem.

Improved Security: XCM's trustless communication protocol ensures that transactions are secure and reliable. By limiting the need for third-party bridges to a minimum, Glue reduces potential vulnerabilities and enhances the overall security of the ecosystem.

Scalability and Flexibility: The modular nature of Substrate and the use of XCM allow Glue to scale effectively while maintaining flexibility. New L2s can be introduced and integrated seamlessly, ensuring that the ecosystem can evolve and adapt to emerging needs and technologies.

Developer Empowerment: XCM empowers developers by providing them with the tools and capabilities to build advanced multi-chain applications. This flexibility attracts a broader range of developers and cultivates a vibrant and innovative development community.

📚
📕
Figure 9: When a user interacts with a dApp, it triggers a function call on Smart Contract B on L22. This smart contract, through the Glue platform and XCM, initiates a cross-L2 call to interact with Smart Contract A on L21 to perform specific actions or retrieve information. XCM ensures that the communication is seamless and secure.
Figure 10: In this example illustrated, there are three use-case optimised Layer 2s. L21, L22 and L23 each connected via Cross-L2 bridges. Glue facilitates cross-L2 smart contract calls enabled by XCM. Smart Contract A resides on L21, Smart Contract B on L22, and Smart Contract C on L23. The decentralised exchange (DEX) aggregates liquidity from all three smart contracts. Users can trade across multiple L2s simultaneously, accessing a wide range of assets available on all three L2s. Trades are executed using liquidity pooled from all three L2s, enhancing the efficiency and liquidity depth of the DEX.