LPsLux Proposals
Q-Chain
LP-4962

lp-4962-pq-permit


lp: 4962 title: PQ Permit description: An ML-DSA-65 typed-data permit replacing EIP-2612 for token approvals under the strict-PQ profile, over a TupleHash256 transcript bound by the PERMIT-V1 customization string author: Lux Core Team (@luxfi) discussions-to: https://github.com/luxfi/lps/discussions status: Final implementation-rust: none implementation-cpp: none implementation-go: shipped type: Standards Track category: Core tags: [pq, ml-dsa, permit, approvals, strict-pq]

  • lp-4400
  • lp-4294
  • lp-4960
  • lp-4870

Abstract

The PQ Permit replaces EIP-2612 for off-chain approval flows on Lux under LUX_STRICT_PQ. A permit is an ML-DSA-65 (FIPS 204) signature over a TupleHash256 (SP 800-185) transcript bound by the customization string PERMIT-V1, committing to:

(profile_id, chain_id, verifying_contract, owner_account_id,
 spender_account_id, value, nonce, deadline)

Contracts verify via the precompiles in LP-4875.

EIP-2612 works by recovering a secp256k1 signer from an EIP-712 hash — ecrecover is the whole mechanism. Under strict-PQ there is no recovery: an ML-DSA signature carries no recoverable public key, so the permit commits to the owner's AccountID explicitly and the contract verifies against a public key it already holds. That is a small change in shape with a large consequence: a permit is no longer self-describing about who signed it, and the contract must know the owner's key rather than deriving it.

Profile

ProfileID:           0x01  (ProfileLuxStrictPQ)
ProfileName:         LUX_STRICT_PQ
HashSuiteID:         SHA3_NIST                (0x01)
IdentitySchemeID:    ML_DSA_65                (0x42)
ProofPolicyID:       STARK_FRI_SHA3_PQ        (0x10)
MinSoundnessBits:    128
MinHashOutputBits:   384
RequireTransparent:  true
ForbidPairings:      true
ForbidKZG:           true
ForbidTrustedSetup:  true
ForbidClassicalSNARKs: true
ForbidDevProofs:     true
ForbidFallbacks:     true

Bindings

  • luxfi/consensus/protocol/auth/permit.go is the canonical reference. The EVM-side precompile is wired in luxfi/evm/core/vm/contracts_pq.go.
  • Tokens migrating from EIP-2612 expose both methods during the permissive transition; on LUX_STRICT_PQ activation only the PQ Permit method is enabled.
  • The per-owner nonce mirrors EIP-2612 exactly, which keeps the contract migration surface to the signature check itself.
  • KAT vectors: luxfi/consensus/protocol/auth/testdata/permit_v1.json.

Compliance

A token deployment on LUX_STRICT_PQ MUST refuse classical EIP-2612 permits. The PQ Permit precompile path (LP-4875) is the only auth route.

References

  • EIP-2612 — the classical baseline this replaces
  • HIP-0087 — the full permit specification this LP binds to the luxfi package surface
  • NIST FIPS 204, FIPS 202, SP 800-185, SP 800-57
  • luxfi/consensus/protocol/auth/permit.go

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

Licensed under the MIT License.