LPsLux Proposals
EVM & Execution
LP-5621

Multi-EVM Pluggable Architecture

Final

Four interchangeable EVM implementations as Lux L1/L2 VM plugins, all producing identical state roots for identical inputs

LP-5621: Multi-EVM Pluggable Architecture

Abstract

Lux Network supports four interchangeable EVM implementations. All four produce identical state roots for identical inputs; that equivalence is the whole point of the plugin boundary. Validators hot-swap the C-Chain EVM via switch-evm.sh without a genesis change and without a fork.

Implementations

NameLanguageThroughput (EVM)GPUPlugin
evmGo (geth-derived)4.2 Ggas/sNonative
evmgpuGo (Block-STM)4.2 Ggas/sNonative
revmRust (reth-derived)not yet measuredNovia ZAP
cevmC++20.9 Ggas/sYesvia ZAP

cevm is the GPU-native engine specified in lp-5620. evmgpu is the Block-STM parallel Go tree; it shares the scheduling model but executes on CPU.

ZAP VM protocol

Every implementation talks to luxd over the ZAP binary wire protocol:

  • TCP with 4-byte length-prefix framing.
  • 17 message types — Initialize, BuildBlock, ParseBlock, BlockVerify, and the rest of the ChainVM surface.
  • Protocol version 42.

Because the boundary is a byte protocol rather than a language binding, an implementation in any language is a first-class plugin. The state root, not the implementation, is the contract.

References

  • lp-5620 — GPU-native EVM (cevm)
  • lp-3641 — ChainVM compatibility surface
  • lp-1200 — C-Chain EVM specification

Copyright (C) Lux Industries Inc. All rights reserved.