mirror of
https://github.com/luxfi/chains.git
synced 2026-09-24 00:26:00 +00:00
1a7723684e926e94a695aa8feb839cec9bc67cd7
CRYPTO (Red/cryptographer HIGH): manifest state root was a hand-rolled len||k||len||v SHA-256 fold (length-extendable, no domain sep). Now SHAKE256 + SP 800-185 leftEncode framing + 'SCHAIN_STATE_ROOT_V1' domain, mirroring the validator NodeID scheme (ids/node_id_scheme.go) — not length-extendable, domain-separated, PQ-strength. Full schain suite green (determinism + change-sensitivity + Verify-rejects-tampered-root), NO sum bypass. DEPS (integrity, NOT bypassed): luxfi/[email protected] had been re-tagged (go.sum recorded an immutable-tag hash that no longer matched the served bits). Fixed PROPERLY by moving to the clean v0.8.11 and recording the real hashes; added the private hanzos3 org to GOPRIVATE (it was missing) so luxfi/zapdb's hanzos3/go-sdk dep resolves via git+go.sum, not the public sumdb. go.sum is now correct, not skipped. CI: registered schain in .github/images.json (build matrix); added the canonical schain/cmd/plugin/main.go (ZAP-native vm/rpc.Serve, no build tag — the path the release workflow builds), removing M0's grpc-tagged rpcchainvm plugin. Plugin builds clean via ./schain/cmd/plugin.
Lux Chains
Independent VM plugin binaries for the Lux Network.
Each directory builds to a standalone binary that the Lux node loads as a plugin via --plugin-dir.
Build
make # build all VMs
make evm # build one VM
make test # test all
Install
lpm install evm
lpm install dexvm
Or copy binaries to ~/.lux/plugins/<vmid>.
VMs
| VM | Chain | Purpose |
|---|---|---|
| evm | C-Chain | EVM smart contracts |
| dexvm | D-Chain | Decentralized exchange |
| aivm | A-Chain | AI/ML inference |
| bridgevm | B-Chain | Cross-chain bridge |
| graphvm | G-Chain | GraphQL data layer |
| identityvm | I-Chain | Decentralized identity |
| keyvm | K-Chain | Key management |
| oraclevm | O-Chain | Oracle/off-chain data |
| quantumvm | Q-Chain | Post-quantum consensus signing (Pulsar) |
| relayvm | R-Chain | Cross-chain relay |
| servicenodevm | S-Chain | Service node registry |
| teleportvm | T-Chain | Unified teleport (bridge + relay + oracle) |
| thresholdvm (MPC) | M-Chain | MPC ceremonies (CGGMP21, FROST, Pulsar-general) — bridge custody for external wallets |
| thresholdvm (FHE) | F-Chain | FHE compute + TFHE bootstrap-key generation (encrypted EVM) |
| zkvm | Z-Chain | Groth16 over BLS12-381 (rolls N × ML-DSA-65 sigs into 192-byte proof) |
Languages
Go
98.2%
C
1.7%
Shell
0.1%