Cert Profile Modes
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
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:
- 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.
- 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.
- 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.
| Mode | Required legs | M1 Max wall | Spark wall | Cert size @ N=64 | Recommended use |
|---|---|---|---|---|---|
| PQ-off | BLS | 6.9 ms | 6.3 ms | 96 B | HFT trading chains; non-financial L2s with strict classical-compatibility requirements |
| PQ-fast | BLS + Pulsar | 391 ms | 585 ms | 33,154 B | Payment rails, gaming, DEX with cost-sensitive PQ insurance |
| PQ-strict | BLS + Pulsar + Corona | 360 ms | 595 ms | 245,634 B | Default — custody, treasury, regulated securities |
| PQ-heavy | BLS + Pulsar + Corona + Magnetar | 2.22 s | 1.33 s | 1.28 MB | Cross-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:
| Mode | Required legs | Security posture | Recommended use |
|---|---|---|---|
| strict-PQ-fast | Pulsar | Minimum PQ, no classical fast path. FIPS 204 byte-equal. | Post-transition L1 with no BLS bridge dependency |
| strict-PQ-strict | Pulsar + Corona | Adds the never-trust-the-aggregator threshold property. | Sovereign PQ-only treasury chain |
| strict-PQ-heavy | Pulsar + Corona + Magnetar | Cross-family maximum. | PQ-only long-archival anchor |
Per-primitive single-validator timings, same bench, Magnetar at 192s (the production-target parameter set):
| Primitive | M1 Max | Spark GB10 | Notes |
|---|---|---|---|
| BLS12-381 sign | 327 μs | 259 μs | classical fast path |
| BLS12-381 verify | 730 μs | 977 μs | pairing-heavy on Spark |
| ML-DSA-65 (raw) | 432 μs | 309 μs | per-validator post-quantum |
| Pulsar (FIPS 204 P65) | 264 μs | 175 μs | threshold-mode kernel |
| Pulsar verify | 133 μs | 119 μs | |
| Magnetar SLH-DSA-192s | 1,575 ms | 795 ms | dominates PQ-heavy |
| Magnetar SLH-DSA-192f | 70.7 ms | 35.9 ms | 22× 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:
- No
lux-lattice.pcon Spark. The Go-sideluxfi/lattice/v7/gpupackage uses#cgo pkg-config: lux-lattice; the CMake build hitsfind_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.pcpluslibluxlattice.dylib). The CUDA NTT kernels are present and pass known-answer tests; the bench just could not reach them. - Magnetar SLH-DSA CUDA boundary unplumbed.
luxcpp/crypto/slhdsa/gpu/cuda/slhdsa.cuexists andtest_slhdsa_kat_cudapasses on Spark (WOTS+, FORS, and XMSS subtree KATs all pass), but thelux_slhdsa_*entry points are not exposed inluxcpp/lux-accel/include/lux/accel/c_api.h, somagnetar.ValidatorSignfalls back to pure Go.
Until both gaps close, GPU numbers in this LP and downstream are explicitly projected, not measured.
Cert tier composition rules
- 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.
- 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.
- 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.
- 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. - 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.
| Mode | Required legs | Named profile with the same lattice composition |
|---|---|---|
| PQ-off | BLS | — (no named profile is BLS-only) |
| PQ-fast | BLS + Pulsar | — |
| PQ-strict | BLS + Pulsar + Corona | Aurora |
| PQ-heavy | BLS + Pulsar + Corona + Magnetar | Polaris |
| strict-PQ-fast | Pulsar | — |
| strict-PQ-strict | Pulsar + Corona | — |
| strict-PQ-heavy | Pulsar + 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
Mode | Variant | Required legs | Wire name |
|---|---|---|---|
PQ-off | hybrid | BLS | PQ-off |
PQ-fast | hybrid | BLS + Pulsar | PQ-fast |
PQ-strict | hybrid | BLS + Pulsar + Corona | PQ-strict |
PQ-heavy | hybrid | BLS + Pulsar + Corona + Magnetar | PQ-heavy |
PQ-fast | strict | Pulsar | strict-PQ-fast |
PQ-strict | strict | Pulsar + Corona | strict-PQ-strict |
PQ-heavy | strict | Pulsar + Corona + Magnetar | strict-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.
-
Fallback <= Mode. A fallback tier means "the relying party finalizes at this lower posture ifMode's legs do not arrive withinTimeoutMs". 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 onCertMode. -
Variant == StrictrequiresMode >= PQ-fast. Pure PQ atPQ-offis the empty leg set — no BLS, no PQ legs. A cert with no legs is not a cert; this configuration is refused. -
TimeoutMs >= 2 * expected_floor_latency(Mode). A chain configured at a highModewith aTimeoutMsshorter 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 declarePQ-heavyand then never satisfy it. Floor latencies (Blackwell, N=64):ModeFloor latency Min TimeoutMsPQ-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
TimeoutMsto 4–10× the floor to absorb jitter without dropping toFallback. -
Fallbackmust itself be a valid(Mode, Variant)under the chain'sVariant. A chain atVariant=Strictcannot fall back toPQ-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:
- 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.
- 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.
- 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.
- 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:
- Parse all seven wire names —
PQ-off,PQ-fast,PQ-strict,PQ-heavy,strict-PQ-fast,strict-PQ-strict,strict-PQ-heavy— fromquasar.cert_policyYAML into aCertPolicyvalue, and reject any other string. - Refuse to launch the chain when
CertPolicy.Validate()returns an error — specifically when any of the four validation rules fails. - Produce a cert whose observed leg set is a superset of the policy's
Moderequired-leg set, or report tier degradation with the cert observable atFallback. - Return
ErrCertPolicyLegMissingwhen the operator'sModerequired set cannot be satisfied withinTimeoutMsand noFallbacktier is acceptable. - Map a
CertPolicyto the internal composition predicate —IsDoubleLatticeforMode=PQ-strict,IsPolarisforMode=PQ-heavy— when interoperating with relying parties that consume predicates. - 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— theCertPolicystruct, theCertModeandCertVariantenums,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 predicatesToV1Predicate()dispatches to.~/work/lux/consensus/protocol/quasar/types.go—QuasarCertis unchanged;CertPolicyis 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
Copyright and related rights waived via CC0.