Precompile Address Scheme and Discovery
The trailing-significant address scheme for Lux-native precompiles and the on-chain registry contracts use to discover which precompiles a chain exposes
Abstract
Two things: an address scheme that encodes the specifying LP number, chain slot, and function index into the trailing bytes of a 20-byte EVM address, and an on-chain registry contracts can query to determine which precompiles are available, at what addresses, with which supported operations.
The authoritative address table is LP-1210. This LP specifies how new addresses are derived and how a contract discovers them at runtime.
Specification
Address scheme
Lux-native precompiles use trailing-significant 20-byte addresses:
Format: 0x0000000000000000000000000000000000PCII
P = Family page (4 bits, aligned with LP numbering)
C = Chain slot (4 bits)
II = Item/function (8 bits, 256 items per family per chain)
Family pages (P nibble):
| P | LP Range | Family |
|---|---|---|
| 2 | LP-2xxx | PQ identity (ML-DSA, ML-KEM, SLH-DSA, Pulsar, X-Wing) |
| 3 | LP-3xxx | EVM/crypto (Ed25519, AI, attestation, Quasar) |
| 4 | LP-4xxx | Privacy / ZK |
| 5 | LP-5xxx | Threshold / MPC (FROST, CGGMP21) |
| 6 | LP-6xxx | Bridges (teleport) |
| 7 | LP-7xxx | AI |
| 9 | LP-9xxx | DEX / markets |
Chain slots (C nibble):
| C | Chain |
|---|---|
| 0 | P-Chain |
| 1 | X-Chain |
| 2 | C-Chain (main EVM) |
| 3 | Q-Chain |
| 4 | A-Chain |
| 5 | B-Chain |
| 6 | Z-Chain |
Standard EVM addresses (0x01–0x11) are preserved and are not part of this
scheme.
Special ranges
| Range | Purpose |
|---|---|
| 0x01-0x0A | Ethereum standard precompiles |
| 0x0B-0x11 | BLS12-381 (EIP-2537) |
| 0x0100 | secp256r1 (EIP-7212) |
| 0x0500-0x050F | Hashing (BLAKE3, Poseidon2, Pedersen, BabyJubJub, Pasta) |
| 0x9010-0x9080 | DEX (LX Suite) |
| 0x9200-0x9204 | Privacy (HPKE, ring, X25519, Curve25519) |
| 0xB002 | Extended KZG |
Discovery
The registry is read-only. A contract asks the registry which precompiles this chain exposes rather than probing addresses, so a contract compiled against a family page keeps working on a chain that activates a subset.
Security Considerations
- The registry is read-only. Precompile addresses are fixed at genesis (LP-1030).
- Calling a non-existent precompile address behaves as a normal contract call — no code, returns empty.
- The address scheme is deterministic: given an LP number and chain slot, the address can be computed without querying the registry.
References
- LP-1210 — the authoritative as-built address table. Where a deployed address and this scheme disagree, the deployed address in LP-1210 is what the chain answers to.
- Source:
github.com/luxfi/precompile/registry/
Copyright
Copyright and related rights waived via CC0.