Compose Network Documentation

website·Indexed 31 days ago

https://docs.compose.network

Developer documentation for the Compose Network, featuring the Compose SDK—a React-first TypeScript library for Account Abstraction (AA) enabling multi-chain atomic user operations. Includes guides on the Shared Publisher architecture, Mailbox contracts for cross-rollup communication, the Composable Shared Bridge for token transfers, and implementation details for Two-Phase Commit (2PC) distributed consensus.

Tokens
15.5K
Snippets
42
Records
87
Agent score
54%

What's inside Compose Network

  1. Overview of the Compose Network Mailbox contract

    The Mailbox contract is a core component of the Compose Network that enables cross-chain communication between different rollups. It implements a message passing system where contracts can send messages to other chains and receive messages from other chains through a coordinator-managed inbox and outbox system. Key capabilities include:

    • Managing inbox and outbox for cross-chain messages
    • Providing key-based message storage and retrieval
    • Enabling coordinator-controlled message population
    • Supporting chain-specific message roots for efficient verification
    • Implementing session-based message organization
  2. Overview of Compose Network for Rollup Operators

    The Compose Network provides infrastructure to enable cross-chain composability for rollup operators. Integration allows rollups to achieve seamless interaction between different chains, leverage shared infrastructure for efficient operations, and benefit from the network effects of a connected ecosystem of rollups.
  3. Overview of the Compose Network Bridge

    The Bridge contract is a core component of the Compose Network that enables cross-chain token transfers between different rollups. It utilizes a burn-and-mint mechanism: tokens are burned on the source chain and minted on the destination chain upon confirmation. The process involves burning tokens, sending cross-chain messages via the Mailbox, minting tokens on the destination chain, and providing acknowledgment mechanisms to confirm completion.
  4. Understand Atomicity in cross-rollup transactions

    Atomicity is the property ensuring that all parts of a cross-rollup transaction either succeed completely or fail completely. This prevents partial execution, where some actions are committed on one chain while others fail on another.
  5. Cross-Rollup Transactions and Composability

    Cross-Rollup Transactions are operations that span multiple rollups and execute atomically. This enables Composability, which is the ability to combine different dApps and protocols across multiple rollups to create complex, interconnected workflows.
  6. Value proposition for Rollups using Compose Network

    Rollups integrating with Compose Network can maintain 100% of their fee revenue and preserve full sovereignty over sequencing, fees, and governance. The integration enables new revenue streams and a cross-rollup dApp ecosystem with minimal integration effort.
  7. Value proposition for end-users of Compose Network

    Users experience a single-chain feel across all rollups, removing the need for manual bridging. The network supports a single wallet for atomic operations, allowing users to access any application from any location seamlessly.
  8. Understand the Compose Network Shared Publisher Architecture

    The Compose Network addresses the fragmentation of Ethereum's rollup-centric roadmap, where applications are isolated on different rollups and users face complex bridging and fragmented liquidity.

    The solution is a Shared Publisher Architecture: a coordination layer that enables atomic cross-rollup transactions. In this model, each rollup maintains its own sequencer, while the shared publisher coordinates the atomic execution of transactions. This allows for horizontal scaling and atomic execution without sacrificing the independence or sovereignty of individual rollups.

  9. Understand Synchronous vs Asynchronous Composability on Ethereum

    On Ethereum, composability is categorized by the timing of interactions:

    • Asynchronous Composability (Current State): While contracts on the same chain can interact atomically within one transaction, cross-chain interactions rely on message-passing bridges or interoperability protocols. This requires waiting for finality across chains, creating delays in UX and execution.
    • Synchronous Composability (Compose Approach): This allows a contract on one chain to call a function on another chain and immediately receive and act upon the result within the same execution context (e.g., the same block).
  10. Address Liquidity Fragmentation with Unified TVL

    Liquidity Fragmentation occurs when liquidity pools are isolated on different chains. Unified TVL (Total Value Locked) refers to the consolidation of value across multiple rollups to prevent this fragmentation.
  11. Understand the Shared Publisher (SP) architecture

    The Shared Publisher (SP) is a coordination layer that enables multiple rollups to aggregate cross-chain transactions and ZK proofs. It is designed around three core principles:

    1. Sovereignty Preservation: Rollups retain control over their own sequencing, fee markets, and execution environments.
    2. Horizontal Scaling: It enables parallel processing across rollups via coordinated publishing rather than a single centralized coordinator.
    3. Ethereum Alignment: The publisher election mechanism uses Ethereum's validator set to inherit its security and decentralization properties.
  12. Value proposition for dApps using Compose Network

    dApps on Compose Network benefit from a 'deploy once, access everywhere' model. This eliminates liquidity fragmentation through unified liquidity and allows for atomic composability in complex workflows, resulting in a simplified architecture.