ZAP-Native Post-Quantum Rollups
A rollup pattern where the sequencer threshold-signs each batch, the parent L1 verifies that signature at one precompile slot, and the rollup state inherits the parent's cert finality — no rollup-side validator set, no fraud-proof bond for the cryptographic path, no codec hop on the sequencer-to-L1 wire
Abstract
A ZAP-native post-quantum rollup is a hosted chain whose sequencer collects N
transactions as ZAP frames, applies them against the rollup state, computes a
new state root over the ZAP-buffer Merkle structure, and signs the tuple
(prev_root, new_root, batch_hash, sequencer_id) with a Pulsar threshold
signature (LP-4450). The sequencer
submits RollupBatchTx{prev_root, new_root, batch_hash, pulsar_sig} as a ZAP
frame to Z-Chain, the parent L1 hosting the rollup VM.
Z-Chain validators verify the post-quantum signature at the P3Q precompile,
slot 0x012205 — one precompile that takes a kind byte (0x01 Pulsar,
0x02 Corona, 0x03 Magnetar), a threshold signature, a message hash, and a
group public key, and returns true if and only if the signature validates
under the named family. One slot, one ABI, three primitive kinds dispatched by
leading byte; LP-4805
specifies the Corona and Magnetar kinds on that same slot. Verification is
part of normal Z-Chain block validation; no second consensus is needed. The
Z-Chain block then finalizes under the parent's cert mode
(LP-4990).
The rollup state inherits the parent's full cryptographic finality because the rollup commit is a Z-Chain transaction. No rollup-side validator set exists. No fraud-proof bond is required for the cryptographic path — the Pulsar signature is sufficient for the authenticity of the state transition. A challenge window is needed only when a fraud-proof system is the integrity model of the execution itself.
The pattern
┌───────────────────────────────────────────────────────────────────┐
│ Rollup sequencer (no validator set; single node or threshold group)│
└────────────────────────────────┬──────────────────────────────────┘
│
1. Collect N txs (each a ZAP frame, no re-encode)
│
2. Apply tx batch → compute new state root (GPU Merkle)
│
3. Pulsar threshold-sign (prev_root, new_root, batch_hash, seq_id)
│
4. Submit RollupBatchTx as a ZAP frame to Z-Chain
│
▼
┌───────────────────────────────────────────────────────────────────┐
│ Z-Chain validators (parent L1 — full cert validators) │
└────────────────────────────────┬──────────────────────────────────┘
│
5. P3Q(0x012205) verify PQ sig (kind ∈ {Pulsar, Corona, Magnetar})
over H(prev_root ‖ new_root ‖ batch_hash)
│
6. Z-Chain block finalizes under the parent's cert mode
→ rollup state inherits parent finality
Stage by stage:
| # | Stage | Where it runs | Cost target |
|---|---|---|---|
| 1 | Tx collection | Sequencer node(s) | NIC throughput-bound; ZAP frames flow at wire speed |
| 2 | State transition + Merkle root | Sequencer GPU (UMA buffer) | ~100 μs per batch at 1k txs |
| 3 | Pulsar threshold sign | Sequencer group (1-of-1 or t-of-n) | ~5 ms at N=64 on H100 |
| 4 | RollupBatchTx submission | ZAP frame over QUIC | ~1 ms RTT to the nearest Z-Chain validator |
| 5 | P3Q verify on Z-Chain | Z-Chain validator EVM precompile | ~50 μs per verify on Blackwell sm_120 |
| 6 | Parent L1 finality | Z-Chain cert | PQ-fast ≈ 5 ms, PQ-strict ≈ 15 ms |
End-to-end commit latency from sequencer batch close to parent finality at PQ-strict is ~10–50 ms; at PQ-off (BLS only), ~1–5 ms.
P3Q precompile interface
// EVM precompile at slot 0x012205 — unified PQ verifier family.
// One slot, one dispatch, one ABI shape across all primitive kinds.
//
// kind:
// 0x01 Pulsar (Module-LWE, FIPS 204 ML-DSA-65)
// 0x02 Corona (Module-LWE threshold)
// 0x03 Magnetar (hash-based, FIPS 205 SLH-DSA-192f threshold)
//
// sig and groupPubKey are primitive-specific. Lengths are
// verified per-kind against the underlying scheme's canonical sizes.
function verify(
uint8 kind, // 0x01 / 0x02 / 0x03
bytes calldata sig, // primitive-specific sig bytes
bytes32 messageHash, // H(prev_root || new_root || batch_hash)
bytes calldata groupPubKey // primitive-specific group pubkey
) external view returns (bool);
Properties:
-
Stateless. No storage reads, no storage writes. A function of inputs only.
-
Pure cryptographic check. Returns true if and only if
sigis a valid threshold signature onmessageHashundergroupPubKeyfor the family identified bykind. -
Constant-time. No data-dependent branches, no side channels. Each
P3QVerifierimplementation preserves the constant-time property of its underlying primitive. -
Gas cost. Per kind, returned by the
P3QVerifier.GasCost()method registered for that kind:kindPrimitive Gas 0x01Pulsar (ML-DSA-65 threshold) 50,000 0x02Corona (Module-LWE threshold) 5,000,000 0x03Magnetar (SLH-DSA-192f threshold) 30,000 Pulsar's 50k is the 10× factor over BLS pairing verify (~5,000 gas) that reflects the inherent cost of lattice verification — ML-DSA verify requires an inverse NTT plus matrix-vector multiplication mod q. Corona's 5M reflects its larger signature (33 KB) and ~1.6 ms CPU verify; Magnetar's 30k reflects a ~1.92 ms CPU verify amortized cleanly over a memory-bandwidth-bound WOTS+ walk. The cross-kind ladder is in LP-4805.
-
Slot.
0x012205. P3Q is a primitive at its own slot, not bolted onto an existing ZK or Pulsar precompile. One slot covers the whole family; adding a fourth kind is one newP3QVerifierimplementation and one newkindbyte, not a new slot. The separate STARK/FRI verifier lives at slot0x012220(LP-4835). -
Failure modes. Returns
falseon an unknownkind, on a malformedsigfor the named kind (wrong length, invalid coefficients, incorrect group-pubkey size), or on a verify failure. It never reverts on cryptographic failure — the caller decides whetherfalseis fatal. A call with no leadingkindbyte is rejected.
Verifier reference
| Artifact | Path | Purpose |
|---|---|---|
| Go reference implementation | ~/work/lux/precompile/p3q/contract.go | EVM precompile registered at slot 0x012205 |
| Go module registration | ~/work/lux/precompile/p3q/module.go | init() registers the p3qVerify config key and slot 0x012205 |
| Go unit and integration tests | ~/work/lux/precompile/p3q/contract_test.go | 18 tests: address pin, gas formula, out-of-gas, structural rejection, real FIPS 204 round trip across ML-DSA-44/65/87, wrong-hash / wrong-pubkey / corrupted-sig rejection, domain-separation replay defense, EncodeInput round trip |
| Solidity consumer ABI | ~/work/lux/precompile/p3q/IP3Q.sol | The IP3Q interface plus the P3QLib helper library (verify, verifyOrRevert, encode, estimateGas) |
| Pulsar verifier core | github.com/luxfi/crypto/mldsa (mldsa.VerifySignatureCtx) | Constant-time FIPS 204 ML-DSA verifier; Pulsar threshold output is byte-equal, so the same verifier accepts both |
| Producer-side Pulsar package | ~/work/lux/threshold/protocols/pulsar | Threshold-sign producer; consensus consumers use pulsar.VerifyCtx, while the precompile calls mldsa.VerifySignatureCtx directly to avoid a module hop |
| GPU kernel | ~/work/lux/accel/cuda/p3q.cu | Blackwell sm_120 batched verify path |
P3Q's verifier core is the FIPS 204 ML-DSA verifier — Pulsar signatures serialize byte-identically to FIPS 204 ML-DSA signatures. Any conformant FIPS 204 verifier suffices. The precompile exists to give EVM callers a stable ABI and an audited gas charge.
Precompile wire format (canonical)
A single-call interface with no Solidity function selector. The wire bytes
begin with a one-byte kind discriminator that selects the P3QVerifier
implementation:
[ 1 byte ] kind — 0x01 Pulsar | 0x02 Corona | 0x03 Magnetar
[ 1 byte ] mode — primitive-specific (Pulsar: 0x44/0x65/0x87
for ML-DSA-44/-65/-87; Corona: 0x01 reserved;
Magnetar: 0x01 reserved)
[ 4 bytes ] sigLen — big-endian uint32
[ N bytes ] sig — N = sigLen, must equal the kind+mode's
canonical sig size
[ 4 bytes ] groupPubKeyLen — big-endian uint32
[ M bytes ] groupPubKey — M = groupPubKeyLen, must equal the kind+mode's
canonical pk size
[ 32 bytes ] messageHash — fixed; same across kinds
Output is a 32-byte EVM-ABI bool: last byte 0x01 on a verifying signature,
0x00 on any failure — unknown kind, malformed input, mode mismatch, length
mismatch, or primitive reject. The precompile NEVER reverts on cryptographic
failure; the Solidity caller decides whether false is fatal.
The Solidity encoder is
P3QLib.encode(kind, mode, sig, groupPubKey, messageHash) in IP3Q.sol; the
Go encoder is p3q.EncodeInput(kind, mode, sig, groupPubKey, messageHash).
Both produce byte-identical output for the same inputs across all kinds.
Domain separation
Every P3Q verify binds the FIPS 204 context string
lux-evm-precompile-p3q-v1. A mismatch between context and signer causes
rejection, which prevents cross-precompile replay: a Pulsar signature minted
for the generic 0x012204 Pulsar slot (context
lux-evm-precompile-pulsar-v1) cannot be re-submitted to the rollup-commit
P3Q slot. Signers producing rollup-commit signatures MUST set
ctx = "lux-evm-precompile-p3q-v1".
TestP3Q_RejectsWrongContextDomainSeparation in
~/work/lux/precompile/p3q/contract_test.go pins this: a signature under the
Pulsar-slot context is rejected by P3Q.
Gas cost calibration
Gas is charged per kind by P3QVerifier.GasCost(). The per-byte adder is
10 gas per byte of input across all kinds. Base charge by kind:
kind | Base gas | CPU verify | Blackwell sm_120 |
|---|---|---|---|
0x01 Pulsar (ML-DSA-65 threshold) | 50,000 | ~80 µs | ~50 µs |
0x02 Corona (Module-LWE threshold) | 5,000,000 | ~1.6 ms | ~15 ms |
0x03 Magnetar (SLH-DSA-192f threshold) | 30,000 | ~1.92 ms | ~50 ms |
Measured Pulsar CPU verify time on M1 Max and DGX Spark (parity audit harness
at lux/threshold/protocols/parity/parity_test.go):
| Mode | M1 Max ms | Spark ms |
|---|---|---|
| ML-DSA-44 | ~0.10 | ~0.08 |
| ML-DSA-65 | ~0.13 | ~0.10 |
| ML-DSA-87 | ~0.17 | ~0.13 |
At 12k gas per millisecond (the published gas-per-millisecond yardstick), that is ~1.6–2.0k gas of CPU time, well inside the conservative 50k Pulsar base.
Canonical Pulsar-kind input length is 5,303 bytes — 1 kind + 1 mode + 4 sigLen
- 3,309 sig + 4 pkLen + 1,952 pk + 32 hash. Total gas at that length is
50,000 + 5,303 × 10 = 103,030. At a 12M block gas limit that is about 117 Pulsar-kind P3Q verifies per block before the rest of the block budget is exhausted. Corona-kind verifies cost ~5M gas each (2 per 12M block); Magnetar-kind verifies cost ~30k each (~400 per 12M block, bounded in practice by CPU verify time).
Wire schemas
Rollup transaction envelopes are ZAP frames in the 0xE8–0xEF rollup schema range. The consensus-extension band 0xE0–0xEF is partitioned so that DAG mempool, cross-shard atomic commit, and rollup VM envelopes never collide: 0xE0–0xE1 DAG mempool, 0xE2–0xE7 cross-shard atomic commit (LP-0170), 0xE8–0xEF rollup VM.
| Schema ID | Envelope | Kind | Purpose |
|---|---|---|---|
0xE8 | RollupBatchTx | 0x40 | Sequencer commit of a batch of N txs to Z-Chain |
0xE9 | RollupChallengeTx | 0x41 | Fraud-proof challenge for optimistic rollups; omitted by ZK rollups |
0xEA | RollupExitTx | 0x42 | User exit from rollup to parent L1 with a state-membership proof |
0xEB | RollupGenesisTx | 0x43 | Rollup-creation tx, submitted once at deploy time |
0xEC–0xEF | reserved | — | Future rollup-VM envelopes (cross-rollup atomic commit, sequencer rotation) |
Schema-ID allocation map
| Range | Owner |
|---|---|
| 0xC0–0xCB | chains-VM wire (12 VMs) |
| 0xD0–0xDF | ZAP P2P transport |
| 0xE0–0xE1 | DAG mempool |
| 0xE2–0xE7 | cross-shard atomic commit |
| 0xE8–0xEF | rollup-VM envelopes (this LP) |
| 0xF0–0xF2 | light client wire |
| 0xF3–0xFF | reserved |
Kind bytes 0x40–0x43 live in a separate namespace from schema IDs and do not
need a master registry.
RollupBatchTx (0xE8, Kind 0x40)
Fixed section:
| Offset | Field | Size | Description |
|---|---|---|---|
| 0 | Kind | 1 | 0x40 |
| 1 | Version | 1 | 0x01 |
| 2 | SequencerID | 20 | Sequencer node ID, or threshold-group ID for t-of-n |
| 22 | PrevRoot | 32 | State root before this batch |
| 54 | NewRoot | 32 | State root after this batch |
| 86 | BatchHash | 32 | sha256(concat(tx_i bytes)) over the N tx ZAP frames |
| 118 | BatchNum | 8 | Monotonic batch counter per rollup |
| 126 | TxCount | 4 | N — number of txs in the batch |
| 130 | PulsarSigOff | 4 | Offset to the Pulsar threshold sig in the tail |
| 134 | GroupPubKeyOff | 4 | Offset to the Pulsar group public key in the tail |
| 138 | ZKProofOff | 4 | Offset to the STARK / Groth16 proof; zero for an optimistic rollup |
| 142 | TxFramesOff | 4 | Offset to the packed list of tx ZAP frames |
The variable-length tail carries the Pulsar signature, the group public key, the optional ZK proof, and the packed tx frames. The tx frames are the exact ZAP buffers the sequencer received from clients — no re-encode, no re-frame.
RollupChallengeTx (0xE9, Kind 0x41)
Submitted by any peer to challenge an optimistic rollup batch during its challenge window.
| Offset | Field | Size | Description |
|---|---|---|---|
| 0 | Kind | 1 | 0x41 |
| 1 | Version | 1 | 0x01 |
| 2 | ChallengedBatchID | 32 | sha256 of the challenged RollupBatchTx |
| 34 | ChallengerID | 20 | Challenger node ID |
| 54 | FraudWitnessOff | 4 | Offset to the fraud witness in the tail |
| 58 | BondAmount | 8 | Challenger bond, slashable if the challenge is invalid |
The tail carries the fraud witness — typically one tx ZAP frame plus a state witness showing the sequencer applied the tx incorrectly. Z-Chain re-executes the tx witness; if the sequencer's claimed new root disagrees, the batch is rejected and the sequencer is slashed. Omitted entirely from ZK rollups, which have no challenge window.
RollupExitTx (0xEA, Kind 0x42)
A user exits a rollup back to the parent L1 by proving inclusion of a withdrawal record in a finalized batch.
| Offset | Field | Size | Description |
|---|---|---|---|
| 0 | Kind | 1 | 0x42 |
| 1 | Version | 1 | 0x01 |
| 2 | UserAddress | 20 | Parent L1 address receiving the exit |
| 22 | BatchID | 32 | sha256 of the RollupBatchTx the exit is anchored to |
| 54 | ExitAmount | 32 | uint256 — amount being exited |
| 86 | TokenID | 20 | Token contract address on the rollup |
| 106 | MerkleProofOff | 4 | Offset to the state-membership Merkle proof |
The tail carries a Merkle proof from NewRoot of BatchID down to the
withdrawal leaf. Z-Chain verifies the proof against the recorded root.
RollupGenesisTx (0xEB, Kind 0x43)
Submitted once at rollup-deploy time; establishes the rollup's parameters on Z-Chain.
| Offset | Field | Size | Description |
|---|---|---|---|
| 0 | Kind | 1 | 0x43 |
| 1 | Version | 1 | 0x01 |
| 2 | RollupID | 20 | Globally unique rollup ID |
| 22 | DeployerAddress | 20 | Parent L1 address deploying the rollup |
| 42 | RollupMode | 1 | 0x00 optimistic, 0x01 ZK |
| 43 | CertPolicyMode | 1 | The CertPolicy.Mode required on the parent L1 |
| 44 | ChallengeWindowBlocks | 8 | Optimistic challenge window; zero for ZK |
| 52 | InitialRootOff | 4 | Offset to the initial state root |
| 56 | SequencerPubKeyOff | 4 | Offset to the sequencer Pulsar group pubkey |
| 60 | ConfigOff | 4 | Offset to the rollup-specific config blob |
The tail carries the initial root, the sequencer's Pulsar group public key, and the rollup config — execution engine, fee config, and so on.
Rollup VM execution
The rollup VM execution stack reuses the ZAP buffer guarantee (LP-0200): no re-encoding at any stage. The sequencer's hot path:
NIC RAM ─GPUDirect RDMA─▶ GPU memory (UMA)
│
▼
Mempool (ZAP frames)
│
▼
Sequencer batch close
│
▼
State diff + Merkle root (GPU kernel)
│
▼
Pulsar threshold sign (GPU kernel)
│
▼
RollupBatchTx (ZAP frame, same buffer)
│
▼
QUIC submit to Z-Chain
Every stage operates on the same UMA-backed ZAP buffer. No marshal, no unmarshal, no codec, no copy. That is the operational dividend of the ZAP stack guarantee, and it applies at the rollup tier exactly as it applies at the L1 tier.
The sequencer may be:
- A single node. Pulsar signs as 1-of-1. Lowest latency, highest centralization risk on the ordering function — not on state integrity, which is still parent-secured.
- A threshold group. Pulsar signs as t-of-n. Higher latency (a Pulsar threshold round per batch), better censorship resistance.
- A rotating threshold. Sequencer membership rotates per epoch through a separate Pulsar DKG.
Two rollup modes
| Mode | State integrity model | RollupChallengeTx | ZK proof in RollupBatchTx | Withdrawal latency | Use case |
|---|---|---|---|---|---|
| Optimistic | Sequencer asserts; anyone may challenge during the window | Required | Absent | ≥ challenge window (typically 7 days) | High-throughput general-purpose rollups; gaming; social |
| ZK | Each batch carries a STARK / Groth16 proof of correct execution | Absent | Required | Immediate — about one parent block after the Pulsar commit | Custody-grade rollups; payment finality; cross-rollup composition |
Both modes share the same envelopes and the same P3Q verification path. The difference is whether the integrity of the state transition is established by (a) a Pulsar-signed sequencer attestation plus an optimistic challenge window, or (b) a Pulsar-signed attestation plus a proof of correct execution. The Pulsar-plus-P3Q path is identical; the integrity witness differs.
The deployer picks the mode at genesis, in the RollupMode field of
RollupGenesisTx. There is no mode switching after deploy.
Inheritance from the parent L1
A rollup has no validator set of its own, so its security model is the parent's security model. Concretely:
| Property | Source |
|---|---|
| Block finality cryptographic strength | Parent L1 cert under its cert mode |
| Sequencer payment gas token | Parent L1 native gas (Z-Chain settlement gas) |
| Rollup state commit | Embedded in a parent L1 block |
| Tier degradation behavior | The parent's tier degradation applies; rollup users see the parent's degraded tier with no separate degradation |
| Liveness | Bounded by parent liveness — if Z-Chain stops, the rollup stops; if the sequencer fails, the parent continues and the rollup pauses until the sequencer restarts or rotates |
| Slashing | The sequencer is slashable on RollupChallengeTx (optimistic) or on an invalid Pulsar signature; slashing settles on the parent |
Rollups add no validator set: no rollup-side stake, no rollup-side leader election, no rollup-side quorum. The sequencer is a sequencer, not a validator — its job is ordering and batching, not finality.
Inherited cert mode
Each rollup pins one field of the CertPolicy struct
(LP-4990) at genesis: CertPolicy.Mode.
This is the minimum cert mode the parent must be operating at for a rollup
batch to be considered final.
The other three fields — Variant, TimeoutMs, Fallback — are inherited
from the parent by reference. Rollups are the only tier where a partial
CertPolicy declaration is valid: a rollup does not own TimeoutMs, because
the parent owns the cert timeline and the rollup observes the parent's
degradation behavior.
(Mode, Variant) on the parent | Wire name | Required parent legs |
|---|---|---|
(PQ-off, hybrid) | PQ-off | BLS |
(PQ-fast, hybrid) | PQ-fast | BLS + Pulsar |
(PQ-strict, hybrid) | PQ-strict | BLS + Pulsar + Corona |
(PQ-heavy, hybrid) | PQ-heavy | BLS + Pulsar + Corona + Magnetar |
(PQ-fast, strict) | strict-PQ-fast | Pulsar |
(PQ-strict, strict) | strict-PQ-strict | Pulsar + Corona |
(PQ-heavy, strict) | strict-PQ-heavy | Pulsar + Corona + Magnetar |
A rollup cannot ENFORCE a stronger CertPolicy.Mode than its parent operates
at. If the parent is at PQ-fast, the rollup cannot synthesize PQ-strict
finality — it would have to wait for legs the parent never produces. A rollup
that requires PQ-strict MUST deploy on a parent operating at PQ-strict or
higher, and genesis validation refuses the alternative before any batch is
processed.
A rollup MAY pin its Mode lower than the parent's and finalize earlier in
the degradation timeline. A rollup with CertPolicy.Mode = PQ-fast on a
PQ-strict parent finalizes at the parent's PQ-fast preliminary tier (~5 ms),
not at the PQ-strict final tier (~15 ms).
Cross-rollup atomicity
Two rollups deployed on the same Z-Chain instance commit atomically: both
RollupBatchTxes land in the same Z-Chain block and share the same
certificate. Either both finalize or neither does. This is automatic; no
additional protocol is needed.
Atomicity across two different L1s — a rollup on Lux and a rollup on another L1 — runs through the bridge path and is out of scope here.
Performance characteristics
| Metric | Value | Source |
|---|---|---|
| P3Q precompile verify, single signature | ~50 μs on Blackwell sm_120 (projected) | Pulsar verify projection, Blackwell column |
| P3Q precompile verify, batched at N=64 | ~5 ms aggregate (projected) | Pulsar aggregate projection |
| Batch finalization end to end, PQ-fast parent | ~5 ms | Parent PQ-fast preliminary + P3Q verify |
| Batch finalization end to end, PQ-strict parent | ~15 ms | Parent PQ-strict final + P3Q verify |
| Sequencer throughput, single node | 100k–1M tx/sec | NIC-bound at wire speed, not Z-Chain-bound |
| Aggregate throughput, M rollups on one Z-Chain | 10M+ tx/sec | M sequencers compose; Z-Chain only verifies M Pulsar signatures per block |
| Gas per rollup batch on Z-Chain | ~50,000 (P3Q) + ~21,000 base | One P3Q verify per RollupBatchTx |
Throughput scales horizontally in M, the number of rollups per Z-Chain. Z-Chain's verify capacity becomes the bottleneck only well past M=100 — at M=100 it verifies 100 P3Q signatures per block, about 5 ms of verify, well inside the block budget.
Architectural decisions
One slot, kind-byte dispatch
P3Q at slot 0x012205 is a PQ verifier family, not a single primitive.
The one-byte kind discriminator at the head of calldata selects the
underlying P3QVerifier implementation. One slot is one audit surface, one
ABI shape, one dispatch path, one operator-known address. Adding a fourth
family — a code-based threshold signature, say — is one new implementation and
one new kind byte, not a new slot.
Rollups MAY run at PQ-off; they should not for value-bearing state
The protocol allows CertPolicy.Mode = PQ-off (BLS only). That is the right
choice for ephemeral or non-financial rollups: gaming session state,
social-graph mutations, real-time bidding, telemetry.
For value-bearing state — money, securities, identity, custody — the recommended floor is PQ-strict. A rollup pinning a lower floor for value-bearing state is making a posture choice; the protocol does not prevent it and does not endorse it. Codifying a "must be PQ-strict above $X" rule belongs in operator policy, not here.
Sequencer-side signing is required; the ZK proof is optional
Every RollupBatchTx MUST carry a valid Pulsar threshold signature verified
by P3Q. There is no path where a batch skips P3Q verification.
The ZKProofOff field is optional. If present, Z-Chain verifies the proof
inline — Groth16 verify ≈ 200k gas, STARK verify ≈ 500k gas on a generic
verifier. If absent, the batch is optimistic and subject to challenge.
The reason the split falls this way: the Pulsar signature is the authenticity witness — the sequencer attests to the batch. The ZK proof is the correctness witness — the batch was applied correctly. Authenticity is always required; correctness can be optimistic.
No rollup-side validator set
A rollup is a sequencer plus a state machine, not a chain with its own consensus. Anyone who wants their own validator set deploys an L1 (LP-1020), not a rollup.
Honest cost comparison
| Verifier | Gas cost | Verify on Blackwell (projected) | Verify on CPU | Notes |
|---|---|---|---|---|
ecrecover (secp256k1) | 3,000 | ~3 μs | ~10 μs | Classical, broken by Shor's |
| BLS pairing verify | 5,000 | ~10 μs | ~6 ms | Classical, broken by Shor's |
| P3Q (Pulsar / ML-DSA-65) | 50,000 | ~50 μs | ~80 μs | PQ-secure |
| Re-running rollup consensus | — | ~5–50 ms (mode-dependent) | — | What this pattern avoids |
P3Q is more expensive than BLS verify because post-quantum verification is inherently heavier — lattice operations dominate elliptic-curve operations on every CPU and most GPUs. The 10× factor is honest.
P3Q is dramatically cheaper than re-running consensus to attest to a rollup batch. The rollup pays 50k gas per batch instead of running an entire validator set per batch. That is the economic case for the pattern.
References
- LP-4450 — Pulsar, the scheme P3Q kind
0x01verifies. - LP-4805 — the Corona and Magnetar kinds on the same slot.
- LP-4835 — the separate STARK/FRI
verifier at slot
0x012220. - LP-4990 — per-rollup
CertPolicy.Mode. - LP-0122 — the cert whose finality the rollup state inherits.
- LP-0200 — the no-codec wire guarantee.
- LP-8000 — Z-Chain, the parent L1 hosting rollup commits.
- LP-1210 — the precompile registry P3Q joins.
Copyright
Copyright and related rights waived via CC0.