LPsLux Proposals
Consensus Systems
LP-4990

Cert Profile Modes

Final

An operator-facing four-mode additive ladder for the Quasar cert selector — PQ-off, PQ-fast, PQ-strict, PQ-heavy, plus three pure-PQ variants — where the name declares posture and each step adds exactly one independent security property

Category
Core
Created
2026-06-03

Abstract

Cert profiles named after astronomical phenomena — Pulsar, Aurora, Polaris — describe internals, not posture: an operator cannot read "Aurora" and know whether the cert is post-quantum protected or what it costs in latency. This LP specifies the operator-facing surface as a four-mode additive ladder whose name declares posture and whose composition is monotone.

PQ-off    ⊂  PQ-fast     ⊂  PQ-strict     ⊂  PQ-heavy
BLS          BLS+Pulsar     BLS+Pulsar       BLS+Pulsar
                            +Corona          +Corona+Magnetar

Each step adds exactly one independent security property. The pure-PQ variants drop the classical fast path and are otherwise identical:

strict-PQ-fast   = Pulsar
strict-PQ-strict = Pulsar + Corona
strict-PQ-heavy  = Pulsar + Corona + Magnetar

Seven valid configurations in total. The QuasarCert wire format (LP-0122) is unchanged and the cert struct shape is unchanged — the mode name is a single header byte on the operator config knob, quasar.cert_mode.

Motivation

Three concrete failures of a codename surface:

  1. Posture is opaque. "Aurora" does not announce that BLS is the fast-path leg or that lattice diversity is present. Answering "is Aurora PQ?" requires reading the profile specification.
  2. Ordering is non-monotone. Pulsar → Aurora → Polaris is the security ordering, but the names give no hint that Polaris is a superset of Aurora. A new operator reading the codenames alphabetically builds the wrong mental model.
  3. No room for the pure-PQ variant. A chain that does not need a classical fast path — a post-transition L1, a sovereign network not anchored to a BLS bridge — has no codename, because the codename scheme assumes BLS is always present.

The ladder fixes all three: names declare posture, ordering is monotone, and pure-PQ variants are first class under the strict- prefix.

The four modes

Each mode defines a REQUIRED leg set. A cert is at mode M if and only if every leg in M's required set is present and verified. Modes are totally ordered by subset inclusion within their family, classical or pure-PQ.

Latency numbers below are measured wall clock per signing round on Spark (GB10 ARM, 20-core) at N=64 from the Quasar four-scheme matrix bench. Columns are M1 Max and Spark, CPU-only — GPU dispatch was unplumbed at bench time; see "GPU dispatch — measured gaps". Cert size is the wire form at N=64.

ModeRequired legsM1 Max wallSpark wallCert size @ N=64Recommended use
PQ-offBLS6.9 ms6.3 ms96 BHFT trading chains; non-financial L2s with strict classical-compatibility requirements
PQ-fastBLS + Pulsar391 ms585 ms33,154 BPayment rails, gaming, DEX with cost-sensitive PQ insurance
PQ-strictBLS + Pulsar + Corona360 ms595 ms245,634 BDefault — custody, treasury, regulated securities
PQ-heavyBLS + Pulsar + Corona + Magnetar2.22 s1.33 s1.28 MBCross-chain bridges, sovereign-network anchors; breaks the 1-second budget at 192s — see the Magnetar parameter note

The pure-PQ variants drop BLS; the leg composition is otherwise identical:

ModeRequired legsSecurity postureRecommended use
strict-PQ-fastPulsarMinimum PQ, no classical fast path. FIPS 204 byte-equal.Post-transition L1 with no BLS bridge dependency
strict-PQ-strictPulsar + CoronaAdds the never-trust-the-aggregator threshold property.Sovereign PQ-only treasury chain
strict-PQ-heavyPulsar + Corona + MagnetarCross-family maximum.PQ-only long-archival anchor

Per-primitive single-validator timings, same bench, Magnetar at 192s (the production-target parameter set):

PrimitiveM1 MaxSpark GB10Notes
BLS12-381 sign327 μs259 μsclassical fast path
BLS12-381 verify730 μs977 μspairing-heavy on Spark
ML-DSA-65 (raw)432 μs309 μsper-validator post-quantum
Pulsar (FIPS 204 P65)264 μs175 μsthreshold-mode kernel
Pulsar verify133 μs119 μs
Magnetar SLH-DSA-192s1,575 ms795 msdominates PQ-heavy
Magnetar SLH-DSA-192f70.7 ms35.9 ms22× faster — see the parameter note

The Corona ceremony scales O(N^1.5–1.7) between N=32 and N=64 (Spark: 370 ms → 585 ms = 1.58×; M1: 231 ms → 391 ms = 1.69×), which is what a two-round threshold protocol whose Round 1 and Round 2 messages cross-multiply should look like. Corona rejection-exhausts at N=128 under the default coronaMaxRetries=8; production at N=128 requires parameter retuning. PQ-strict at N≤64 stays inside the 1-second budget on both M1 Max and Spark.

Magnetar parameter note

The bench measures Magnetar SLH-DSA-192s, the small-signature variant, because that is what ~/work/lux/threshold/protocols/magnetar/ ships. At 795 ms per sign on Spark, no Magnetar-bearing profile is sub-second at any measured N. Switching to 192f — the fast variant with larger signatures — drops per-validator sign to 36 ms on Spark and restores the sub-1-second budget for PQ-heavy at N≤64.

PQ-heavy MUST therefore use Magnetar-192f in production. An operator choosing PQ-heavy with 192s is opting into multi-second finality.

GPU dispatch — measured gaps

Background nvidia-smi dmon -s pucvmet across the two-hour bench run captured 4,595 samples; mean SM utilization was 11.9% — idle and background only. No path in this bench exercised the GPU. Two boundary gaps block the dispatch:

  1. No lux-lattice.pc on Spark. The Go-side luxfi/lattice/v7/gpu package uses #cgo pkg-config: lux-lattice; the CMake build hits find_package(MLX REQUIRED) on the dependency chain even for CUDA targets, so -tags "cgo gpu" does not build on Spark. Local Mac builds succeed (lux-lattice.pc plus libluxlattice.dylib). The CUDA NTT kernels are present and pass known-answer tests; the bench just could not reach them.
  2. Magnetar SLH-DSA CUDA boundary unplumbed. luxcpp/crypto/slhdsa/gpu/cuda/slhdsa.cu exists and test_slhdsa_kat_cuda passes on Spark (WOTS+, FORS, and XMSS subtree KATs all pass), but the lux_slhdsa_* entry points are not exposed in luxcpp/lux-accel/include/lux/accel/c_api.h, so magnetar.ValidatorSign falls back to pure Go.

Until both gaps close, GPU numbers in this LP and downstream are explicitly projected, not measured.

Cert tier composition rules

  1. Required-set semantics. A cert is at mode M if and only if every leg in M's required set has been aggregated and verified at the round digest. A cert with extra legs is still at mode M — extra legs are allowed, not required.
  2. Tier degradation. If a required leg fails to aggregate by the round deadline, the cert is published with that leg empty. A relying party whose policy requires mode M waits for the next height or falls back to the previous height; a relying party at the highest mode whose required set is satisfied finalizes normally. Consensus liveness is preserved by the surviving legs.
  3. Monotone observability. The cert becomes observable at progressively higher modes as legs arrive. One cert struct serves every relying-party policy; the relying party applies its mode policy against the observed leg set.
  4. Pure-PQ variants drop BLS. strict-PQ-* modes do not require BLS. A cert with BLS present and the required PQ legs satisfies both the classical mode and the pure-PQ variant. Operators pick the mode their relying-party policy enforces; the cert is the same.
  5. The ZK leg is profile-orthogonal. The optional zero-knowledge execution-side leg is not part of the ladder. It is attached or absent independently per chain; modes describe consensus-cert posture only.

Relationship to the named cert profiles

The named profiles remain the specification of their leg compositions; the ladder is the operator-facing selector over them.

ModeRequired legsNamed profile with the same lattice composition
PQ-offBLS— (no named profile is BLS-only)
PQ-fastBLS + Pulsar—
PQ-strictBLS + Pulsar + CoronaAurora
PQ-heavyBLS + Pulsar + Corona + MagnetarPolaris
strict-PQ-fastPulsar—
strict-PQ-strictPulsar + Corona—
strict-PQ-heavyPulsar + Corona + Magnetar—

The named profiles carry the ZK leg; in the ladder the ZK leg is orthogonal (rule 5). Composition predicates in code — IsPolaris, IsDoubleLattice, HasHashBased — are unchanged and keep serving the relying-party policy surface; CertPolicy.ToV1Predicate() is the single bridge to them.

Operator config

One struct, CertPolicy, declares the full cert posture for a chain at genesis. Three previously scattered knobs — cert_mode, cert_timeout_ms, and the per-L1 mode picker — collapse into four fields of one record.

Go struct (canonical)

The operator-facing enum is CertMode, not PQMode. PQMode is already taken in pq_mode.go for the internal identifiers (PQModePulsar, PQModeQuasar, PQModeMLDSA, …) that name cryptographic building blocks; CertMode is the operator-facing ladder defined here.

// CertPolicy is the single configuration record that declares a
// chain's cert posture. One CertPolicy per chain at genesis;
// validated at chain launch; refused if invalid.
type CertPolicy struct {
    Mode      CertMode    // PQ-off | PQ-fast | PQ-strict | PQ-heavy
    Variant   CertVariant // Hybrid (BLS + PQ legs) | Strict (pure PQ, no BLS)
    TimeoutMs uint32      // max wait for full-mode cert; past TimeoutMs
                          // tier degradation kicks in
    Fallback  CertMode    // tier to settle at if Mode's legs don't
                          // arrive in TimeoutMs; MUST satisfy Fallback <= Mode
}

// CertMode is the additive cert-mode ladder. Subset-ordered:
//   CertModeOff < CertModeFast < CertModeStrict < CertModeHeavy
type CertMode uint8

const (
    CertModeOff    CertMode = 0 // Hybrid: BLS only.              Strict: (invalid; refused)
    CertModeFast   CertMode = 1 // Hybrid: BLS + Pulsar.          Strict: Pulsar only
    CertModeStrict CertMode = 2 // Hybrid: BLS + Pulsar + Corona. Strict: Pulsar + Corona
    CertModeHeavy  CertMode = 3 // Hybrid: BLS + Pulsar + Corona + Magnetar.
                                // Strict: Pulsar + Corona + Magnetar
)

// CertVariant picks whether BLS is part of the required leg set.
type CertVariant uint8

const (
    CertVariantHybrid CertVariant = 0 // include BLS as classical leg
    CertVariantStrict CertVariant = 1 // drop BLS; pure PQ legs only
)

YAML form

quasar:
  cert_policy:
    mode:        PQ-strict   # PQ-off | PQ-fast | PQ-strict | PQ-heavy
    variant:     hybrid      # hybrid | strict
    timeout_ms:  1000        # max wait for full-mode cert
    fallback:    PQ-fast     # tier to settle at if Mode's legs miss
                             # the timeout; MUST be <= mode

A chain configured mode=PQ-strict, variant=hybrid produces a QuasarCert with BLS, Pulsar, and Corona legs. The same chain at mode=PQ-strict, variant=strict drops BLS.

(Mode, Variant) enumeration

ModeVariantRequired legsWire name
PQ-offhybridBLSPQ-off
PQ-fasthybridBLS + PulsarPQ-fast
PQ-stricthybridBLS + Pulsar + CoronaPQ-strict
PQ-heavyhybridBLS + Pulsar + Corona + MagnetarPQ-heavy
PQ-faststrictPulsarstrict-PQ-fast
PQ-strictstrictPulsar + Coronastrict-PQ-strict
PQ-heavystrictPulsar + Corona + Magnetarstrict-PQ-heavy

Seven configurations. The eighth slot, (PQ-off, strict), is invalid — no legs at all — and Validate refuses it.

Validation rules

CertPolicy is validated at chain genesis. A chain MUST refuse to launch with an invalid CertPolicy.

  1. Fallback <= Mode. A fallback tier means "the relying party finalizes at this lower posture if Mode's legs do not arrive within TimeoutMs". Finalizing at a stronger tier would require more legs, not fewer, so a stronger fallback is incoherent. The four modes are subset-ordered, and the comparison is integer ordering on CertMode.

  2. Variant == Strict requires Mode >= PQ-fast. Pure PQ at PQ-off is the empty leg set — no BLS, no PQ legs. A cert with no legs is not a cert; this configuration is refused.

  3. TimeoutMs >= 2 * expected_floor_latency(Mode). A chain configured at a high Mode with a TimeoutMs shorter than that mode's floor latency will routinely publish certs at a lower tier. The validator MUST reject such a configuration at genesis — there is no operationally useful chain that wants to declare PQ-heavy and then never satisfy it. Floor latencies (Blackwell, N=64):

    ModeFloor latencyMin TimeoutMs
    PQ-off~1 ms (final)2 ms
    PQ-fast~5 ms (GPU)10 ms
    PQ-strict~50 ms (GPU)100 ms
    PQ-heavy~80 ms (final)160 ms

    Validators on non-Blackwell hardware multiply through the CPU / M4 Max floors. The 2× factor is the minimum; production deployments typically set TimeoutMs to 4–10× the floor to absorb jitter without dropping to Fallback.

  4. Fallback must itself be a valid (Mode, Variant) under the chain's Variant. A chain at Variant=Strict cannot fall back to PQ-off, because (PQ-off, strict) is invalid by rule 2.

Per-mode use cases

  • PQ-off — HFT trading chains where the ~50 μs preliminary cert sits in the critical path of an order-matching engine; non-financial L2s whose threat model excludes store-now-decrypt-later adversaries; legacy bridge endpoints that consume only classical BLS-verifiable certs.
  • PQ-fast — payment rails, where the ~500 μs cost is below typical ACH or card-rail end-to-end latency; gaming chains that want PQ insurance inside a ~5 ms budget; DEX matching layers settling to a PQ-strict L1.
  • PQ-strict — custody and treasury chains; regulated securities L1s where the cert is the audit anchor; store-of-value chains. The intra-lattice diversity — two Module-LWE parameter sets, Pulsar and Corona — hedges against a parameter- or implementation-specific break.
  • PQ-heavy — cross-chain bridges, where the cert is the proof a remote chain consumes; sovereign-network anchors; long-archival commitments a verifier checks 30 years out, where the hash-based Magnetar leg defends against any future lattice break.

Rationale

Why an additive ladder

Each mode adds exactly one security property over the previous one, which makes the operator's decision linear: pick the lowest mode whose posture floor exceeds your threat model. A codename ladder is additive in legs but not in name; this ladder is additive in both.

Why Pulsar is the cheap PQ leg

The Corona/Pulsar parity audit (lux/threshold/protocols/parity/) measured the two schemes apples to apples on Apple M1 Max and DGX Spark GB10 and found Corona 141× slower than Pulsar at N=64 validators — 3.2–4.0 s versus 23–28 ms total signing round trip. That is not an optimization gap; it is algorithmic:

  1. Pulsar is a reconstruct-on-aggregator Shamir scheme. The aggregator briefly materializes the 32-byte master secret key by Shamir reconstruction over GF(257), runs unmodified FIPS 204 ML-DSA sign once on that host, and zeroizes. Output is byte-equal to vanilla ML-DSA, so any FIPS 204 verifier accepts it.
  2. Corona is a genuine two-round threshold lattice scheme (Corona family, eprint 2024/1113). Each party performs 392 NTT polynomial multiplications in Round 1 plus 256 independent Gaussian eliminations in Round 2 plus 2t PRF expansions. No party ever materializes the master secret key. Different security property, different cost class.
  3. At N=64 on the same hardware: Pulsar 28.5 ms total, Corona 4,031 ms total. The 141× gap is the price of "never trust the aggregator" — worth it for high-value chains, not worth it for the minimum-PQ tier.
  4. Pulsar has committed known-answer vectors (lux/pulsar/vectors/*.json) and cross-implementation validation. Corona's KAT vectors are pending; the audit harness produced the seed for the first set.

Hence PQ-fast = BLS + Pulsar, cheap and FIPS 204 interoperable, and PQ-strict adds Corona on top for chains that need the never-trust-the-aggregator property. The roughly 100× latency cost buys an architectural security upgrade, not a redundant lane.

Why pure-PQ variants are first class

A chain that does not need a classical fast path — a post-transition L1, a sovereign anchor chain — should not be forced to operate BLS infrastructure. The strict-PQ-* prefix is the explicit operator declaration that this chain does not consume BLS-verifiable certs.

Why four modes plus three variants equals seven configurations

This matches the signature-pack matrix bench dimensions: each bench row is one of the seven valid leg sets. Spec and bench share one enumeration, so a new leg added later expands both surfaces identically.

Test Cases

A conformant implementation MUST:

  1. Parse all seven wire names — PQ-off, PQ-fast, PQ-strict, PQ-heavy, strict-PQ-fast, strict-PQ-strict, strict-PQ-heavy — from quasar.cert_policy YAML into a CertPolicy value, and reject any other string.
  2. Refuse to launch the chain when CertPolicy.Validate() returns an error — specifically when any of the four validation rules fails.
  3. Produce a cert whose observed leg set is a superset of the policy's Mode required-leg set, or report tier degradation with the cert observable at Fallback.
  4. Return ErrCertPolicyLegMissing when the operator's Mode required set cannot be satisfied within TimeoutMs and no Fallback tier is acceptable.
  5. Map a CertPolicy to the internal composition predicate — IsDoubleLattice for Mode=PQ-strict, IsPolaris for Mode=PQ-heavy — when interoperating with relying parties that consume predicates.
  6. Verify that the leg verify pipeline dispatches kernels only for legs in the policy's required set — no wasted GPU compute on legs the operator did not request.

Tests live in ~/work/lux/consensus/config/cert_policy_test.go — parse, Validate(), and RequiredLegs() table tests across all seven configurations — and in ~/work/lux/consensus/protocol/quasar/cert_roundtrip_test.go, extended to cover the seven configurations.

Reference Implementation

The operator-facing CertPolicy lives alongside the internal enums in pq_mode.go. One file, one decision record:

  • ~/work/lux/consensus/config/cert_policy.go — the CertPolicy struct, the CertMode and CertVariant enums, Parse(s string) (CertPolicy, error), (cp CertPolicy) Validate() error, (cp CertPolicy) RequiredLegs() []LegName, (cp CertPolicy) WireName() string, and (cp CertPolicy) ToV1Predicate() func(*QuasarCert) bool.
  • ~/work/lux/consensus/config/cert_policy_test.go — validation table tests for the four rules, round-trip parse of all seven canonical wire names, and the eighth-slot refusal.
  • ~/work/lux/consensus/config/pq_mode.go — internal composition predicates; this file does NOT own the operator-facing names.
  • ~/work/lux/consensus/protocol/quasar/polaris.go — the composition predicates ToV1Predicate() dispatches to.
  • ~/work/lux/consensus/protocol/quasar/types.go — QuasarCert is unchanged; CertPolicy is runtime config, not a wire-format change.

Genesis plumbing reads quasar.cert_policy from the genesis blob, calls Validate(), and refuses to start the chain on a validation error. Each L1 declares one cert_policy in its genesis; a chain-VM hosted on that L1 defaults to inheriting the parent's policy and MAY override it, subject to the parent actually operating at that policy's Mode — a hosted chain cannot synthesize legs the parent never produces.

Security Considerations

The ladder does not change the cryptographic guarantees of any individual leg. Mode security is the floor of the strongest leg in the required set.

The mode names declare posture explicitly. An operator who picks PQ-off is making an informed declaration that their threat model excludes store-now-decrypt-later adversaries; a codename does not make that declaration nearly as legibly. This is a security property of the spec surface rather than the protocol — but operator-error reduction is a real security concern at the human layer.

The pure-PQ variants drop BLS. A chain at strict-PQ-* cannot interoperate with a relying party that requires BLS in the cert; that relying party sees an empty BLS leg and degrades. This is intended — pure-PQ chains are explicit about not producing a BLS leg.

Downgrading a chain already operating at Mode=PQ-strict or higher is mechanically possible through the chain's governance path, but requires a safety-equivalence audit first.

Copyright and related rights waived via CC0.