LPsLux Proposals
Q-Chain
LP-4665

lp-4665-session-kem


lp: 4665 title: Session KEM description: ML-KEM-768 and ML-KEM-1024 as the post-quantum session KEM for the ZAP handshake under the strict-PQ profile, with classical X25519 refused outright author: Lux Core Team (@luxfi) discussions-to: https://github.com/luxfi/lps/discussions status: Final implementation-rust: partial implementation-cpp: partial implementation-go: partial type: Standards Track category: Networking tags: [pq, ml-kem, kem, session, handshake, zap, strict-pq]

  • lp-4600
  • lp-4400

Abstract

The ZAP handshake under LUX_STRICT_PQ performs an ML-KEM-768 (FIPS 203, NIST PQ Category 3, default) or ML-KEM-1024 (Category 5, high-value) encapsulation, with mutual ML-DSA-65 signatures over the handshake transcript. The derived shared secret runs through KMAC256 (SP 800-185) to produce a 256-bit AEAD key.

Classical X25519 is refused, not deprioritized. The reason is the threat model this profile exists for: a store-now-decrypt-later adversary records today's handshake and breaks it when a quantum computer arrives. Under that model an X25519 fallback is not a compatibility convenience — it is the attack. A hybrid construction is admissible only on permissive profiles, for legacy interoperability where the recorded traffic is not worth protecting for decades.

Profile

ProfileID:           0x01  (ProfileLuxStrictPQ)
ProfileName:         LUX_STRICT_PQ
HashSuiteID:         SHA3_NIST                (0x01)
IdentitySchemeID:    ML_DSA_65                (0x42)
KEMSchemeIDDefault:  ML_KEM_768               (0x01)
KEMSchemeIDHighValue: ML_KEM_1024             (0x02)
MinSoundnessBits:    128
MinHashOutputBits:   384
RequireTransparent:  true
ForbidPairings:      true
ForbidKZG:           true
ForbidTrustedSetup:  true
ForbidClassicalSNARKs: true
ForbidDevProofs:     true
ForbidFallbacks:     true

Bindings

  • Canonical KEM ID registry: luxfi/consensus/config/pq_mode.go (KeyExchangeID). The auth package re-exports the same bytes by type alias in luxfi/consensus/protocol/auth/scheme_ids.go — one registry, one set of bytes.
  • KEM session primitives: luxfi/node/network/kem/scheme.go and mlkem.go. Handshake state machine: luxfi/node/network/peer/handshake.go.
  • Validator-to-validator gossip on LUX_STRICT_PQ MUST use ML-KEM-768 as a minimum. High-value mesh roles — bridge, governance MPC — use ML-KEM-1024.
  • Session key rotation: 1 hour or 2^28 records, whichever comes first.

Compliance

A node on LUX_STRICT_PQ MUST NOT negotiate X25519 or ECDH. The KEM scheme byte is bound into the handshake transcript and into the AEAD key derivation, so a downgrade substitution does not merely fail policy — it produces a different key and the session cannot decrypt. The substitution is detected at the TupleHash256 binding step.

References

  • HIP-0088 — the full session-KEM specification this LP binds to the luxfi package surface
  • NIST FIPS 203, FIPS 204, FIPS 202, SP 800-185, SP 800-57
  • luxfi/consensus/config/pq_mode.go — canonical KeyExchangeID

Copyright (C) 2024-2026, Lux Industries Inc. All rights reserved.

Licensed under the MIT License.