LPsLux Proposals
EVM & Execution
LP-1310

Relay VM

Final

The R-Chain message-relay VM — a light-client header registry per source chain, inclusion-proof verification against those headers, and bonded relayers, kept strictly separate from asset custody and data feeds

Category
Core
Created
2026-04-13

Abstract

The Relay VM runs the R-Chain, a chain dedicated to relaying cross-chain messages. It is a sibling of the Bridge VM (B-Chain, assets) and the Oracle VM (O-Chain, data in): the R-Chain moves arbitrary messages between chains with verified inclusion proofs. Together, B / O / R cover the three distinct cross-chain concerns — assets, data, messages.

Scope

R-Chain handles:

  • inbound message ingestion from external chains (Ethereum, Cosmos, and others)
  • a light-client header registry for every supported source chain
  • Merkle / SSZ / Warp inclusion-proof verification against stored headers
  • outbound message delivery to destination chains over Warp
  • a relayer registry with bonds, and slashing on a fraudulent proof submission

R-Chain does NOT handle:

  • asset custody — that is the Bridge VM, B-Chain
  • external data feeds — that is the Oracle VM, O-Chain
  • settlement proofs — the Bridge VM signs custody releases; R-Chain only forwards messages

Boundary with the Bridge VM

ConcernChainVM
Token mint / burn with state proofsB-Chainbridgevm
Arbitrary message passing (call data, events)R-Chainrelayvm
Signer set for asset custodyB-Chainbridgevm
Light-client headers for external chainsR-Chainrelayvm

A typical cross-chain swap uses BOTH: the Bridge VM holds the tokens, and the Relay VM delivers the "release" instruction.

Specification

Light-client header registry

Each supported source chain has a light-client header chain:

type SourceChain struct {
    ChainID          uint32
    ConsensusType    uint8    // 1=Ethereum, 2=Cosmos, 3=Warp-Lux, ...
    GenesisHeader    []byte
    LatestHeight     uint64
    LatestHeaderHash [32]byte
}

Headers arrive as relayer submissions. Each new header is verified against the consensus protocol of its source chain — Ethereum beacon consensus, Cosmos Tendermint, and so on — before it is accepted.

Message envelope

type Message struct {
    SourceChainID uint32
    DestChainID   uint32
    Nonce         uint64
    Sender        [20]byte
    Recipient     [20]byte
    Payload       []byte
    Proof         InclusionProof
}

Relayer bonds

Relayers stake LUX to submit proofs. Submitting an invalid proof slashes the full bond. Minimum bond: 100 LUX.

Rationale

Keeping bridge, oracle, and relay as separate chains buys:

  • Separate signer sets — different economic security per function.
  • Separate block cadence — the oracle wants speed, the bridge wants security, the relay prioritizes liveness.
  • Clear accountability when one subsystem misbehaves.
  • Independent liveness — if the oracle stops, the bridge still works.

Consolidating them into one VM creates a single point of failure and conflates distinct security properties.

Reference

ResourceLocation
Relay VMgithub.com/luxfi/chains/relayvm/
Bridge VMgithub.com/luxfi/chains/bridgevm/, LP-6331
Oracle VMgithub.com/luxfi/chains/oraclevm/, LP-9005
Warp messagingLP-6602

Copyright and related rights waived via CC0.