Lux v1 Architecture
The canonical v1 lock-in for Lux Network and every sovereign L1 spawned from it — primary network, spawn primitive, vocabulary, and version pins
LP-0016: Lux v1 Architecture
Abstract
This LP locks in the v1 architecture of Lux Network and every sovereign L1 that spawns from it. v1 is the canonical surface: one primary network hosting three coordination chains (P, X, C), an atomic spawn primitive that materializes new sovereign L1s in a single transaction, and a post-quantum consensus certificate that composes three independently auditable PQ primitives over a classical fast path. Every future implementation cites this LP as ground truth for what v1 is.
Motivation
A blockchain stack drifts when components carry their own narratives. v1 cuts that drift by stating, in one document, exactly what the canonical primary network is, exactly what spawning a sovereign L1 means, exactly which cryptographic primitives sit under consensus, exactly which fields live in genesis, and which paths are operator-only extensions sitting outside the default permissionless path.
The LP freezes vocabulary, code paths, and version pins. Future LPs that change v1 inherit it explicitly; they do not silently fork.
Specification
Primary network
Lux primary is one network, identified by an integer networkID
shared across all Lux-derived primary networks:
| Environment | networkID |
|---|---|
| mainnet | 1 |
| testnet | 2 |
| devnet | 3 |
| localnet | 1337 |
The integer 8675xxx-class values that appear in this codebase are EVM
chain IDs on top of a primary network. They are NOT primary network
IDs. Setting networkID to an EVM chain ID is a wire-shape bug.
The primary network hosts three chains:
-
P-Chain — the validator + L1 registry. Bytes32
blockchainID. Every other chain on the network registers here. The atomic spawn primitive emits its registration tx against P-Chain. -
X-Chain — the network-wide UTXO settlement chain. Reserved for X-Chain-issued primary assets and atomic swaps with P-Chain.
-
C-Chain — the EVM for Lux primary network ONLY. No other network uses C-Chain. Sovereign L1s spawn their own EVM chains with their own chain IDs; they do not reuse C-Chain.
Sovereign L1s
Each sovereign L1 (Hanzo, Zoo, Pars, Spc, and any future tenant) is spawned by an atomic transaction on Lux primary. After the spawn tx finalizes, the L1 runs independently: its own validators, its own native asset, its own consensus instance, its own daemon binary. It does NOT depend on Lux primary at runtime; the primary network simply holds an immutable registration record.
Each sovereign L1 may host one or more chains. The atomic spawn lets a tenant launch (for example) an EVM + DEX + FHE triple as a single tx; the primary network records the chain manifest in one place.
Vocabulary lock
| Canonical name | What it identifies |
|---|---|
chain | a blockchain (the noun) |
L1 | a sovereign network (only when network level is the subject) |
chainID (uint) | EVM chain id |
blockchainID (bytes32) | P-Chain blockchain id |
validator | a chain validator |
evmAddr + utxoAddr | per-row address fields in genesis |
The pre-v1 word for an L1 is banned in v1 prose and in code across
node, cli, operator, universe, sdk, wallet, netrunner,
devops, and genesis. Code that reintroduces it is a v1 regression.
Canonical artifacts
Lux primary genesis
luxfi/genesis/configs/mainnet/{pchain,xchain,cchain}.json
luxfi/genesis/configs/testnet/{pchain,xchain,cchain}.json
luxfi/genesis/configs/devnet/{pchain,xchain,cchain}.json
These are the ONLY pchain.json files in the tree. Sovereign L1s do
NOT carry one — they have their own genesis.json at
luxfi/genesis/configs/<tenant>-<env>/genesis.json.
Sovereign L1 genesis
luxfi/genesis/configs/hanzo-{mainnet,testnet,devnet}/genesis.json
luxfi/genesis/configs/zoo-{mainnet,testnet,devnet}/genesis.json
luxfi/genesis/configs/pars-{mainnet,testnet,devnet}/genesis.json
luxfi/genesis/configs/spc-{mainnet,testnet,devnet}/genesis.json
Atomic spawn primitive
luxfi/node/vms/platformvm/txs/create_sovereign_l1_tx.go
Quasar consensus + cert profile
luxfi/consensus/protocol/quasar/quasar.go
luxfi/consensus/protocol/quasar/polaris.go
luxfi/consensus/protocol/quasar/wave_signer.go
luxfi/consensus/protocol/quasar/round_digest.go
PQ primitives
luxfi/magnetar/ref/go/pkg/magnetar/ (FIPS 205 SLH-DSA)
luxfi/pulsar/ref/go/pkg/pulsar/ (FIPS 204 ML-DSA threshold)
luxfi/corona/ (Module-LWE Pedersen DKG)
luxfi/threshold/protocols/{pulsar,corona}/ (threshold orchestration)
Operator CLI
luxfi/cli/cmd/l1cmd/ (L1 lifecycle)
luxfi/cli/cmd/chaincmd/ (per-chain ops)
luxfi/genesis/cmd/bootstrap-chain/ (genesis-aware bootstrap)
luxfi/genesis/cmd/genesis/ (genesis edit + verify)
Daemons
luxfi/node/ (luxd — Lux primary)
Each sovereign L1's daemon is the same luxd binary started with its
tenant genesis blob. There is no per-tenant daemon — the tenant binding
is the genesis, not the binary.
Version pin: Lux v1.0.0
| Component | Version |
|---|---|
| node | v1.28.5 |
| consensus | v1.25.15 |
| threshold | v1.9.7 |
| pulsar | v1.1.2 |
| corona | v0.7.6 |
| magnetar | v1.2.0 |
The Magnetar paper that ships alongside this LP lives at
luxfi/papers/lux-magnetar-pq/. It is the prose companion to the
magnetar v1.0.0 codebase; the paper is in LaTeX, not markdown.
Concern map
| Concern | Where it is specified |
|---|---|
| The complete v1 picture; vocabulary lock; version pins | this LP |
| Quasar consensus | lp-0110 |
| Cert profile composition (BLS ‖ Pulsar ‖ Corona) | lp-4900 |
| Cert profile composition (BLS ‖ Pulsar ‖ Corona ‖ Magnetar) | lp-4910 |
| Threshold SLH-DSA (selected-element THBS-SE) | lp-4540 |
| TEE-only extensions for institutional MPC custody | lp-5075 |
| The atomic spawn tx and the executor's atomicity contract | create_sovereign_l1_tx.go (this LP §Canonical artifacts) |
| Genesis file shape, by chain and env | luxfi/genesis/configs/ (this LP §Canonical artifacts) |
A reviewer reads this LP first, then descends into whichever concern their work touches.
Rationale
Why one primary network, multiple sovereign L1s
A single shared validator-set assumption across every L1 is a weakness, not a feature. Each sovereign L1 picks its own validator set sized to its own value-at-risk. The primary network's role is to host the immutable spawn record and route asset transfers via its UTXO chain; nothing else.
Why C-Chain is Lux primary's EVM only
Cross-pollinating C-Chain into non-Lux tenants conflates Lux primary's
settlement layer with the tenant's execution layer. The
LUX_DISABLE_CCHAIN=1 knob in configs/configs.go makes the non-Lux
build of luxd refuse to spawn C-Chain. Tenants instead spawn their own
EVM as a sovereign L1 chain with their own chainID.
Why version-pin everything at v1
Each release of node, consensus, threshold, pulsar, corona, and magnetar ships its own ABI surface. A canonical version map is the only way reviewers reading source against this LP can confirm they are looking at v1 and not at a feature branch.
Test Cases
Per-area test gates that pin v1:
luxfi/node/vms/platformvm/txs/create_sovereign_l1_tx.goships syntactic-verify tests via the standard txs test suite.luxfi/pulsar/ref/go/pkg/pulsar/wire_test.go::TestPulsar_Wire_FIPS204Verifiablepins pulsar v1.1.2 wire byte-identity with FIPS 204.luxfi/magnetar/ref/go/pkg/magnetar/wire_test.go::TestMagnetar_Wire_FIPS205Verifiablepins magnetar v1.2.0 wire byte-identity with FIPS 205.luxfi/magnetar/ref/go/pkg/magnetar/thbsse_test.go::TestThbsSE_Wire_FIPS205Verifiablepins THBS-SE wire byte-identity with FIPS 205.luxfi/genesis/configs/getgenesis_test.gopins theevmAddr+utxoAddrfield-naming invariant across every Lux primary allocation entry, and assertsutxoAddrpresence on every allocation.
Reference Implementation
luxfi/node/vms/platformvm/txs/create_sovereign_l1_tx.godeclares theCreateSovereignL1Txstruct.luxfi/node/version/constants.gorecords the default-version triple whose ldflag-set patch value is bumped per release tag.luxfi/node/go.modpins consensus, corona, pulsar, and threshold at the versions in the version-pin table.luxfi/consensus/protocol/quasar/polaris.godeclares the cert-profile compositionBLS ‖ Puls ‖ Cor ‖ Mag ‖ ZK(internal identifier; the operator-facing name isPQ-heavy).luxfi/magnetar/ref/go/pkg/magnetar/thbsse.gois the full THBS-SE construction, slot binding, and the v1.0 honest open-item statement.luxfi/genesis/configs/mainnet/pchain.jsonis the canonical Lux primary mainnet P-Chain genesis (networkID = 1).
Security Considerations
The vocabulary lock and version pin together prevent the most common form of supply-chain drift in a multi-repo stack: a single component referencing a stale primitive while the rest of the stack has moved on. A reviewer comparing a v1 implementation against this LP catches this in one read.
Sovereign L1 runtime independence (no Lux primary dependency after spawn) is what makes a captured Lux primary survivable for tenants. The tradeoff is that Lux primary is NOT the L1's universal recovery layer; a captured tenant L1 cannot be unfrozen by Lux primary action.
Copyright
Copyright and related rights waived via CC0.