Skip to main content

Cross-Chain Bridges

The Interoperability pallet (runtime index 27) is an on-chain bridge state machine. It records cross-chain intent, collects ML-DSA-87 (NIST FIPS 204) post-quantum signatures from registered bridge validators, tracks liquidity pools, and supports disputes.

Read this before designing against it: the pallet holds state; it does not move assets off-chain. There is no relayer, no light client, no XCM transport and no external-chain adapter in the deployed stack. pallet_xcm is not in the runtime, and the xcm, xcm-builder and xcm-executor crates declared in the workspace Cargo.toml are consumed by no crate. A message submitted with send_cross_chain_message is stored with delivered: false and stays that way — nothing sets it to true. Treat a bridge transaction as a signed, auditable record of intent until an off-chain transport exists.

Bridgeable Assets

BridgeAsset has exactly two variants, both native:

pub enum BridgeAsset {
    DALLA,  // native token
    BBZD,   // Belizean Dollar stablecoin
}

There are no wrapped tokens. No wETH, wBTC, wUSDC or any other external asset is represented on-chain, because accepting one would require the external-chain custody that does not exist. Bridging is restricted to DALLA and bBZD deliberately, to keep supply accounting sovereign.

Supported Chains

BridgeChain enumerates 51 variants — 49 named networks (Bitcoin, Ethereum, Solana, Polkadot, Kusama, Arbitrum One, Base, Moonbeam, and so on) plus XCM as a generic aggregation marker. The enum is a registry of identifiers, not a list of live integrations: each chain additionally has a ChainConfig whose enabled flag defaults to off, and the pallet's own source notes that chains without active validators or oracle coverage should stay disabled via ChainConfigurations.

Operations

BridgeOperation is the payload of every bridge transaction:

VariantDirectionMeaning
LockAndMintoutboundLock DALLA/bBZD here, mint the representation on the target chain
BurnAndUnlockinboundBurn on the source chain, unlock here against a source tx hash
MessagePassingeitherOpaque payload, integrity-checked by blake2_256

Each operation carries its target or source BridgeChain and BridgeAsset, so a transaction is self-describing and auditable after the fact.

Lifecycle

BridgeStatus moves through eight states:

Initiated → AwaitingSignatures → ReadyForExecution → Executed
                                                 ↘ Failed
     ↘ Disputed → (challenge period) → Finalized
     ↘ Cancelled   (governance)

A transaction is opened by initiate_bridge, advanced by provide_pq_signature until collected_signatures reaches required_signatures, and executed by process_unlock. Inbound transfers arrive via submit_incoming_unlock and are confirmed with confirm_burn_proof. dispute_bridge_transaction moves a live transaction to Disputed; Finalized is reached only after the challenge period elapses without dispute.

Dispatchables

Twelve extrinsics:

ExtrinsicPurpose
initiate_bridgeOpen a bridge transaction
provide_pq_signatureAttach an ML-DSA-87 signature to a transaction
process_unlockExecute once the signature quorum is met
submit_incoming_unlockRecord an inbound transfer
confirm_burn_proofConfirm a burn observed on the source chain
send_cross_chain_messageStore an outgoing message record
create_liquidity_poolRegister a pool for a chain/asset pair
withdraw_liquidityRemove liquidity from a pool
update_bridge_configChange a chain's ChainConfig (governance)
dispute_bridge_transactionFlag a transaction as disputed
register_bridge_validatorAdd a validator with its PQ public key and stake
remove_bridge_validatorRemove a validator

Read-only helpers — get_bridge_transaction, get_total_locked, is_chain_supported, decode_chain, decode_asset, encode_chain, encode_asset — are not extrinsics.

Security Model

  • Post-quantum signatures — each BridgeValidator registers an ML-DSA-87 public key (BoundedVec<u8, 2592>); a BridgeTransaction holds up to 32 (validator, signature) pairs, each signature up to 4,627 bytes. ChainConfig::pq_signatures_required sets the quorum per chain.
  • Validator accountability — BridgeValidator carries stake, a reliability_score, and both signatures_count and failed_signatures, so poor signers are visible on-chain.
  • Per-chain limits — ChainConfig bounds max_amount, min_confirmations and fee_rate; LiquidityPool bounds exposure per pool.
  • Rate limiting — BridgeCallsThisBlock caps bridge calls per block.
  • KYC and sanctions — cross-chain messaging requires KYC level 2 or higher, rejects sanctioned accounts, and charges a fee to the treasury.
  • Dispute window — any participant can dispute before finalization.

Liquidity Pools

A LiquidityPool tracks one (chain, asset) pair:

pub struct LiquidityPool<AccountId> {
    pub pool_id: u32,
    pub chain: BridgeChain,
    pub asset: BridgeAsset,
    pub belizechain_liquidity: u128,
    pub external_liquidity: u128,
    pub manager: AccountId,
    pub fee_rate: u32,        // basis points
    pub total_volume: u128,
    pub active: bool,
}

Because BridgeAsset is limited to DALLA and bBZD, a pool is always a DALLA or bBZD pool against a named external chain — never a third-party token pool.

Chain Configuration

pub struct ChainConfig {
    pub enabled: bool,
    pub min_confirmations: u32,
    pub max_amount: u128,
    pub fee_rate: u32,
    pub pq_signatures_required: u32,
    pub rpc_endpoint: BoundedVec<u8, 256>,
    pub contract_address: Option<BoundedVec<u8, 64>>,
}

rpc_endpoint and contract_address are stored so an off-chain transport can be pointed at a chain later. Nothing in the runtime reads them today.

Related