Precompiles
LP-1210
EVM Precompile Address Map
FinalThe 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
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)
| Address | Name | EIP |
|---|
| 0x01 | ecrecover | secp256k1 ECDSA recovery |
| 0x02 | SHA-256 | SHA-256 hash |
| 0x03 | RIPEMD-160 | RIPEMD-160 hash |
| 0x04 | identity | Data copy |
| 0x05 | modexp | Modular exponentiation |
| 0x06 | ecAdd | BN254 point addition |
| 0x07 | ecMul | BN254 scalar multiplication |
| 0x08 | ecPairing | BN254 pairing check |
| 0x09 | blake2f | BLAKE2b compression |
| 0x0A | pointEvaluation | EIP-4844 point evaluation |
Curves (5 packages)
| Address | Package | Description | LP |
|---|
| 0x0100 | secp256r1 | P-256/NIST curve verify (EIP-7212, WebAuthn/Passkeys) | 4180 |
| 0x0A00..01 | sr25519 | Schnorrkel/Ristretto SR25519 verify (Substrate) | 4220 |
| 0x3211..00 | ed25519 | Edwards Ed25519 verify (Solana, TON, SSH) | 4210 |
| 0x9204 | curve25519 | Raw Curve25519 point ops (add, mul, MSM) | 4130 |
| 0x0500..07 | babyjubjub | Baby 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.
| Address | Package | Description | LP |
|---|
| 0x012201 | mlkem | ML-KEM encap/decap — FIPS 203 | 4600 |
| 0x012202 | mldsa | ML-DSA verify — FIPS 204 | 4400 |
| 0x012203 | slhdsa | SLH-DSA verify — FIPS 205 | 4500 |
| 0x012204 | pulsar | Pulsar threshold signatures (PQ finality leg) | 4450 |
| 0x012205 | p3q | P3Q rollup verify (PQ-checkpoint finality leg) | 4800 |
| 0x012206 | corona | Corona lattice threshold signatures (PQ finality leg) | 4440 |
| 0x012207 | magnetar | Magnetar threshold signatures | 4540 |
| 0x012208 | hqc | HQC code-based KEM | 4660 |
| 0x012220 | p3q | STARK/FRI verifier | 4835 |
| 0x2221 | xwing | X-Wing hybrid KEM (X25519 + ML-KEM-768) | 4920 |
| 0x9003 | pqcrypto | General 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)
| Address | Package | Description | LP |
|---|
| 0x0500..04 | blake3 | BLAKE3 hash (256-bit) | 4310 |
| 0x0500..05 | poseidon | Poseidon2 ZK-friendly hash (width 2-16) | 4350 |
| 0x0500..06 | pedersen | Pedersen commitment over BN254 | 4365 |
Threshold Signatures (2 packages)
| Address | Package | Description | LP |
|---|
| 0x0800..02 | frost | FROST EdDSA threshold verify | 4710 |
| 0x0800..03 | cggmp21 | CGGMP21 ECDSA threshold verify | 4720 |
Key Exchange (1 package)
| Address | Package | Description | LP |
|---|
| 0x9203 | x25519 | X25519 Diffie-Hellman key exchange | 4160 |
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)
| Address | Package | Description |
|---|
| 0x3213 | vrf | ECVRF-EDWARDS25519-SHA512-ELL2 verify + proof-to-hash (RFC 9381) |
Asymmetric Encryption / Privacy (2 packages)
| Address | Package | Description | LP |
|---|
| 0x9200 | hpke | HPKE seal only (RFC 9180, public-key encrypt) | 3662 |
| 0x9202 | ring | Ring 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)
| Address | Package | Description | LP |
|---|
| 0x0300 | ai | AI mining / on-chain inference | 5210 |
| 0x0300..01 | attestation | TEE attestation (NVTrust GPU, SGX, SEV-SNP, TDX) | 5310 |
| 0x0300..10 | compute | AI compute marketplace (register, submit, claim, verify) | 5220 |
Consensus — Quasar (1 package, 5 addresses)
| Address | Package | Description | LP |
|---|
| 0x0300..20 | quasar | Verkle tree verify | 4840 |
| 0x0300..21 | quasar | BLS12-381 signature verify | 4110 |
| 0x0300..22 | quasar | BLS12-381 aggregate | 4110 |
| 0x0300..23 | quasar | Pulsar consensus verify | 4450 |
| 0x0300..24 | quasar | Hybrid PQ verify | 4940 |
BLS12-381 (1 package, 7+ addresses — EIP-2537)
| Address | Package | Description | LP |
|---|
| 0x000B | bls12381 | G1 point addition | 4110 |
| 0x000C | bls12381 | G1 scalar multiplication | 4110 |
| 0x000D | bls12381 | G1 multi-scalar multiplication | 4110 |
| + G2Add, G2Mul, G2MSM, Pairing, MapToG1, MapToG2 | | | |
Bridge (1 package, 4 addresses)
| Address | Package | Description | LP |
|---|
| 0x0440 | bridge | Bridge gateway | 6000 |
| 0x0441 | bridge | Cross-chain routing | 6000 |
| 0x0442 | bridge | Message verification | 6000 |
| 0x0443 | bridge | Bridge liquidity pools | 6000 |
FHE (1 package)
| Address | Package | Description | LP |
|---|
| 0x0700 | fhe | TFHE operations (30+ ops: encrypt, add, mul, compare, …) | 8200 |
ZK Proofs (1 package, 5+ verifiers)
| Address | Package | Description | LP |
|---|
| 0x0900 | zk | Generic ZK verify | 8010 |
| 0x0901 | zk | Groth16 verifier | 4850 (reserved, unwritten) |
| 0x0902 | zk | PLONK verifier | 4860 (reserved, unwritten) |
| 0x0903 | zk | fflonk verifier | 4890 (reserved, unwritten) |
| 0x0904 | zk | Halo2 verifier | 4870 (reserved, unwritten) |
Pasta Curves (1 package)
| Address | Package | Description | LP |
|---|
| 0x0500..08 | pasta | Pallas + Vesta curve ops (Halo2/Nova) | 4140 |
StableSwap AMM (1 package)
| Address | Package | Description | LP |
|---|
| 0x0400..60 | stableswap | StableSwap 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.
| Address | Package | Description | LP |
|---|
| 0x9999 | dex | DEX V4 receipt-settlement PoolManager (canonical) | 9999 |
| 0x9010 | dex | LXPool — v4 PoolManager — deprecated → 0x9999 | 9999 |
| 0x9011 | dex | LXOracle — price aggregation | 9011 |
| 0x9012 | dex | LXRouter — swap router | 9000 |
| 0x9013 | dex | LXHooks — hook registry | 9000 |
| 0x9014 | dex | LXFlash — flash accounting | 9000 |
| 0x9020 | dex | LXBook — CLOB orderbook | 9000 |
| 0x9030 | dex | LXVault — custody + margin | 9000 |
| 0x9040 | dex | LXPrice — derived pricing | 9000 |
| 0x9050 | dex | LXLend — lending pool | 9109 |
| 0x9060 | dex | LXRepayer — self-repaying loans | 9109 |
| 0x9070 | dex | LXLiquidator — liquidation engine | 9109 |
| 0x9080 | dex | LXTransmuter — debt→collateral | 9109 |
| 0x90A1 | v3 | Concentrated liquidity (native; tick/sqrtPrice math, mint/burn/collect/swap) | 9201 |
| 0x6010 | dex | Teleport — cross-chain | 6000 |
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)
| Address | Package | Description | LP |
|---|
| 0x0500..10 | graph | On-chain GraphQL query | 1230 |
| 0x0500..11 | graph | GraphQL subscribe | 1230 |
| 0x0500..12 | graph | GraphQL cache | 1230 |
| 0x0500..13 | graph | GraphQL index | 1230 |
Blob (1 package)
| Address | Package | Description | LP |
|---|
| 0xB002 | kzg4844 | EIP-4844 KZG blob commitments | 4880 |
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)
| Address | Package | Description | LP |
|---|
| 0x000B-0x000D | registry | Precompile discovery + BLS12-381 curve ops | 1220 |
Umbrella packages (do NOT import)
| Package | Wraps | Status |
|---|
pqcrypto | mldsa + mlkem + slhdsa | Redundant — use explicit imports. Has its own module registration. |
quantum | mldsa + mlkem + slhdsa + corona | Library only, no init — dead blank import |
threshold | cggmp21 + frost + corona | Library only, no init — dead blank import |
Address Range Summary
| Range | Purpose |
|---|
| 0x01-0x0A | Ethereum standard |
| 0x000B-0x000D | BLS12-381 (EIP-2537) + registry discovery |
| 0x0100 | secp256r1 (EIP-7212) |
| 0x012201-0x01220F | Post-quantum (ML-KEM, ML-DSA, SLH-DSA, Pulsar, P3Q, Corona, Magnetar, HQC) |
| 0x012220 | P3Q STARK/FRI verifier |
| 0x0300 | AI mining |
| 0x0300..01 | AI attestation (TEE) |
| 0x0300..10 | AI compute marketplace |
| 0x0300..20-24 | Quasar consensus helpers |
| 0x0400..50-60 | StableSwap AMM |
| 0x0440-0x0443 | Bridge |
| 0x0500..01-09 | Hashing (blake3, poseidon, pedersen, babyjubjub, pasta) |
| 0x0500..10-13 | Graph (query, subscribe, cache, index) |
| 0x0700 | FHE |
| 0x0800-0x080F | Threshold signatures |
| 0x0900-0x090F | ZK proofs |
| 0x0A00-0x0A0F | Substrate curves |
| 0x2221 | X-Wing hybrid KEM |
| 0x3211 | Ed25519 |
| 0x3213 | VRF (ECVRF, RFC 9381) |
| 0x6010 | Teleport |
| 0x9003 | PQ umbrella |
| 0x9010-0x9080, 0x90A1, 0x9996-0x9999 | DEX (LX Suite) |
| 0x9200-0x9204 | Privacy (HPKE seal, ring verify, x25519, curve25519) |
| 0xB002 | KZG/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
Copyright and related rights waived via CC0.