LPsLux Proposals
Q-Chain
LP-4060

lp-4060-drbg-randomness-beacon


lp: 4060 title: DRBG and Randomness Beacon description: Hash-DRBG over SHA3-384 per NIST SP 800-90A as the randomness beacon under LUX_STRICT_PQ, reseeded each epoch from an entropy source (LP-4050) composed with a Pulsar aggregated contribution. author: Lux Core Team (@luxfi) status: Draft implementation-rust: none implementation-cpp: none implementation-go: none type: Standards Track category: Cryptography tags: [crypto, drbg, randomness, beacon, post-quantum]

  • lp-4050
  • lp-4340
  • lp-4450

LP-4060: DRBG / Randomness Beacon

Abstract

LP-4060 mirrors HIP-0089 into Lux. Under LUX_STRICT_PQ the randomness beacon is a Hash-DRBG over SHA3-384 per NIST SP 800-90A Rev. 1 §10.1.1, reseeded each epoch from an entropy source (LP-4050) composed with a Pulsar (LP-4450) aggregated contribution. The composition is the length-prefixed, domain-separated combiner of LP-4050 — not an XOR, which is not an SP 800-90C composition. The per-block beacon output is bound into the Q-Block transcript (LP-4015) and signed by the Pulsar-65 finality cert.

Mirrored profile

ProfileID:           0x01  (ProfileLuxStrictPQ)
ProfileName:         LUX_STRICT_PQ
HashSuiteID:         SHA3_NIST                (0x01)
DRBGConstruction:    HASH_DRBG_SHA3_384       (0x90)
DRBGSecurityStrength: 256
ReseedCadence:       EPOCH_OR_2POW48
MinSoundnessBits:    128
MinHashOutputBits:   384
RequireTransparent:  true
ForbidPairings:      true
ForbidKZG:           true
ForbidClassicalSNARKs: true
ForbidFallbacks:     true

Lux-specific bindings

  • Entropy binding: github.com/luxfi/crypto/entropy (LP-4050), whose Source is an io.Reader plus a Health() error that fails closed.
  • The beacon itself is specified here and not yet implemented: there is no beacon.go in luxfi/consensus today.
  • Consumer cust strings:
    • LEADER-V1 — block-leader election.
    • RNG-V1 — on-chain RNG opcode / contract-callable beacon.
  • ECVRF-Ed25519 (LP-3657) is refused under LUX_STRICT_PQ. The classical VRF lives only on permissive profiles.
  • KAT vectors: luxfi/consensus/protocol/auth/testdata/hash_drbg_v1.json. Generator passes NIST CAVP DRBGVS test vectors.

Pulsar committee selection is not a consumer of this beacon. Sortition derives its seed from state that is already final (LP-0110). A beacon value is not available at the moment sortition must be computed, and substituting one would replace a seed no proposer can influence with a value produced after the fact. One committee, one specification.

Compliance

A Lux validator on LUX_STRICT_PQ MUST source on-chain randomness from the Hash-DRBG beacon. Contracts calling block.difficulty / RANDAO opcodes receive the PQ beacon output under the strict-PQ profile.

References

  • HIP-0089 — canonical source of truth.
  • NIST SP 800-90A Rev. 1, SP 800-90B.
  • NIST FIPS 202 + SP 800-185.
  • HIP-0073 — QRNG entropy source.
  • LP-131 — ECVRF (refused under strict-PQ).
  • LP-4015, LP-171 — Q-Chain, Pulsar binding.
  • luxfi/consensus/protocol/auth/beacon.go.