Skip to main content

Architectural Design

This section provides a detailed overview of Beyond's system architecture, focusing on the core components and their interactions. Additionally, you will find other sources of information in:

Beyond Tri-Directional Bridge

Core Components

In simple terms, the asset bridging process involves locking native tokens on the source chain, and minting wrapped tokens on the destination chain. This process is facilitated by a combination of on-chain and off-chain components that ensure seamless interoperability and asset transfer across different blockchain ecosystems.

  • Nodes and Indexers: Together they facilitate transactions and indexing on all blockchains, ensuring real-time data accuracy and accessibility. These components are sometimes called RPC nodes and Subgraph indexers.
  • Registry: A database consolidating data from various sources (e.g. indexers) into a unified repository with extended business logic.
  • Core and Relayer Contracts: A set of smart contracts that mint and burn tokens on non-Bitcoin-L1 chains.
  • Forge: A validator-controlled entity (multi-party computation) that locks and unlocks tokens on the Bitcoin L1.
info

Initially, the Forge is secured by 11 signers, with a 7-key threshold needed to authorize transactions. This approach mirrors the battle-tested system from industry leaders like LayerZero or Wormhole, ensuring a high degree of security. For Beyond V1, the Forge is permissioned, while V2 becomes permissionless via staking.

User Journey Examples

Avalanche ➤ Bitcoin
  1. User locks AVAX tokens in Beyond's Relayer smart contract on Avalanche, which also triggers a cross-chain event via LayerZero messenger for the Core contract on Bitcoin.
  2. Beyond's Forge listens to the cross-chain event, sends wAVAX wrapped tokens to the user's wallet on Bitcoin, then waits n blocks for immutable confirmation.
  3. Bitcoin indexer and Registry update with the mint event.
Bitcoin ➤ Avalanche
  1. User burns wAVAX wrapped tokens via Bitcoin Forge.
  2. After n blocks, Bitcoin network immutably confirms the transaction, Bitcoin indexer and Registry update with the burn event, while a cross-chain event is triggered via LayerZero messenger.
  3. The original AVAX becomes unlocked in Beyond's Relayer smart contract on Avalanche, and sent to the user's wallet.
Bitcoin (BRC-20) ➤ Bitcoin (Runes)
  1. User locks native ORDI (BRC-20) tokens in the Bitcoin Forge.
  2. After n blocks, Bitcoin network immutably confirms the transaction, Bitcoin indexer and Registry update with the lock event, while a Bitcoin event is triggered.
  3. Beyond's Forge mints wORDI (Runes) and sends it to the user's wallet.
  4. If the same or another user wants to switch back to BRC-20, the process is identical in reverse order: burn wORDI (Runes) and retrieve the original ORDI (BRC-20).