Lux Cloud is the decentralized cloud substrate of the Lux Network.
Every customer runs inside their own Quasar-native appchain (or
shares one with similar-tenancy customers), executed by the QuasarGPU
adapter (LP-132) and finalized by the Quasar 3.0 cert pipeline
(LP-020). Anyone can run a node by staking on P-Chain. Anyone can
deploy a Lux Cloud appchain. Resource consumption — GPU compute,
storage, bandwidth, FHE bootstraps, AI inference tokens — is priced
per-appchain via on-chain markets and paid in native LUX or
appchain-native tokens.
The unifying observation: **every cloud workload is a Quasar appchain
preset**. There is no separate cloud stack; the same nine chains
(LP-134) and the same wave-tick GPU kernel (LP-132) run consensus,
DEX, EVM, FHE, AI inference, and customer workloads in lockstep.
DeployAppchainTx on P-Chain with a BaseAppchainConfig (LP-133); validator subset auto-selects from staked pool |~/work/lux/node |Each appchain's validator subset is committed in the BaseAppchainConfig
(LP-133):
struct BaseAppchainConfig {
uint64_t chain_id;
Hash validator_subset_root; // P-Chain commitment
Hash qchain_ceremony_root;
Hash zchain_vk_root;
QuasarMode mode; // Nova or Nebula
uint64_t block_time_ms;
uint64_t gas_limit;
};
Subset selection is deterministic from `(P-Chain validator set,
chain_id, epoch)`. Subset size is policy: a tenant may pay for a
larger subset (more decentralization) or a smaller one (cheaper).
Cross-tenant isolation runs at the appchain boundary:
There is no shared mutable cloud-control-plane state across tenants
that could fan a single failure across the customer base.
Every Lux Cloud workload maps to one or more chains in LP-134's
nine-chain topology:
Native pattern: Hanzo Base appchains on Quasar (LP-133 §2).
domain component of lane key |H("base", chain_id, collection, record_id) lane |CertOut for subscribed lanes |Throughput: LP-132 §Tier 2 (~100 M ops/s on a single GPU node).
Finality: < 1.1 s strong; commit < 50 ms.
Stateless workloads are C-Chain contracts (LP-009 GPU-native EVM)
deployed inside the customer's appchain. Cold-start is zero (no
container boot); the EVM fiber executes inside the wave-tick kernel.
Function inputs and outputs are tx calldata and emitted events.
Auto-scaling: validator subset size determines compute-side capacity;
the customer can scale by paying for a larger subset. Read-side scaling
is automatic via the gateway's lane-affinity routing (LP-133 §1).
Per LP-130, AI inference runs through the Hanzo AI Chain
(drain_ai service, forthcoming) that consumes model weights from
content-addressed storage and runs inference inside the QuasarGPU
wave-tick kernel.
The inference cert lane is registered alongside the LP-134 lanes
(reserved enum slot ≥ 10). Confidential inference (encrypted weights
or encrypted inputs) routes through F-Chain (FheCompute service).
The DEX matching engine is a C-Chain precompile (LP-9010), not a
contract. Order books live in lanes (LP-010 lane affinity), match in
the wave-tick kernel, and settle on X-Chain. Lux Cloud DEX customers
get sub-100µs match latency on the same GPU process that serves their
other workloads.
Encrypted workloads run on F-Chain (LP-013, LP-066) via the
drain_fhe service. Customers pay per TFHE gate evaluation +
bootstrap. Use cases:
Bootstrap-key material lives in **M-Chain ceremony output → F-Chain
key arena** (LP-013 §key-share ceremonies, LP-076 universal threshold).
Each appchain has its own gas / fee curve. The customer chooses:
gas_limit | per-block compute budget |block_time_ms | latency vs. cost trade-off |validator_subset_size | redundancy / decentralization budget |mode (Nova / Nebula) | linear order vs. DAG fanout |fee_token | LUX or appchain-native (must be exchangeable for LUX at the validator level for stake-aligned settlement) |Settlement: per-block fees are split between the appchain's validator
subset (compute reward) and the P-Chain global treasury (stake reward
+ slashing pool). Split ratio is policy per LP-080 / LP-083.
Resource consumption is metered at the substrate level — there is no
host-side metering. Every priced operation is a counter inside the
wave-tick kernel:
drain_fhe | per-block |All counters live in the same per-tx receipt. No external billing
service is involved on the hot path.
Validator nodes advertise their resource availability (GPU model,
memory, bandwidth, TEE support) in a P-Chain registry (per LP-129).
When a DeployAppchainTx arrives, the subset selector matches the
appchain's resource requirements against advertised capacity.
Oversubscription resolves via stake-weighted bidding within the
selection epoch.
Confidential workloads run inside SGX / SEV-SNP / TDX with quotes
attested to A-Chain (LP-134). The pattern:
1. Tenant deploys a confidential appchain with tee_required: true
in BaseAppchainConfig.
2. Validator subset selector restricts to TEE-capable nodes.
3. Each node submits a TEE quote (per LP-127, LP-065) on join.
4. Quotes verify via drain_attest (LP-134 §A-Chain), commit to
achain_attestation_root[32] in QuasarRoundDescriptor.
5. Customer contracts can read the attestation root via precompile
and gate sensitive operations on it.
TEE + FHE together (encrypted execution inside attested enclaves)
provides defense in depth: a TEE compromise alone reveals only
ciphertexts; an FHE compromise alone is irrelevant to data inside
TEEs.
Appchain state is portable. The mechanism:
SnapshotAppchainTx on their appchain |(state_root, snapshot_blob_hash, quasar_cert) committed under M-Chain ceremony root or B-Chain bridge root |RestoreAppchainTx, verifying the cert against the source epoch's QuasarRoundDescriptor |This is lift-and-shift portability over a permissionless substrate
— a stronger guarantee than typical cloud portability, because the
cert provides cryptographic continuity, not just data continuity.
~/work/hanzo/cloud)The Casibase-derived AI cloud (RAG, embedding providers, vector
search) runs as a Lux Cloud appchain. Each tenant gets:
~/work/lux/cloud)The reference cloud frontend / dashboard. Next.js + tRPC over
QuasarGPU engine RPCs. Drives appchain deployment, monitoring, and
billing through P-Chain transactions.
Cloud-infra orchestration (validator-node provisioning, GPU driver
setup, KMS sync) is performed by ~/work/lux/operator (the
lux-cloud-operator). Per CLAUDE.md, all cloud infra deployment runs
through the operator + platform.hanzo.ai PaaS — devs do not touch
DOKS / GKE directly.
DeployAppchainTx on P-Chain; validator subset selector |1. Stake-aligned validation: every appchain's validator subset has
stake at risk via slashing on P-Chain. There is no path where a
compromised cloud node profits from misbehavior — slashing exceeds
any rational reward (per LP-084 validator economics).
2. Tenant isolation by construction: cross-tenant leakage requires
either equivocation by ≥1/3 of an appchain's validator subset
(slashed) or a substrate bug (in-scope for audit).
3. Resource accounting integrity: counters are part of the receipt,
covered by execution_root, certified by Quasar. A node cannot
under-report or over-report consumption without producing an
invalid execution root.
4. Confidentiality: F-Chain (FHE) and A-Chain (TEE) provide two
independent confidentiality paths. Customers needing both can
stack them.
5. Snapshot replay: a snapshot artifact is bound to its
QuasarRoundDescriptor; replaying it into a chain with a different
pchain_validator_root fails the cert verification at restore time.
6. Bridge surface: cross-cloud transfers (e.g., to centralized
cloud) go through B-Chain (LP-134), which inherits all bridge
security properties (LP-016, LP-017, LP-018). There is no privileged
"cloud bridge" with elevated permissions.
7. DoS resistance: appchains are economically rate-limited by their
own gas / fee curves; one appchain saturating its subset has zero
effect on other appchains running on the same physical nodes
(lane-level scheduling, LP-132 §wave-tick).
8. Data sovereignty: storage layer is the Quasar state trie itself
(committed in state_root), not an external object store. No
off-chain data plane, no external availability assumption.
~/work/hanzo/cloud |~/work/lux/cloud |~/work/lux/operator |~/work/lux/node |Copyright (C) 2025, Lux Partners Limited and Hanzo AI Inc. All rights reserved.
Licensed under the MIT License.