Relay VM
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
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
| Concern | Chain | VM |
|---|---|---|
| Token mint / burn with state proofs | B-Chain | bridgevm |
| Arbitrary message passing (call data, events) | R-Chain | relayvm |
| Signer set for asset custody | B-Chain | bridgevm |
| Light-client headers for external chains | R-Chain | relayvm |
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
| Resource | Location |
|---|---|
| Relay VM | github.com/luxfi/chains/relayvm/ |
| Bridge VM | github.com/luxfi/chains/bridgevm/, LP-6331 |
| Oracle VM | github.com/luxfi/chains/oraclevm/, LP-9005 |
| Warp messaging | LP-6602 |
Copyright
Copyright and related rights waived via CC0.