LPsLux Proposals
P-Chain
LP-1340

Lux Chain Topology — P X C D Q Z A B M F

Final

Canonical taxonomy of the ten Lux chains, the role each one owns, and how each plugs into the Quasar cert pipeline and GPU service map

Category
Core
Created
2025-12-15

Normative topology + fee model: LP-5210. LP-5210 is the authority for the UTXO ownership rule (only P and X hold canonical asset supply) and the cross-chain fee model. LP-1340 is the authority for the roster itself: which chains exist, what role each one owns, and how each binds into the Quasar cert pipeline.

Abstract

This LP fixes the canonical set of Lux chains at ten and specifies how each plugs into the Quasar cert pipeline and the GPU service map.

Each chain owns exactly one role. No chain owns two. No role has two owning chains. Composability comes from the cert pipeline, not from chain merging.

The Ten Chains

ChainVMRoleModeGPU service pathLP
P-ChainPVMPlatform — staking, validators, epoch, slashingNova (linear)precompile (read-only roots in pchain_validator_root)LP-1000, LP-7320
X-ChainXVMUTXO — assets, swaps, native txsNova (linear)precompileLP-1100
C-ChainEVM (cevm)Contract — general smart contractsNova (linear)drain_exec (EVM fiber VM)LP-1200, LP-5607
D-ChainDVM (dexvm)DEX — CLOB matching, receipt settlementNova (linear)drain_execLP-9000, LP-9999
Q-ChainQVMQuasar — 2-round threshold ceremony for PQ consensus signingNova or Nebuladrain_cert_lane (Pulsar verifier)LP-4000, LP-4005, LP-4015
Z-ChainZVMZero-knowledge — proof aggregation, shielded pool, identity rollupNovadrain_cert_lane (proof verifier)LP-8000, LP-8010, LP-8020
A-ChainAIVMAttestation — TEE quotes, audit, identity, AI provenanceNova or Nebuladrain_attestLP-5000, LP-5010
B-ChainBVMBridge — native cross-chain messaging + teleport (bridgevm)Nova (mostly) / Nebula (high-fanout)drain_bridgeLP-6000
M-ChainMVMMPC ceremonies — bridge custody for external walletsNebula (DAG of partials)drain_cert_lane (M-Chain verifier)LP-7100
F-ChainFVMFHE — bootstrap-key generation, encrypted EVM, key-share ceremoniesNebula (computation graph)drain_fheLP-8200, LP-4650

Why ten

Each chain fills exactly one of these roles:

RoleChain
validator/stake authorityP
native asset ledgerX
general executionC
order matching + settlementD
consensus-threshold-key authorityQ
proof-rollup authorityZ
attestation/audit authorityA
bridge/messaging authorityB
MPC ceremony authorityM
FHE compute authorityF

Composability comes from the cert pipeline, not from chain merging.

Cert pipeline

Every QuasarRoundDescriptor binds the upstream-chain commitments at round time:

struct QuasarRoundDescriptor {
    // ... existing fields ...
    QuasarMode mode;
    uint8_t pchain_validator_root[32];       // P-Chain
    uint8_t qchain_ceremony_root[32];        // Q-Chain
    uint8_t zchain_vk_root[32];              // Z-Chain
    uint8_t achain_attestation_root[32];     // A-Chain
    uint8_t bchain_bridge_root[32];          // B-Chain
    uint8_t mchain_ceremony_root[32];        // M-Chain
    uint8_t fchain_fhe_root[32];             // F-Chain
    uint8_t certificate_subject[32];         // host-precomputed digest
    // ...
};

certificate_subject binds all seven roots (P, Q, Z, A, B, M, F) plus parent block / state / execution roots. Cross-chain replay across any chain pair becomes structurally impossible — a cert artifact for one round cannot satisfy another even if they share a block hash, because the upstream root sets differ by construction.

QuasarCertLane registry

enum class QuasarCertLane : uint8_t {
    BLS              = 0,   // classical fast path (network-wide, BLS12-381)
    Pulsar           = 1,   // Q-Chain Pulsar (Module-LWE) 2-round PQ consensus threshold
    MLDSAGroth16     = 2,   // Z-Chain rollup of N×ML-DSA-65 sigs into one proof
    AChainAttest     = 3,   // A-Chain TEE / audit attestation
    BChainBridge     = 4,   // B-Chain bridge message commitment
    MChainCGGMP21    = 5,   // M-Chain CGGMP21 ECDSA-threshold share (bridge custody)
    MChainFROST      = 6,   // M-Chain FROST Schnorr-threshold share (bridge custody)
    MChainPulsarGen  = 7,   // M-Chain Pulsar-general PQ-threshold share (bridge custody)
    FChainTFHE       = 8,   // F-Chain TFHE compute attestation (encrypted EVM op)
    FChainBootstrap  = 9,   // F-Chain TFHE blind-rotate / bootstrap-key proof
    // …open-ended; new primitives append at end
};

Adding a new lane requires:

  1. Append the enum value (never reorder).
  2. Implement a verifier in the GPU adapter's drain_cert_lane.
  3. Register a chain root in QuasarRoundDescriptor.

The wire ABI stays stable forever via the (artifact_offset, artifact_len) indirection.

GPU service map

The wave-tick scheduler runs 16 services:

enum class ServiceId : uint32_t {
    Ingress      = 0,
    Decode       = 1,
    Crypto       = 2,
    DagReady     = 3,
    Exec         = 4,
    Validate     = 5,
    Repair       = 6,
    Commit       = 7,
    StateRequest = 8,
    StateResp    = 9,
    CertLane     = 10,    // BLS / Pulsar / MLDSAGroth16 / AChain / BChain / MChain / FChain
    CertOut      = 11,
    FheCompute   = 12,    // F-Chain TFHE compute pipeline (drain_fhe)
    AttestEvent  = 13,    // A-Chain attestation ingress (drain_attest)
    BridgeMsg    = 14,    // B-Chain bridge message ingress (drain_bridge)
    MpcRound     = 15,    // M-Chain ceremony round ingress (drain_mpc)
    Count        = 16
};
ServiceDrain functionBacked by
FheComputedrain_fheTFHE kernels (LP-4655); runs encrypted EVM ops in lane-local arenas
AttestEventdrain_attestTEE quote + audit-event verifier; emits to A-Chain root
BridgeMsgdrain_bridgebridge-payload validation + lane mapping for cross-chain settlement
MpcRounddrain_mpcMPC ceremony round drain (per-protocol verifier dispatched by cert_lane)

All four execute in the same wave-tick kernel as EVM and STM — one GPU process, all primitives in lockstep.

Per-chain detail

P-Chain (Platform)

Sources stake / validator-set roots consumed by every other chain via pchain_validator_root in the descriptor. Read-only from the cert pipeline's perspective. Spec: LP-1000.

X-Chain (UTXO)

Native asset ledger; precompile-style settlement. With P, one of the two canonical UTXO state machines (LP-5210).

C-Chain (Contract / EVM)

Executes via drain_exec. Consumes A-/B-/M-/F-Chain roots through precompiles — a contract calling fhe_decrypt(...) consults fchain_fhe_root. The as-built precompile map is LP-1210.

D-Chain (DEX)

Matches orders and signs a fill receipt; the C-Chain side verifies that certificate inline and settles under Block-STM. D-Chain carried no separate VM while matching co-lived with C-Chain; dexvm carves it out as its own state machine.

Q-Chain (Quasar threshold — PQ consensus signing)

Q-Chain runs the Pulsar 2-round threshold ceremony for PQ consensus signing. Pulsar is Lux's Module-LWE threshold construction (DKG2 plus the Pulsar-SHA3 hash suite — KMAC over cSHAKE256, pulsar/hash/sp800_185.go). Production parameters: M=8, N=7, LogN=8 (ring degree 256), Q=0x1000000004A01 (48-bit NTT-friendly prime), Dbar=48, Kappa=23 → classical 2^142 / quantum 2^130 security.

Q-Chain emits qchain_ceremony_root per epoch, consumed by the Pulsar/Corona cert lane (LP-4450).

Q-Chain runs only the consensus-threshold ceremony. General-purpose Pulsar for application threshold signing on bridge custody lives on M-Chain (MChainPulsarGen lane).

Z-Chain (zero-knowledge)

Z-Chain rolls N validator ML-DSA-65 signatures into one 192-byte proof per certificate. The R1CS encodes the ML-DSA-65 verification circuit (~2^22.5 constraints per verification, amortized to ~2^20 per validator at n=21 via shared-matrix optimization — see ~/work/lux/proofs/quasar-cert-soundness.tex App. B). Other proof systems plug in as additional verifying-key commitments under zchain_vk_root (LP-8020). Z-Chain's proof substrate is P3Q (LP-4800).

A-Chain (Attestation)

A-Chain is the unified attestation chain:

Use caseAttestation type
TEE-protected workloadSGX/SEV-SNP/TDX quote
Compliance auditcompliance-hook audit_event records
Identity proofDID resolution proof (LP-10093)
Validator availabilityper-epoch availability attestations
Hardware fingerprintTPM EK/AIK quotes for validator keys

A-Chain commits an attestation_root per round; the GPU adapter's drain_attest service verifies inbound attestation events and updates the chain's lane state.

Every Lux chain that needs attestation — TEE workloads on F-Chain, validator hardware proofs on P-Chain, audit hooks in C-Chain contracts — emits to A-Chain and consumes its root.

B-Chain (Bridge)

B-Chain is the native bridge chain — a single bridge authority in place of ad-hoc per-chain bridge logic.

struct BridgeMessage {
    uint64_t src_chain_id;      // any of: C, X, A, M, F, or external
    uint64_t dst_chain_id;
    uint8_t  payload_hash[32];
    uint8_t  proof[];           // chain-specific membership proof
};

drain_bridge validates the proof against the source chain's root (read from QuasarRoundDescriptor), verifies destination eligibility, and emits a CertLane artifact (the AChainAttest lane confirms the crossing).

Teleport is B-Chain's cross-chain protocol — teleport is what bridgevm runs, not a separate VM. Canonical bridge / teleport spec: LP-6000.

M-Chain (MPC ceremonies — bridge custody for external wallets)

M-Chain hosts all MPC ceremonies used for bridge custody of keys that hold funds on external chains (Bitcoin, Ethereum, Solana, non-Lux EVMs). The validator quorum runs the protocol; the resulting threshold signature authorizes the external-chain transaction.

CeremonyCurve / schemeExternal wallet targetCert laneLP
CGGMP21ECDSA threshold (secp256k1, secp256r1)Bitcoin, Ethereum, EVMs, CosmosMChainCGGMP21LP-7100, LP-4720
FROSTSchnorr threshold (Ed25519, Ristretto255)Solana, Polkadot, Cosmos (Schnorr variants), Bitcoin TaprootMChainFROSTLP-7100, LP-4710
Pulsar-generalModule-LWE threshold (PQ-safe)Future PQ-curve external chains, Lux-internal PQ custodyMChainPulsarGenLP-7100, LP-4450

Each ceremony runs as a Nebula round (DAG of partial signatures → frontier → committed cert). The lane verifier in drain_cert_lane dispatches by cert_lane to the protocol-specific check. mchain_ceremony_root commits the active ceremony state per epoch.

Distinction from Q-Chain: Q-Chain runs the consensus threshold (Pulsar 2-round, signs Lux blocks). M-Chain runs application threshold ceremonies (signs external-chain txs for bridge custody). Same cryptographic family, different purpose, different chain.

F-Chain (FHE)

F-Chain hosts TFHE compute and the bootstrap-key generation ceremony. This is the encrypted-EVM substrate.

Use caseCert lane / service
Encrypted EVM ops over TFHE ciphertextsFheCompute service + FChainTFHE lane
TFHE programmable bootstrap (blind-rotate)FChainBootstrap lane
Bootstrap-key generation ceremonyM-Chain DKG produces shares → F-Chain assembles the bootstrap key into a key arena
Confidential token transfersC-Chain calls an F-Chain precompile
Private cross-chain transferF-Chain → A-Chain attestation (LP-6400)

fchain_fhe_root commits TFHE evaluation-key state per epoch. Runtime specification — ciphertext format, bootstrap-key lifecycle, encrypted EVM opcode set, gas accounting under TFHE — is LP-4650 and LP-8200.

VM identifiers (canonical)

ChainVM nameURIDescription
P-ChainPVMlux:pvmPlatform VM (validator/stake state)
X-ChainXVMlux:xvmUTXO VM (assets, swaps, native txs)
C-ChainEVMlux:evmContract VM (cevm — GPU fiber VM)
D-ChainDVMlux:dvmDEX VM (CLOB matching, fill receipts)
Q-ChainQVMlux:qvmQuasar threshold-key VM (Pulsar DKG ceremony)
Z-ChainZVMlux:zvmZero-knowledge VM (proof rollups + VK registry)
A-ChainAIVMlux:aivmAI / Attestation VM (TEE quotes, audit, identity, AI provenance, model registry)
B-ChainBVMlux:bvmBridge VM (cross-ecosystem messaging)
M-ChainMVMlux:mvmMPC VM (CGGMP21, FROST, Pulsar-general ceremonies)
F-ChainFVMlux:fvmFHE VM (TFHE compute, encrypted EVM, confidential tokens)

Naming notes:

  • EVM is the standard Ethereum Virtual Machine name; C-Chain hosts an EVM, so no rename is needed. Lux's GPU-native fork is cevm, but the public VM identifier stays EVM.

  • XVM is the Lux UTXO VM. Lux X-Chain runs XVM. Academic prior art on the metastable consensus family is cited in LP-0110 §References; the operational identifier in Lux is XVM.

  • AIVM is the Lux Attestation VM. The "AI" prefix is intentional — A-Chain hosts AI provenance, model registries, agent identity, and TEE attestations.

  • M-Chain (chains/mpcvm) and F-Chain (chains/fhevm) are distinct VMs with orthogonal validators, ceremony cadence, and gas economics.

Operational identifiers, code symbols, chain aliases, and configuration keys MUST use this taxonomy. The Quasar consensus vocabulary — Quasar / Photon / Wave / Focus / Nova / Nebula / Prism / Horizon / Flare / Ray / Field — is specified in LP-0110.

Reference

ResourceLocation
Quasar consensusLP-0110
Chain topology, UTXO ownership, fee modelLP-5210
GPU acceleration frameworkLP-5607
FHE GPU kernelsLP-4655
FHE runtimeLP-4650
M-Chain (MPC ceremonies)LP-7100
F-Chain (FHE)LP-8200
Pulsar PQ thresholdLP-4450
B-Chain / bridge + teleportLP-6000
Consensus knowledge base~/work/lux/consensus/LLM.md
Lux node~/work/lux/node

Copyright and related rights waived via CC0.