LPsLux Proposals
Precompiles
LP-1210

EVM Precompile Address Map

Final

The as-built registry of every custom EVM precompile package on the Lux C-Chain and ecosystem EVMs, with addresses, dispatch status, and the LP that specifies each one

Category
Core
Created
2021-09-01

Abstract

The as-built registry of every custom EVM precompile address for the Lux Network and all ecosystem chains. Standard Ethereum precompiles (0x01–0x0A) are preserved. All 37 precompile packages are compiled into every EVM by default; genesis determines activation timestamps (LP-1030).

Three packages are absent because they exposed secret key material in public calldata: aes (0x9210), chacha20 (0x9211), ecies (0x9201).

Precompile Packages

Ethereum Standard (preserved, not custom)

AddressNameEIP
0x01ecrecoversecp256k1 ECDSA recovery
0x02SHA-256SHA-256 hash
0x03RIPEMD-160RIPEMD-160 hash
0x04identityData copy
0x05modexpModular exponentiation
0x06ecAddBN254 point addition
0x07ecMulBN254 scalar multiplication
0x08ecPairingBN254 pairing check
0x09blake2fBLAKE2b compression
0x0ApointEvaluationEIP-4844 point evaluation

Curves (5 packages)

AddressPackageDescriptionLP
0x0100secp256r1P-256/NIST curve verify (EIP-7212, WebAuthn/Passkeys)4180
0x0A00..01sr25519Schnorrkel/Ristretto SR25519 verify (Substrate)4220
0x3211..00ed25519Edwards Ed25519 verify (Solana, TON, SSH)4210
0x9204curve25519Raw Curve25519 point ops (add, mul, MSM)4130
0x0500..07babyjubjubBaby Jubjub twisted Edwards (zkEVM circuits)4120

Post-Quantum Cryptography (10 packages)

Canonical as-built addresses are in the 0x0122xx PQ range. Deployed addresses are frozen; this table ratifies the as-built map.

AddressPackageDescriptionLP
0x012201mlkemML-KEM encap/decap — FIPS 2034600
0x012202mldsaML-DSA verify — FIPS 2044400
0x012203slhdsaSLH-DSA verify — FIPS 2054500
0x012204pulsarPulsar threshold signatures (PQ finality leg)4450
0x012205p3qP3Q rollup verify (PQ-checkpoint finality leg)4800
0x012206coronaCorona lattice threshold signatures (PQ finality leg)4440
0x012207magnetarMagnetar threshold signatures4540
0x012208hqcHQC code-based KEM4660
0x012220p3qSTARK/FRI verifier4835
0x2221xwingX-Wing hybrid KEM (X25519 + ML-KEM-768)4920
0x9003pqcryptoGeneral PQ crypto operations (umbrella)—

PQ is native and live, in a hybrid posture, not a classical replacement. Consensus (~/work/lux/consensus) keeps BLS as the always-required fast path and AND-composes a PQ finality leg on top — the operator postures are CLASSICAL (BLS), HYBRID_PQ_CHECKPOINT (BLS ∧ (Pulsar ∨ P3Q-rollup)), and STRICT_QUASAR (BLS ∧ Pulsar ∧ Corona, full dual-lattice). The pulsar/corona/p3q precompiles are the EVM-callable surface of those PQ legs; mldsa/mlkem/slhdsa are the FIPS primitives; xwing is the hybrid KEM. Validator/peer identity is likewise hybrid ML-DSA (see node/network/peer/{scheme_gate,ip_signer}.go). BLS is NOT removed — it is the fast path; PQ is the post-quantum finality layer on top.

Hashing (3 packages)

AddressPackageDescriptionLP
0x0500..04blake3BLAKE3 hash (256-bit)4310
0x0500..05poseidonPoseidon2 ZK-friendly hash (width 2-16)4350
0x0500..06pedersenPedersen commitment over BN2544365

Threshold Signatures (2 packages)

AddressPackageDescriptionLP
0x0800..02frostFROST EdDSA threshold verify4710
0x0800..03cggmp21CGGMP21 ECDSA threshold verify4720

Key Exchange (1 package)

AddressPackageDescriptionLP
0x9203x25519X25519 Diffie-Hellman key exchange4160

Symmetric Encryption (absent)

AES-256-GCM (0x9210) and ChaCha20-Poly1305 (0x9211) precompiles are not in the as-built map. Both accepted secret encryption keys in calldata, which is public on-chain. Use the FHE precompile (0x0700) for encrypted computation.

Verifiable Random Function (1 package)

AddressPackageDescription
0x3213vrfECVRF-EDWARDS25519-SHA512-ELL2 verify + proof-to-hash (RFC 9381)

Asymmetric Encryption / Privacy (2 packages)

AddressPackageDescriptionLP
0x9200hpkeHPKE seal only (RFC 9180, public-key encrypt)3662
0x9202ringRing signature verify only (LSAG)4280

ECIES (0x9201) is absent: decrypt required secret keys in calldata, and encrypt used non-deterministic randomness (consensus split risk). HPKE seal covers the same public-key encryption use case.

AI (3 packages)

AddressPackageDescriptionLP
0x0300aiAI mining / on-chain inference5210
0x0300..01attestationTEE attestation (NVTrust GPU, SGX, SEV-SNP, TDX)5310
0x0300..10computeAI compute marketplace (register, submit, claim, verify)5220

Consensus — Quasar (1 package, 5 addresses)

AddressPackageDescriptionLP
0x0300..20quasarVerkle tree verify4840
0x0300..21quasarBLS12-381 signature verify4110
0x0300..22quasarBLS12-381 aggregate4110
0x0300..23quasarPulsar consensus verify4450
0x0300..24quasarHybrid PQ verify4940

BLS12-381 (1 package, 7+ addresses — EIP-2537)

AddressPackageDescriptionLP
0x000Bbls12381G1 point addition4110
0x000Cbls12381G1 scalar multiplication4110
0x000Dbls12381G1 multi-scalar multiplication4110
+ G2Add, G2Mul, G2MSM, Pairing, MapToG1, MapToG2

Bridge (1 package, 4 addresses)

AddressPackageDescriptionLP
0x0440bridgeBridge gateway6000
0x0441bridgeCross-chain routing6000
0x0442bridgeMessage verification6000
0x0443bridgeBridge liquidity pools6000

FHE (1 package)

AddressPackageDescriptionLP
0x0700fheTFHE operations (30+ ops: encrypt, add, mul, compare, …)8200

ZK Proofs (1 package, 5+ verifiers)

AddressPackageDescriptionLP
0x0900zkGeneric ZK verify8010
0x0901zkGroth16 verifier4850 (reserved, unwritten)
0x0902zkPLONK verifier4860 (reserved, unwritten)
0x0903zkfflonk verifier4890 (reserved, unwritten)
0x0904zkHalo2 verifier4870 (reserved, unwritten)

Pasta Curves (1 package)

AddressPackageDescriptionLP
0x0500..08pastaPallas + Vesta curve ops (Halo2/Nova)4140

StableSwap AMM (1 package)

AddressPackageDescriptionLP
0x0400..60stableswapStableSwap invariant (GetDy, AddLiquidity, RemoveLiquidity, GetD)9202

DEX — LX Suite (1 package, 14 addresses)

0x9999 is the canonical EVM-side money path for the DEX (receipt-settlement PoolManager, LP-9999); the D-Chain (dexvm, LP-9000) matches and BLS-signs a DFillReceipt, and 0x9999 verifies that certificate inline and settles under Block-STM. 0x9010 is deprecated — retired to a single namespace-shared path (alias/disabled), see LP-9999 §10.

AddressPackageDescriptionLP
0x9999dexDEX V4 receipt-settlement PoolManager (canonical)9999
0x9010dexLXPool — v4 PoolManager — deprecated → 0x99999999
0x9011dexLXOracle — price aggregation9011
0x9012dexLXRouter — swap router9000
0x9013dexLXHooks — hook registry9000
0x9014dexLXFlash — flash accounting9000
0x9020dexLXBook — CLOB orderbook9000
0x9030dexLXVault — custody + margin9000
0x9040dexLXPrice — derived pricing9000
0x9050dexLXLend — lending pool9109
0x9060dexLXRepayer — self-repaying loans9109
0x9070dexLXLiquidator — liquidation engine9109
0x9080dexLXTransmuter — debt→collateral9109
0x90A1v3Concentrated liquidity (native; tick/sqrtPrice math, mint/burn/collect/swap)9201
0x6010dexTeleport — cross-chain6000

Dispatch status: a precompile is live only when a modules.Module{Address} is registered. 0x9999/0x9998/0x9997/0x9996/ 0x9012/0x90A1 and stableswap/math/graph are registered. 0x9050 (lend), 0x9060, 0x9070, 0x9080, 0x9030 carry complete code but are not yet registered (dark) — registering them is the DeFi roadmap (LP-9109). Measured gas savings for the live set are in LP-9061 (StableSwap 26×, P-256 95.7×, dex(V4) 2.5×; modexp/BLS/KZG are enablement, infeasible in pure Solidity).

Graph (1 package, 4 addresses)

AddressPackageDescriptionLP
0x0500..10graphOn-chain GraphQL query1230
0x0500..11graphGraphQL subscribe1230
0x0500..12graphGraphQL cache1230
0x0500..13graphGraphQL index1230

Blob (1 package)

AddressPackageDescriptionLP
0xB002kzg4844EIP-4844 KZG blob commitments4880

Attestation (see AI section above)

Attestation is registered at 0x0300..01 as part of the AI range. Selector dispatch routes to 5 operations: VerifyNVTrust, VerifyTPM, VerifyCompute, CreateAttestation, GetDeviceStatus. Full interface: LP-5310.

Registry (1 package)

AddressPackageDescriptionLP
0x000B-0x000DregistryPrecompile discovery + BLS12-381 curve ops1220

Umbrella packages (do NOT import)

PackageWrapsStatus
pqcryptomldsa + mlkem + slhdsaRedundant — use explicit imports. Has its own module registration.
quantummldsa + mlkem + slhdsa + coronaLibrary only, no init — dead blank import
thresholdcggmp21 + frost + coronaLibrary only, no init — dead blank import

Address Range Summary

RangePurpose
0x01-0x0AEthereum standard
0x000B-0x000DBLS12-381 (EIP-2537) + registry discovery
0x0100secp256r1 (EIP-7212)
0x012201-0x01220FPost-quantum (ML-KEM, ML-DSA, SLH-DSA, Pulsar, P3Q, Corona, Magnetar, HQC)
0x012220P3Q STARK/FRI verifier
0x0300AI mining
0x0300..01AI attestation (TEE)
0x0300..10AI compute marketplace
0x0300..20-24Quasar consensus helpers
0x0400..50-60StableSwap AMM
0x0440-0x0443Bridge
0x0500..01-09Hashing (blake3, poseidon, pedersen, babyjubjub, pasta)
0x0500..10-13Graph (query, subscribe, cache, index)
0x0700FHE
0x0800-0x080FThreshold signatures
0x0900-0x090FZK proofs
0x0A00-0x0A0FSubstrate curves
0x2221X-Wing hybrid KEM
0x3211Ed25519
0x3213VRF (ECVRF, RFC 9381)
0x6010Teleport
0x9003PQ umbrella
0x9010-0x9080, 0x90A1, 0x9996-0x9999DEX (LX Suite)
0x9200-0x9204Privacy (HPKE seal, ring verify, x25519, curve25519)
0xB002KZG/blob

Activation

All precompiles are compiled into the EVM binary. Activation is controlled per-chain via genesis blockTimestamp or blockNumber in the chain upgrade config. A precompile with blockTimestamp: 0 is active from genesis. The canonical genesis activation manifest is LP-1030.

Implementation

Source: github.com/luxfi/precompile — 37 packages, each with contract.go

  • module.go. Three are absent for key exposure: aes, chacha20, ecies.

Copyright and related rights waived via CC0.