Manuscript Offprint
arXiv:2610.29230PQ-Vault: Provably Quantum-Safe Asset Custody for Unmodified Ethereum
Hassan Khodaiemehr, Member, IEEE, Khadijeh Bagheri, and Chen Feng, Member, IEEE
Abstract—A quantum computer could recover the key of any Ethereum account whose public key appears on chain. We prove that no sidechain or bridge that leaves Ethereum's rules unchanged can protect such accounts: their funds must move into a contract whose release condition relies only on quantum-safe primitives. We design PQ-Vault, a custody system for unmodified Ethereum combining this vault, a quantum-safe proof-of-stake sidechain whose checkpoints carry compact certificates, and an optimistic dispute protocol. We give the first security proof of compact certificates against quantum attackers and a matching attack: with classically chosen parameters, the guarantee falls from 128 to about 60 bits, and a simple rule restores it. We show that a common seed-update rule in hash-chain proof of stake lets an attacker steer chosen slots and profit from splitting its stake, and give an election whose steering gain and inclusion delay are provably bounded against quantum attackers. Since compressing certificates with a pairing-based SNARK breaks quantum security, we use fraud proofs that need a single signature check. For 65,536 validators, a certificate is 0.8 MB, 260 times smaller than all signatures, and verifies in about 20 ms; the vault accepts a checkpoint for about 420,000 gas.
Index Terms—Post-quantum cryptography, blockchain, Ethereum, sidechain, bridge, proof of stake, compact certificates, quantum random oracle model, ML-DSA, Fiat–Shamir.
1 INTRODUCTION
E THEREUM authenticates every externally owned account (EOA) with ECDSA over secp256k1, and its consensus layer relies on BLS signatures over pairing-friendly curves. Both are broken in polynomial time by Shor's algorithm [1]. Once a cryptographically relevant quantum computer (CRQC) exists, which we call Q-day, any account whose public key has appeared on chain can be emptied by an adversary that recovers the secret key and signs a valid transaction [2], [3]. Users and applications therefore need a way to hold value today that stays safe after Q-day, using post-quantum (PQ) cryptography, without waiting for changes to Layer 1 (L1).
Four lines of work address this problem, and each contributes an essential piece. Protocol migration, through an emergency hard fork that freezes ECDSA and recovers accounts [4], PQ precompiles [5] and hash-based multi-signatures for consensus [6], is the definitive long-term solution, but it depends on community coordination and an uncertain timeline. PQ ledgers, such as QRL [7], Abelian [8] and permissioned designs [9], [10], show that PQ consensus and PQ accounts work in production; they secure their own assets rather than those on Ethereum. PQ smart accounts, built on Solidity verifiers for ML-DSA and Falcon [11], [12], already run on unmodified Ethereum; each operation pays for an on-chain PQ verification, millions of gas with today's verifiers. Sidechains, bridges and light-client certificates [13], [14], [15], [16], [17] make cross-chain verification succinct and amortize it over many users, and PQ sidechain designs for Ethereum [18] combine them with PQ signatures and hash-based proofs [19]. Their security arguments, however, were developed for classical adversaries. To our knowledge, no existing approach yet offers a custody architecture that runs on unmodified Ethereum today, keeps every check on the release path PQ, is proven secure against quantum adversaries end to end, and amortizes its cost across users.
Building such an architecture raises four questions that the classical setting hides. What can an external layer protect at all? A PQ proof does not change which transactions L1 accepts, so a quantum adversary spends any asset that an ECDSA signature can spend (Theorem 2). Are succinct certificates still sound? Compact certificates [14] are proven in the classical random-oracle model, where grinding with q queries gains a factor q; Grover's algorithm [20] gains a factor of order , and classically chosen parameters keep only about 60 of 128 bits (Theorem 7). Is PQ leader election fair? In hash-chain proof of stake (PoS) [7], the next seed depends on who proposes, so a leader can steer it by skipping, and splitting stake pays off (Theorems 9 and 10); a fix must also hold against superposition queries. Can verification on L1 be cheap without losing PQ security? A pairing-based SNARK saves gas but puts a quantum-breakable assumption on the path that L1 executes (Theorem 17).
We present PQ-Vault, a custody architecture for unmodified Ethereum that answers these questions, each with a proof and an evaluation (Table 1, Fig. 1): a vault released only by ML-DSA and hash checks, which escrow under a PQ predicate makes necessary (C1); a quantum random-oracle model (QROM) analysis and reveal rule for compact certificates (C2); a steering-resistant, Sybil-proof epoch seed for stake-weighted election, which leaves only an explicitly bounded choice among seeds (C3); and single-reveal fraud proofs in place of SNARK compression (C4). PQ-Vault needs
H. Khodaiemehr, K. Bagheri, and C. Feng are with the School of Engineering, University of British Columbia (Okanagan Campus), Kelowna, BC, Canada.
E-mail: {hassan.khodaiemehr, khadijeh.bagheri, chen.feng}@ubc.ca
- This work has been submitted to the IEEE for possible publication. Copyright may be transferred without notice, after which this version may no longer be accessible.
TABLE 1
Contributions of this paper.
| Contribution | Key results |
|---|---|
| C1 Custody (Sections 4 and 5) | No mechanism that leaves L1 unchanged protects ECDSA-controlled assets (Theorem 2); escrow under a PQ predicate is necessary (Theorem 3); vault with a PQ-vetoable identity binding (Theorem 4). |
| C2 Certificates (Section 6) | QROM bound with explicit constants (Theorem 5); Grover attack: the factor is necessary (Theorem 6); classical parameters: proven bits, attack at (Theorem 7); reveal rule with and a security budget. |
| C3 Leader election (Section 7) | Exponential race (Theorem 8); steering gain (Theorems 9 and 10); commit-reveal epoch seeds with random reveal order () and fallback proposers; share, capture and liveness bounds (Theorems 11 to 13) against mildly adaptive quantum adversaries, error below plus a per-epoch failure below at (Theorems 15 and 16). |
| C4 L1 acceptance (Section 8) | Groth16 wrapper is not PQ (Theorem 17); dispute state machine with single-reveal fraud proofs (Theorem 19); end-to-end custody by induction over checkpoints (Theorem 20). |
| C5 Evaluation (Section 9) | Dilithium (r3) certificates for validators (0.8 MB, smaller), FIPS 204 cross-check; Falcon and hash-based [6] baselines; TCP deployment; simulations of Section 7; Solidity vault ( gas per checkpoint). |
no change to L1; one checkpoint per epoch, accepted for gas, serves all users; and the evaluation (C5), with real certificates for up to 65,536 validators and a Solidity vault, is released as an open artifact [21]. The appendices contain the full proofs, the complete dispute protocol, and further details of the design and evaluation.
Sidechains, light clients and aggregation. PoS sidechains were formalized in [13]; light-client proofs include compact certificates and Algorand state proofs [14], [15], Mithril [16], and SNARK-based bridges such as zkBridge [17], which rely on pairings [23] or on transparent hash-based proofs [19], [24]. Lattice-based synchronized multi-signatures [25] and hash-based multi-signatures for Ethereum [6] need synchronized or few-time keys, whereas compact certificates work with an unmodified standard scheme and arbitrary weights (Section 9.2). To our knowledge, Theorems 5 and 6 give the first quantum analysis of compact certificates. Like optimistic rollups [26], our dispute game is optimistic; the conjunctive structure of certificate verification makes its fraud proofs one-step.
Leader election and the QROM. Leader election based on verifiable random functions (VRFs) [27], [28] is not PQ unless the VRF is, and lattice VRFs remain costly [29]; hash chains [7]
TABLE 2
Positioning against related systems. √: provided; ○: partial or assumed; -: not provided.
| Unmod. Ethereum | PQ L1 accept path | QROM proof | Grinding analysis | Sublinear cert | Impl. + gas model | |
|---|---|---|---|---|---|---|
| QRL / Abelian [7], [8] | - | ✓ | - | ○ | - | - |
| PQZK bridge [22] | ○ | - | - | - | - | - |
| Compact certs [14] | - | - | - | ○ | ✓ | ○ |
| zkBridge [17] | ✓ | - | - | n/a | ✓ | ✓ |
| Hash-sig multisig [6] | - | ✓ | ○ | n/a | ○ | ○ |
| Our prior work [18] | ✓ | - | - | - | ✓ | ○ |
| PQ-Vault (this work) | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
and commit–reveal beacons are PQ alternatives. Grinding and long-range attacks on PoS are well known [30], [31]. In the QROM [32], the soundness error of Fiat–Shamir and of BCS-compiled interactive oracle proofs scales with [33], [34]; we instantiate this lifting for compact certificates and show that the factor is necessary.
Table 2 positions PQ-Vault against representative systems.
3 PRELIMINARIES
Notation. is the security parameter. H is a hash function with h-bit output (Keccak-256 or SHA3-256, with h = 256), modeled as a random oracle to which the adversary may make quantum (superposition) queries [32]. We write q for the adversary's queries and for all queries in an experiment, including those of honest parties and verifiers. ML-DSA hashes internally with SHAKE256, whose padding differs from that of Keccak-256 and SHA3-256; we model it as an oracle independent of . cSHAKE256 with a dedicated customization string, used for the commitments and seeds of Section 7, is a third independent oracle. For weights ( ), . Stakes and weights are integers.
Signatures. We use ML-DSA (FIPS 204 [35], formerly CRYSTALS-Dilithium [36]), designed to be strongly unforgeable [35, Sec. 3.1] under MLWE, MSIS and SelfTargetMSIS [36, Sec. 4]. Our proofs need only existential unforgeability (EUF-CMA), so they hold for hedged and for deterministic signing alike [35, Sec. 3.4]. In the multi-user game with K honest keys, all generated by the challenger, and adaptive corruptions, denotes the advantage of forging for an uncorrupted key; K counts every honest key generated in the experiment, and guessing the target key loses at most a factor K. Public-key/signature sizes are 1312/2420, 1952/3309 and 2592/4627 bytes for ML-DSA-44/65/87.
Merkle trees. Trees are domain-separated (prefix 0x00 for leaves, 0x01 for internal nodes), padded to leaves, and opened with compact multiproofs, which contain the siblings of the minimal subtree spanning the opened set that are not in that subtree: at most hashes, and far fewer for clustered positions, so we report measured sizes.
QROM tools. We use the database framework of Chiesa, Manohar and Spooner [34]. The oracle is simulated as a compressed oracle [37], and measuring it after the algorithm halts yields a database of input–output pairs. A database property is a set of databases. Its instability is the largest probability, over databases with fewer than entries, inputs not in , and a uniform output , that adding to changes whether the database lies in .
Algorithm 1 Certificate verification . The verifier state holds , the number of positions of the attessor list (zero-weight positions included), and ; , and the design query bound are fixed in Section 6. All quantities are integers, and leaves have fixed-length encodings. Comments mark checks that were missing from, or different in, our prior prototype [38].
1: parse cert = 2: require from state 3: QROM rule 4: require query bound 5: for do require interval 6: end for 7: for do 8: with a 128-bit reduction 9: require coverage 10: end for 11: require each covers some no unused reveal 12: for do require ML-DSA.Vf( ) = 1 13: end for 14: require opens at under 15: require opens at under 16: return 1
The conditional instability counts only transitions in which neither database lies in a second property Q [34, Def. 7].
Lemma 1 ([34], Lemmas 1 and 9). Let A make t quantum queries to a random oracle with n-bit outputs, and let D be the database measured after it halts. (i) For database properties P, Q that do not contain the empty database, . (ii) If the final check of a game reads k oracle values, its winning probability against the real oracle and the probability that the check passes with those values read from D satisfy .
When inputs of different kinds have different output lengths, instability is computed with the output length of the queried input, and in (ii) n is the smallest output length among the values read. For the property Col that D contains two inputs with equal h-bit outputs, [34, Sec. 2.5]. If , each root in D determines at most one tree of entries of D below it; a leaf that does not occur in D is treated as .
Compact certificates [14]. Fix an attessor list committed in a Merkle tree with root , a message , and a proven weight . Let be the set of attestors that signed , and let be the signed weight. The prover assigns to each the interval , with the accumulated over signers in index order. It commits to the leaves in a tree with root and derives coins
for , using the first 128 output bits. For each coin it reveals the leaf whose interval covers the coin, together with that attessor's leaf in . The verifier checks every coin, interval, signature, and Merkle opening (Algorithm 1). In the classical ROM, a prover that knows signatures of total weight at most succeeds with probability at most , and [14] accordingly sets .
4 SYSTEM AND THREAT MODEL
4.1 Entities
On unchanged Ethereum (L1), users hold an address with ECDSA keys and ML-DSA keys ; ML-DSA-keyed validators stake on the sidechain S; relayers post checkpoints to L1; watchers (anyone) challenge invalid ones; the vault Vault escrows assets (Section 5).
4.2 Adversary
The QPT adversary A (i) recovers the secret key of any ECDSA or BLS public key it sees after Q-day ; (ii) makes q quantum queries to ( in concrete estimates); (iii) corrupts validators holding at most a fraction of every epoch's stake, mildly adaptively: a corruption requested in epoch x takes effect from epoch , the validator staying honest and keeping its secrets until then. It may also suppress (DoS) at most B honest proposers per slot, chosen after seeing the schedule. Offline honest validators count as corrupt in the leader-election analysis, whose bounds need corrupt plus offline stake below one third. Past-epoch validators may be corrupted after unbonding, which releases stake only after Vault finalized a checkpoint whose next attessor set excludes the validator (Section 8), so no retired key is in an attessor set the vault still accepts, even if checkpointing stalls; (iv) schedules sidechain messages within the synchrony bound ; and (v) submits arbitrary L1 transactions and orders the mempool, subject to Assumption A1.
4.3 Assumptions
Assumption A1 (L1 integrity). L1 executes contract code as specified, and any transaction submitted by an honest party is included within .
Assumption A2 (PQ primitives). ML-DSA (hedged or deterministic) is EUF-CMA secure against QPT adversaries, and H behaves as a quantum random oracle.
Assumption A3 (Slow key recovery). Recovering an ECDSA secret key from a public key takes longer than (no fast quantum attacker [3]). It is needed only for transactions that expose an ECDSA key (deposits, challenges from fresh EOAs); private transaction channels relax it further.
Assumption A4 (One honest watcher). At least one honest watcher is online whenever a proposal is pending. Within of a proposal's inclusion, or of the completion of an open-all posting, it obtains the certificate records or determines that they are unavailable, and evaluates Local on all of them (Section 8). It can pay, per pending proposal, one open-all fee and one challenge bond , and submits timeout and timeoutAll once eligible.
4.4 Security Goals
G1 (custody safety). The vault releases an asset only to a recipient authorized by its legitimate PQ owner, as recorded by the honest sidechain. G2 (certificate soundness). No accepted checkpoint certificate for exists unless attestors of total weight greater than honestly signed M. G3 (fair, steering-resistant leader election). The adversary's leadership share and its probability of capturing a target slot are bounded explicitly in its stake fraction and B. G4 (liveness). Given a live finality gadget, an honest withdrawal is paid within bounded time, except with the small probability of Theorem 16.
4.5 Why External PQ Layers Cannot Protect EOAs
Proposition 2 (Custody impossibility). Let be any protocol that does not modify L1 validity rules. Suppose that at some time an asset a is still spendable under the L1 predicate ECDSA.Vf( ) = 1 with public. Then a QPT adversary can produce an L1-valid transaction spending a that L1 cannot distinguish from one signed by the owner. Nothing produced by can make this transaction invalid.
Proof sketch. A obtains by Shor's algorithm; L1 validity depends only on the predicate and account state, which cannot change. The full proof is in Appendix S1.
Corollary 3. Consider, on unmodified L1, an asset that must remain live, i.e., movable by its owner, and safe against A after . Every predicate that can release it after must then rest on PQ assumptions and on Assumption A1 alone; in particular, no ECDSA key whose public key is exposed may authorize its release, or change or redirect such a predicate without a PQ-authorized veto. On an account-based L1 this requires holding the asset under a contract predicate .
Proof sketch. Such a key falls under Theorem 2, and only contract code can replace an EOA's ECDSA predicate. The full proof is in Appendix S1.
PQ-Vault directly instantiates Theorem 3 (scope and consequences: Appendix S1). So does a contract account verifying an ML-DSA or Falcon signature per operation [11], [12], with no committee or watcher but gas per operation (Table 8), versus gas per exit plus per shared checkpoint for PQ-Vault under the assumptions of Section 8. An EOA delegating to such code (EIP-7702 [39]) stays ECDSA-controlled and falls under Theorem 2.
5 PQ-VAULT DESIGN
In Fig. 1, value enters the vault on L1, moves on the PQ sidechain, and leaves only via withdrawals in a certified checkpoint, accepted directly or optimistically (Section 8). After the vault evaluates only Keccak and, on the dispute path, ML-DSA predicates; the ECDSA-authorized binding registry is off the release path (Section 5.2), so Theorem 3 is met.
5.1 Vault Contract
Vault stores (i) escrowed balances; (ii) a binding registry ; (iii) the latest finalized epoch , its checkpoint message , the attessor commitment with total stake , and attessor count , and the finalized withdrawal roots; (iv) pending proposals with their dispute state; and (v) spent withdrawal nullifiers. deposit( ) escrows msg.value for the PQ identity ; propose, with a bond , takes a header (block hash, state root, withdrawals root, next attessor commitment, binding-operations root, next stake and attessor count) and . It requires and equal to Eq. (5), recomputes
on which signatures and coins are checked, snapshots , and opens the proposal for challenge. As the vault computes itself, a finalized and are exactly those signed; commits to the certificate's reveal records (blob data). Further proposal mechanics are in Appendix S2 and Section 8. After the challenge window, with no dispute open, finalize sets , , , , , and other proposals for epoch become stale. withdraw pays amount to recipient if a Merkle path opens the leaf at its index under a finalized and is unspent; it marks spent before transferring. Globally unique nonces make a nullifier, paid at most once.
A withdrawal leaf is created only by a sidechain transaction signed with , so the chain of trust is (fixed at deployment) certified checkpoints a withdrawal leaf an ML-DSA signature; ECDSA is never consulted. Recipients should be fresh addresses or PQ smart accounts (Theorem 2).
5.2 Time-Anchored, PQ-Vetoable Identity Binding
Replacing the ZK binding of [18] (Appendix S2), we authenticate the binding classically while classical authentication is still meaningful, and freeze it afterwards. Bind: if no binding exists, 's call bind( ) takes effect immediately. Rebind: a later call creates the (single) pending rebinding of the address, with a fresh counter n and activation time ; applyRebind succeeds only at a timestamp strictly greater than and only if n is not cancelled. Veto: the current PQ identity ML-DSA-signs cancel(Vault, , n) on the sidechain; it reaches L1 in the root of a certified checkpoint, and applyCancel( , n, e, ), callable by anyone, checks that opens it under the finalized and marks n cancelled, effective if included by . Canary: a bounty on an address with unknown discrete logarithm, claimable by an ECDSA signature on a fixed digest, permanently disables all ECDSA-authorized registry operations once quantum attacks are demonstrated (Appendix S2).
Proposition 4 (Binding integrity). Suppose was set by 's owner, and let , where bounds the owner's time to observe a pending rebinding and sign, bounds sidechain inclusion of its transaction, bounds the time from inclusion to finalization of the carrying checkpoint, including disputes and the finalize call (Theorem 19), and bounds preparing and including applyCancel. Suppose , the owner is online at least once in every window of length , these bounds hold, and Assumptions A1 to A4 and the timing conditions of Theorem 19 hold. By Theorem 16 and Theorem 19, and fail only with the probabilities given there. Then a QPT adversary can change the binding only by forging an ML-DSA signature, by breaking certificate soundness, or before the owner's first binding transaction is included.
Ethereum L1 (unmodified: no fork, no precompile)

PQ sidechain S (Keccak + ML-DSA only)
Steps ①–⑥ follow Section 5.4. Arrows: solid blue: PQ-authenticated red: ECDSA, pre- or vetoable dashed: observation or comparison. Composition: C1, C2 and C4 combine in Thm. 20 (end-to-end custody), and C3 keeps leader election fair and live: after , escrowed funds move only by Keccak and ML-DSA checks plus one honest watcher.
Fig. 1. PQ-Vault architecture (QPoS-S: quantum-safe proof of stake). Badges C1–C4: contributions of Table 1; gas measured with Foundry (Section 9); grey: baseline avoided by C4.
Proof sketch. Any change after the first binding needs a rebinding pending for , during which the owner is online with at least remaining and gets a cancellation of applied by , before applyRebind can succeed. Preventing this requires an ML-DSA-signed operation the owner never signed (a forgery), or a finalized checkpoint omitting final binding operations, which no honest validator signs (Theorems 5 and 19). After the canary fires, the binding cannot change at all. The full proof is in Appendix S2.
No later theorem relies on the registry or the canary (Appendix S2).
5.3 Sidechain Protocol
The sidechain runs QPoS-S (quantum-safe proof of stake), the steering-resistant stake-weighted election of Section 7. Each epoch has slots; validator has a unique 64-bit identifier , and epochs are 64-bit numbers. With its ML-DSA-signed registration for epoch , which fixes its stake , validator commits to a uniform by , with the -bit domain-separated cSHAKE256 (Appendix S2). Registrations for epoch must be final before the reveal window of epoch opens. Reveals for epoch are ordinary transactions in the last slots of epoch . The reveal order is a stake-weighted random permutation: with , rank 1 goes to the smallest . The best-ranked identities form the tail and reveal last, in reverse rank order, each in its own sub-window of slots; all others reveal in a common first phase of slots. A reveal is valid only if it opens and is included in its owner's phase or sub-window, and honest validators broadcast only when that starts. Single-slot finality (as in Tendermint-style BFT gadgets) finalizes each reveal-window block before the next slot, so earlier reveals are final when a sub-window starts. A validator missing its epoch- reveal is suspended (not slashed) from epoch until it re-registers. QPoS-S uses , , so , and . The reveal list , encoding the revealed as fixed-length fields in increasing identifier order, determines the seed
In slot of epoch , validator 's score is
with . The lowest score leads (ties: smaller identifier); the epoch's schedule is computable once the seed is final. Ranks are fallback proposers: the proposer of slot is the best-ranked identity among ranks whose ML-DSA-signed block arrives within its deadline for rank , and an honest proposer includes every pending transaction, including reveals, received earlier. The fallback changes who proposes, never the seed, so it opens no steering channel. QPoS-S uses . These sizes keep commitments statistically binding and hiding errors small in the QROM (Theorem 15; overhead in Appendix S2). Unlike [7], [18], [38], the seed does not depend on who proposed earlier blocks; Section 7 shows why this matters.
Blocks are signed with ML-DSA. Every blocks the leader assembles a checkpoint message . Honest-signing rule: an honest validator signs only if (i) the prefix it commits to is final (any standard BFT finality gadget with fits) and extends ; (ii) every state transition is valid under the execution rules, which credit each final deposit event once, debit a withdrawal's amount from its owner's balance, and accept a transfer or withdrawal only with a valid ML-DSA signature of the owner's on the full operation; (iii) contains exactly the leaves of the withdrawals executed in epoch , each with a fresh nonce;
and (iv) lists the bonded validators of epoch with their stakes, each at one position and with a registered key whose expanded form the validator has checked. Any party can aggregate signatures into a certificate (Algorithm 1). With and , a sound certificate implies that at least one honest validator signed , hence that satisfies the rule.
Trust in the attessor set. The vault checks certification, not validity: over a third of the attessor stake could certify an arbitrary , whereas would require more than two thirds at about the reveals and the certificate size (Table 4 and Section 9). Custody safety therefore rests on corrupt stake staying below one third of every accepted attessor set (Section 4) (economics: Appendix S2).
5.4 End-to-End Flow
The six steps are: (1) deposit into Vault; (2) after L1 finality, validators credit ; (3) PQ-signed transfers on ; (4) an -signed withdrawal creates a leaf in ; (5) a relayer proposes , finalized after ; (6) anyone calls withdraw with the leaf's Merkle proof. Latency is checkpoint interval + certification time + finalization time, the last being without disputes and at most with them (Theorem 19), if finalize is submitted once eligible. As a checkpoint may wait for its predecessor , in the worst case checkpoint interval + certification time , provided the checkpoint interval is at least (used in Theorem 4; certification time: Section 9).
6 COMPACT CERTIFICATES AGAINST QUANTUM PROVERS
6.1 Security Game
Definition 1 (CERT-FORGE). The challenger generates ML-DSA key pairs for honest attestors on request, at most K in total. The adversary A fixes an attessor list with integer weights, adaptively and possibly after signing queries. Each position carries either the key of one honest attessor (at most one position per honest key) or a key registered by A; registered positions are corrupt. The challenger commits to the list with root , and . A may corrupt honest attestors and then receives their secret keys; C is the set of positions that are registered or corrupted when A halts. At any time, A may ask an uncorrupted honest attessor i to sign a message of its choice; is the set of messages i signed. This models honest validators signing the checkpoints they consider final, whenever they do so. A makes q quantum queries to and outputs . It wins if and
Winning means that the certificate claims more support than exists; the corrupt/honest split exists only in the analysis. If , an accepted certificate that does not win implies that at least one honest attessor signed . meets this for every .
6.2 QROM Soundness
For a claimed signed weight and reveals, define the per-commitment soundness error
The additive term accounts for the 128-bit modular reduction in Eq. (1). The verifier accepts only (Algorithm 1), with from its state; let over this range.
Theorem 5 (QROM soundness of compact certificates). Let , let with , let , and let be the smallest output width of the oracles and trees involved. For every adversary making quantum queries to and any number of signing queries,
Proof sketch. Following [24], [34], we merge the coins of Eq. (1) into one wide oracle (one query simulates each query) and apply Theorem 1(i) to a fixed database property : some coin entry is light (valid positions below its roots weigh at most ) and hit (all coins covered), with instability at most . depends neither on the signing history nor on . If wins, either or holds an EUF-CMA forgery, extracted by measuring after halts. With , this gives for the database game, and Theorem 1(ii) with the values read by the verifier gives , which is the bound. The full proof is in Appendix S3.
The proof needs no entropy of honest signatures, and for , and , the reduction term changes by a factor of at most (Appendix S3).
6.3 The Quadratic Dependence on q Is Necessary
Theorem 6 (Quantum grinding attack). Let and . Suppose the adversary corrupts with , receives no honest signatures, and some position outside or some padding position exists. Fix any with , let and ; then . If , there is a quantum adversary making at most queries that wins CERT-FORGE with probability at least
where .
Proof sketch. The adversary packs the intervals of into (only revealed intervals are checked) and salts one other position; a salt is marked if all coins of the resulting root fall below . Grover search finds one; the marked fraction has and , which bounds the loss when is large. The full proof is in Appendix S3.
Corollary 7 (Classical parameters are insufficient). Consider the classical rule and . The grinding term of Theorem 5 then guarantees only about bits, and the attack of Theorem 6 succeeds with probability about . For
TABLE 3
Lifetime security budget of Theorem 20 in the query model, for total queries (honest and verification queries included) and epochs. Values are of upper bounds; is as in Section 6.4.
| Term | 256-bit (deployed) | 384-bit |
|---|---|---|
| Grinding , Eq. (5) with | 108 | 108 |
| Grinding, rule with ( at 2.55) | 128 | 128 |
| Commitments | 38.1 | 166.1 |
| Signatures | ML-DSA assumption | |
| Finality Pr[Fin] | gadget assumption | |
and , the guarantee is 61.5 bits (60.4 before rounding up) and the attack succeeds with probability . Both are far from the intended .
The upper bound and the attack differ by a factor of about ( at these parameters), which is independent of , so the quadratic dependence on is unavoidable. The attack needs corrupt weight close to : at with it reaches only . Depth limits [40] reduce Grover's gain in practice, so our rule is conservative. Algorand's target [15] matches our rule up to and, modelling its hashes as random oracles, certifies about 124 bits; the classical rule of [14], used by the prototype of [38], falls under Theorem 7 (Appendix S3).
6.4 Parameter Rule and Security Budget
Write . Requiring in Theorem 5, with for , gives the reveal rule
since for . It controls only the grinding term; the exact rule for a total query budget (all L1-path hash queries) is in Appendix S3.
The other terms need separate budgets; the commitment term, with the smallest output width, is an upper bound like the generic collision bound [41], not an attack (Appendix S3). Table 3 combines all terms of Theorem 20 for the deployed Keccak-256 vault and a widened 384-bit variant (not implemented). Keccak-384 certificate trees enlarge Dilithium2 (r3) certificates by at unchanged verification time (, Table 6).
The deployed bound is dominated by the 256-bit commitment term, shared by every Keccak-256 Merkle structure on Ethereum. A lifetime target of for every term requires both the widened trees and the rule with ; our prototype targets for the grinding term per checkpoint and does not claim a 128-bit lifetime custody guarantee.
With and , the rule increases by a factor of over the classical rule; because certificate size grows with the number of distinct reveals, the measured size overhead is smaller (Section 9). Table 4 lists for typical ratios. With and participation, , whereas certifying a two-thirds threshold () multiplies the cost by
TABLE 4
Reveal count for and .
| 1.25 | 1.5 | 2 | 2.55 | 3 | 4 | |
|---|---|---|---|---|---|---|
| classical [14] | 597 | 329 | 192 | 143 | 122 | 96 |
| QROM, Eq. (5) () | 808 | 445 | 260 | 193 | 165 | 130 |
almost 4. This is why we certify finality, which needs only under , rather than a supermajority vote.
Implementation pitfalls. Three omissions in the prototype of [38] each made certificates forgeable: (i) coin coverage was not checked; (ii) interval endpoints were accumulated over all attestors rather than signers and were not checked; and (iii) a heuristic decreased as , whereas soundness requires . A fourth check, with every reveal covering a coin, keeps the verifier's query count bounded as Theorem 5 assumes. Algorithm 1 includes all four, and our implementation tests every check negatively.
7 LEADER ELECTION: FAIRNESS AND STEERING
Total stake is 1; the adversary holds stake (possibly split across identities, including offline honest validators). We analyze an ideal experiment with independent uniform scores and prove that the QPoS-S seed of Section 5 realizes it against quantum adversaries. Full proofs are in Appendix S4.
7.1 Stake-Weighted Scores Form an Exponential Race
Lemma 8 (Exponential race). Let be independent and uniform on , and let . Then the are independent, , so (i) , and (ii) splitting stake into identities with leaves the coalition's winning probability unchanged (Sybil invariance). With -bit values and ties broken by the smaller identity, the winner differs from the continuous winner with probability at most .
Proof sketch. , and the minimum of exponentials is attained at with probability proportional to its rate. The full proof is in Appendix S4.
Theorem 8 applies the weighted-sampling identity of [42] to the score of [7]; it concerns unselected uniforms only.
7.2 Steering Through Proposer-Dependent Seeds
In [7], [18], scores derive from private hash-chain values, the seed is updated as , and a skipped leader is replaced by the runner-up. A coalition holding the top positions can thus choose among seeds, knowing its own next-slot scores (Appendix S4).
Proposition 9 (m-way steering). Suppose that, before slot , the adversary can choose among candidates; that under each candidate its own best score is a fresh variable (rates in units of ), independent across candidates, while the honest best score is and unobserved. Picking the candidate that minimizes its own best score is optimal and leads slot with probability .
Proof sketch. As a function of its best score, the adversary's winning probability is -distributed; the maximum of copies has mean (Appendix S4).
Corollary 10 (Steering under the runner-up rule). Consider proposer-dependent seeds in the race without threshold of [7], and a single-identity adversary that uses only its decision at slot T - 1. (a) If it observes the honest runner-up's reveal before its publish-or-skip decision is irrevocable (e.g., rushing), it captures slot T with probability . (b) Otherwise, it captures slot T with probability . Both exceed . Splitting into more identities raises the probability of holding the top ranks, hence the option count, so Sybil invariance fails.
Proof sketch. Leading slot , the adversary applies Theorem 9 with in case (a), and gains against a fresh seed in case (b) (Appendix S4).
For the capture probability is in case (a) and in case (b); . Target slots matter because roles attach to slot indices, for example the -th block that fixes a checkpoint, or the slot whose block includes or censors a dispute-relevant transaction.
7.3 Epoch Seeds: Ideal Model
In QPoS-S (Section 5), each validator reveals its committed secret in the previous epoch's reveal window, in an order drawn from the previous seed; the epoch seed hashes all reveals. Throughout, .
In each slot, the scores rank all identities as a stake-weighted sample without replacement (Theorem 8, [42]). Ranks 1, ..., may propose; the best-ranked one whose block arrives in time proposes. The adversary may suppress at most honest identities per slot. Call a slot guaranteed if its first ranks are honest; a guaranteed slot has an honest proposer whatever the adversary suppresses. Let be the largest honest stake, and ; without denial of service, .
Let be the best-ranked honest identity of the tail (it reveals last among honest tail identities), the first time leaves validator , and the number of (adversarial) identities ranked above , which reveal after it. The adversary decides which of them reveal, so the reveal set takes at most values. Let Fail be the event that the tail contains no honest identity, or that the common phase or some tail sub-window has no guaranteed slot after its first slot. It depends only on the order and the previous schedule, both fixed before .
Definition 2 (Ideal seed experiment). An experiment is m-ideal if, at time , it samples for each of the at most m possible reveal sets b an independent uniform table of scores and next-epoch order keys, independent of everything before ; it makes all tables available to the adversary; and every party uses the table of the reveal set that actually results.
Theorem 11 (Leader election in the ideal model). In any m-ideal experiment with continuous scores: (a) Given the reveal set, the proposer ranking of each slot is a fixed public function of the table. No adversarial action within the epoch (skipping, withholding proposals, choosing among its identities) changes any ranking, except by removing the adversary's own identities. If m = 1, slot leaders are independent across slots and distributed as in Theorem 8. (b) The adversary chooses the table among at most candidates by withholding a subset of its late reveals. A slot is not guaranteed with probability at most under each candidate, and the adversary can propose only in such slots. It proposes in a fixed target slot with probability at most , and its expected fraction of the k slots of the epoch is at most . (c) The probability that none of n specified slots is guaranteed is at most . For a window of n consecutive slots whose start the adversary may choose after seeing the schedule, it is at most . Proof sketch. Each of the first ranks is adversarial with probability at most ; part (b) uses independence across candidates, part (c) a union bound over candidates and window starts, and the share uses the sub-Gaussian maximal inequality (Appendix S4).
Fallback proposers matter only under denial of service. Without them , suppressing the leader of every slot leaves the sidechain without honest blocks; with , only non-guaranteed slots can lose their honest proposer. Part (c) deliberately does not multiply per-slot probabilities under the selected table, which would be invalid after seed selection.
Lemma 12 (Reveals are included). Suppose that an honest proposer includes every reveal it received before its slot, that messages are delivered within and a slot lasts at least , and that the finality gadget finalizes each block of the reveal window before the next slot starts. If a phase or sub-window of slots has a guaranteed slot after its first slot, every honest reveal of that phase or sub-window is included. Under each candidate table of the epoch that contains the window, this fails with probability at most .
Proof sketch. A reveal sent when its window starts reaches every later honest proposer, a guaranteed slot has one, and slots are independent under each candidate (Appendix S4).
Proposition 13 (Late reveals are rare). Consider consecutive m-ideal epochs, each with respect to its own c, starting from an epoch with . Let , and let be the event that Fail occurs in none of the epochs up to e. Then, for every epoch e and every ,
where . The adversary proposes in a fixed target slot of epoch with probability at most , where .
Proof sketch. By mild adaptivity, registrations and the corrupt set of epoch are fixed before the candidate tables of epoch are sampled, and under each candidate the first ranks of the order are adversarial with probability at most . Summing over the candidates gives , whose fixed point is (Appendix S4).
For and , , : , , ; , , ; and, as , the expected share exceeds by at most , , for . Without the random order, owning the last positions would give at ; with it, still exceeds the 0.348 of Theorem 10, as one adversarial last revealer yields two candidate schedules. With and , at without denial of service and with (, ).
7.4 From the Ideal Model to the Protocol, Against Quantum Adversaries
Lemma 14 (Reprogramming hidden inputs [43]). Let a quantum process make q queries to an oracle O, and let its run with O be determined by randomness independent of a random variable Z, so that, with that randomness fixed, its state before each query does not depend on Z. Let be a set of inputs, determined by Z, with for every input x, and let agree with O outside . Then the final states of the process with O and with have expected trace distance at most .
Proof sketch. Each query changes the state by at most , of expectation at most as is independent of (Appendix S4).
Theorem 15 (Ideal to real, QROM). Model the commitment and seed functions of QPoS-S, cSHAKE256 with distinct tags, as a quantum random oracle independent of the score oracle and of ML-DSA's internal hashing. Let commitments, secrets and seeds have , and bits, and let identities and epochs be fixed-length fields of bits in total. Assume mildly adaptive corruption (Section 4), the conditions of Theorem 12, that Fail does not occur, and that ; on Fail, suffices. Let , and let t count all oracle queries of all parties before . Then there is an m-ideal experiment such that, for every -valued function F of the epoch's leaders and the adversary's final output,
Queries made after do not appear in the bound.
Proof sketch. Four hybrids give the four terms: (1) statistical binding of the wide commitments leaves late adversaries only reveal-or-withhold; (2) Theorem 14 with hides before ; (3) Theorem 14 on the pre-sampled seeds of the at most reveal sets makes their scores and order keys fresh; (4) the are distinct except with probability , giving an -ideal experiment. Before , validator uses only through its commitment, which is uniform for every , so the run before is independent of the reprogrammed inputs; the run after is the same map in all hybrids, so the trace distance at bounds the final distance and later queries are free (Appendix S4).
QPoS-S uses , and 64-bit identity and epoch fields ( ). For and , the four terms are , , and , so ; is a worst case. Scores and order keys use H with .
Corollary 16 (Real protocol). Let and , where applies Theorem 8 to the slot races and the order race of each candidate, and counts all registered identities. Against quantum adversaries with mildly adaptive corruption, under the conditions of Theorem 12, every bound of Theorems 11 to 13 holds in the real protocol, for the first epochs, up to an additive . In particular, the adversary proposes in a fixed target slot with probability at most , and an epoch has no guaranteed slot among consecutive slots placed by the adversary with probability at most .
Proof sketch. Idealizing epochs one at a time costs each, plus (Appendix S4).
Consequences. By Theorem 16, an honest transaction is included within slots of any adversarially chosen start, except with probability , whenever , as used by Theorem 4. For , and , suffices without denial of service and with ; for , at and at , with or without . Finality additionally needs the finality gadget's liveness, and a window that straddles an epoch boundary adds the bounds of both epochs. No PQ-Vault role is exclusive to a slot: anyone can aggregate certificates, and attestors, not leaders, certify checkpoints.
Long-range attacks. With Vault as the weak-subjectivity source, a fork before the latest anchored checkpoint is rejected under Assumption A1, and a fork after it needs a certificate for the still-bonded attessor set, which Theorems 5 and 19 bound (Appendix S4).
8 ACCEPTING CERTIFICATES ON L1
Direct L1 verification ( ML-DSA verifications on call-data) costs to gas, above the per-transaction cap (Section 9.5), so certificates must be compressed.
8.1 A Non-PQ SNARK Cannot Be the Acceptance Path
Our earlier design [18] used a Groth16 [23] proof over certificates; this is unsound once L1 accepts checkpoints on its strength.
Proposition 17. If Vault finalizes a checkpoint whenever a Groth16 proof of “all certificates verify” is valid, then a QPT adversary can finalize an arbitrary checkpoint, and with it arbitrary withdrawals, with probability .
Proof sketch. Shor’s algorithm recovers the CRS trapdoor, which lets the simulator prove false statements. The full proof is in Appendix S5.
We therefore use an optimistic protocol with a PQ dispute path, whose happy path costs almost nothing; a transparent hash-based proof system is the alternative.
8.2 Optimistic Acceptance with Single-Reveal Fraud Proofs
Apart from the range check on (done at proposal), Vf (Algorithm 1) is a conjunction of per-coin checks. An L1 attessor leaf holds , where is the EXTCODEHASH of the contract storing 's expanded ML-DSA key (Section 9.5). For each coin index , the record holds the covering leaf and its two paths, and Local( ) = 1 iff (i) , and , with computed from the proposal's , , and its snapshot of , and ; (ii) and have length and open under and under , both at position ; and (iii) has the scheme's length and verifies on under the key stored in the contract with code hash . The relayer commits to the records in a Merkle tree of depth , with at index (leaf encoding in Appendix S5).
Lemma 18 (Local decomposition). Except for a collision of H, Local for all if and only if the distinct positions , their leaves, and the multiproofs assembled from the single paths form a certificate that Algorithm 1 accepts, instantiated with the vault's leaf encodings.
Proof sketch. Without collisions, records naming one position carry equal leaves, and the checks of Algorithm 1 are exactly (i)–(iii) over all j. The full proof is in Appendix S5.
Protocol. propose (Section 5.1) creates a bonded proposal at , with records in blobs (not relied on for safety). Until the challenge deadline (extended to after an open-all posting completed at ), anyone may challenge(j) each index once, with bond . A respond within carries one record: if it is unauthenticated under or names a wrong key address, the call reverts; otherwise it rejects the proposal if Local fails and closes the challenge if not. challengeAll (once, no bond) forces all records onto calldata within ; timeout and timeoutAll reject on an unanswered challenge or incomplete posting. finalize, with no open challenge or pending posting, finalizes if the epoch is , else marks it stale. Guards are < the deadline for challenges and open-all, for responses and postings, for finalize and > for timeouts, so no timestamp admits both an action and the transition its deadline unlocks. Bonds and rewards ( , ) and the full state machine are in Appendix S5.
Timing. With bounding a watcher's time to check all records and the relayer's time to answer, we require
and . Each pending proposal is then eligible for a final transition by after its inclusion. With days, day and days (as in optimistic rollups [26]), days.
Theorem 19 (Optimistic acceptance). Assume Assumptions A1 to A4 and the timing conditions above. Then the following hold. (Safety) The probability that Vault finalizes a proposal whose meets the winning condition of Definition 1, with the attessor list committed by the proposal's snapshot of , is at most the bound of Theorem 5 plus , where and is the smallest output width of , and ( in the deployed vault). Since Col ranges over the whole oracle, also excludes two key contracts with the same code hash , and, in Theorem 20, two headers with the same or two withdrawal trees with the same root. (Liveness) An honest relayer's proposal is never rejected except with probability ; it is eligible for finalization at if no dispute is raised, and by otherwise; if the relayer then submits finalize, it is finalized within a further . (Cost) Each frivolous coin challenge costs its sender , and an honest watcher spends at most one open-all transaction fee and one bond per proposal; if its challenge is the first on a failing record, the bond is returned with .
Proof sketch. Excluding collisions (Theorem 1), by Assumption A4 and the strict timing conditions, an honest watcher learns all committed records (from blobs or via open-all) and challenges any failing record before the deadline; the only non-reverting response rejects the proposal, and an unanswered challenge rejects it at timeout. A finalized proposal thus has only passing records, an accepted certificate by Theorem 18, bounded by Theorem 5. Liveness: honest records pass and answers meet the inclusive deadlines. The full proof is in Appendix S5.
8.3 End-to-End Custody
Theorem 20 (Custody safety). Assume Assumptions A1 to A4, the timing conditions above, and, in every epoch e, corrupt attessor stake below with . Assume also the honest-signing rule of Section 5, and let Fin be the event that two honest validators consider conflicting checkpoints of the same epoch final. Then over E epochs, for every QPT adversary making t oracle queries in total,
where under Eq. (5) when (Section 6.4), is the number of honest attessor keys generated over the whole experiment, and U is the number of user keys.
Proof sketch. By induction over checkpoints we keep the invariant : finalized are honest, the vault's is the honest one of epoch , and each payment pays a leaf of a finalized at most once. A proposal for epoch uses the honest snapshot by ; if no honest attessor signed , Theorem 19 bounds its finalization, and otherwise the honest-signing rule makes honest outside Fin. Nullifiers, balance conservation and user-signature unforgeability bound payments by the escrow. The full proof is in Appendix S5.
The union bound over epochs is why the reveal rule needs for a lifetime target (Section 6.4); Fin is the safety of the sidechain's finality gadget, which we do not re-analyze (Appendix S5).
Liveness (G4). If honest transactions are included on the sidechain within (except with probability , Theorem 16) and some honest party relays each checkpoint, an honest withdrawal is paid within , where includes at most for finalization, including the predecessor's wait when the checkpoint interval is at least (Section 5.4, Theorem 19 and Assumption A1), if an honest relayer calls finalize once eligible.
9 IMPLEMENTATION AND EVALUATION
Artifacts and setup. pqcert implements Algorithm 1 in Rust with the QROM rule (Eq. (5)) and Keccak-256 Merkle multiproofs, over the round-3 Dilithium implementation used by the prototype of [38] (labeled Dilithium; not interoperable with FIPS 204, which a second backend cross-checks). We also built a Python verifier, a network harness, Monte Carlo simulators and the Solidity vault of Section 9.5, all public [21] (Appendix S6). The verifier rejected all negative tests in every run. Timings are single-threaded medians on a

Fig. 2. Certificate size vs. number of validators (round-3 Dilithium2, , 85% signed). Colors: stake distribution; solid: QROM rule; dotted: classical rule; black: all signatures.
2-vCPU cloud VM (M1). Unless stated otherwise, , , , , (equivalently in the size runs, Appendix S6), stake is uniform, log-normal () or Zipf (), and validators sign in random order until at least of the stake has signed (under Zipf, up to at ).
9.1 Certificate Size and Cost
Figure 2 and Table 5 report certificates with real round-3 Dilithium2 signatures. (1) Compactness. At fixed , and , does not depend on , and the size grows logarithmically in while stays bounded away from 1: from 0.36 MB at to 0.80 MB at (log-normal, QROM). Shipping all signatures costs 208 MB at , more, a ratio growing as . (2) Cost of quantum security. The QROM rule raises by (143 to 193), but coins collide on heavy attestors, so distinct reveals grow less: the size overhead is across all configurations (23–34% for log-normal stake), and verification time grows by for log-normal stake. (3) Stake skew helps. Under Zipf stake, coins concentrate on large validators and the certificate shrinks to 0.57 MB at . At , verification takes 18 ms on one core and building 0.47 s, dominated by hashing the signature tree. As Table 4 predicts, the proven threshold dominates cost: at , raising from to and grows the certificate from 0.69 to 1.06 and 1.95 MB. Table 6 reports 384-bit commitments (Section 6); its totals also reflect slightly different reveal sets and a separate timing run, and with the reveal set fixed the wider hashes alone add .
FIPS 204 cross-check and light clients. On a third machine, M3 (2 vCPUs, Intel Xeon, 2.1 GHz), we ran the harness with round-3 Dilithium2 and with FIPS 204 ML-DSA-44 for (log-normal, ). is identical; sizes differ by to (the latter for the classical rule at ) with no consistent sign, because different signatures change which positions the coins select; FIPS 204 verification is slower. At (QROM), the certificates are 0.80 and 0.81 MB and verify in 18.4 and 21.1 ms. The Python verifier (FIPS 204) checks a QROM certificate at in 25, 44 and 57 ms on M1 for ML-
TABLE 5 Certificates on M1 (round-3 Dilithium2, log-normal stake, QROM rule). "Distinct": distinct reveals; "Gain": size of all signatures divided by certificate size.
| N | Distinct | Size (MB) | Gain | Build (ms) | Verify (ms) | |
|---|---|---|---|---|---|---|
| 192 | 94 | 0.36 | 2.3× | 2.4 | 8.7 | |
| 192 | 118 | 0.46 | 7.2× | 7.9 | 11.3 | |
| 193 | 173 | 0.69 | 19× | 29.4 | 16.3 | |
| 193 | 188 | 0.77 | 68× | 129 | 21.6 | |
| 193 | 189 | 0.80 | 260× | 474 | 18.4 |
Classical rule, : , 140 distinct, 0.60 MB, verify 13.7 ms
TABLE 6 Keccak-384 vs. Keccak-256 commitments (round-3 Dilithium2, log-normal, QROM, M1).
| N | Certificate size (MB) | Verify (ms) | |||
|---|---|---|---|---|---|
| h = 256 | h = 384 | Increase | h = 256 | h = 384 | |
| 0.692 | 0.734 | +6.1% | 19.0 | 20.4 | |
| 0.772 | 0.801 | +3.8% | 20.6 | 21.7 | |
| 0.801 | 0.857 | +7.0% | 21.2 | 20.7 | |
DSA-44/65/87, and in 18, 27 and 44 ms on a laptop VM (M2). L1, not light clients, is the bottleneck (Section 9.5).
9.2 Baselines: Falcon and Hash-Based Signatures
The signature scheme sets most of the cost. Table 7 compares the Dilithium levels with Falcon-512 and with the synchronized hash-based signatures (generalized XMSS with target-sum encoding) that Drake et al. [6] propose for post-quantum Ethereum, measured with their implementation [44] at lifetime . The hash-based rows combine their measured size and verification time with the reveal structure of the Dilithium2 (r3) certificate (173 distinct reveals, 1,328 multiproof hashes), as coin selection is scheme-independent; the other rows are complete pqcert certificates.
Compact certificates beat shipping all signatures by 18–20× at N = 4096. Falcon-512 is the best fit: its certificate is 2.2× smaller than with Dilithium2 (r3) (0.40 MB at N = 2 , verified in 11 ms), at the price of floating-point signing. The hash-based signatures of [6] give smaller certificates than ML-DSA thanks to 52-byte keys, but verify 2.5–4.2× slower here and are synchronized: a key signs at most once per epoch. Their hash-based succinct aggregation, which we did not measure, gives constant-size proofs but needs a SNARK prover. Compact certificates lose for very small sets (below about 2 signers, extrapolating Table 5) and at high thresholds such as (Table 4). On L1 the verifier contract dominates every per-reveal cost: Falcon verification is reported at 1.5–3.9M gas [12], versus 1.3–8.2M for an ML-DSA-44 dispute response here (Table 8), which affects only the dispute path.
9.3 Validating the Grinding Term
The attack of Theorem 6 relies on each fresh root independently covering all coins with probability , where is the validly covered weight. With a SHA3-256 coin function of the same form, an adversary covering re-randomizes its root
TABLE 7 Signature-scheme baselines on M1 (, log-normal, QROM, 3,524 signers). "All sigs": size of shipping every signature and key. Rows marked (r3) use round-3 Dilithium (Section 9). *Composed from measured components (see text).
| Scheme | pk / sig (B) | sign / verify (ms) | Cert (MB) | Cert verify (ms) | All sigs (MB) |
|---|---|---|---|---|---|
| Dilithium2 (r3) | 1312 / 2420 | 0.42 / 0.076 | 0.69 | 16.3 | 13.2 |
| Dilithium3 (r3) | 1952 / 3293 | 0.75 / 0.12 | 0.94 | 26.4 | 18.5 |
| Dilithium5 (r3) | 2592 / 4595 | 0.74 / 0.22 | 1.27 | 41.4 | 25.3 |
| Falcon-512 | 897 / 666 | 0.20 / 0.036 | 0.31 | 8.7 | 5.5 |
| XMSS-TS, hashing-opt. [6] | 52 / 3116 | 0.77 / 0.22 | 0.59* | 40* | 11.2 |
| XMSS-TS, size-opt. [6] | 52 / 2092 | 1.55 / 0.38 | 0.42* | 69* | 7.6 |
until all coins are covered. Over 120–300 runs per point, the mean number of trials matches within two standard errors for and , respectively (e.g., 4,252 trials at against 4,096 predicted). Figure 3(b) applies the attack to classically parameterized certificates: it caps their security at about 81 bits for and 65 bits for , against the intended 128, whereas under the QROM rule Theorem 5 guarantees bits for the grinding term.
9.4 Networked Certification
An aggregator collects real FIPS 204 ML-DSA-44 signatures over TCP from validators in two worker processes, builds the certificate and sends it to 8 light clients, under emulated WAN conditions (five regions at 1–95 ms one-way latency, 10% of validators offline, collection until 80% of the stake; full setup in Appendix S6). Over five rounds, the median end-to-end time, from header broadcast until all light clients have verified, is 321, 288, 408 and 647 ms for N = 128, 512, 1024 and 2048, and no round exceeded 716 ms. Beyond the round trip to the farthest needed region, collection time grows with sequential signature verification at the aggregator (0.13 ms per signature, 221 ms for the ≈1,720 signatures at N = 2048), which parallelizes trivially, and construction takes at most 22 ms. Certification is far from limiting withdrawal latency, which dominates.
9.5 Cost on Ethereum: Measured Contracts
We implemented the vault and dispute state machine of Sections 5 and 8 in Solidity (PQVault.sol, about 300 lines) on the ZKNOX ML-DSA verifiers [11], and measured transaction-level gas (EIP-7623 [45]) with Foundry for the NIST-conformant and the packed ZKNOX verifier (Table 8). The test vectors are a real certificate over positions with 872 FIPS 204 signatures, which both verifiers accept; 17 tests per verifier confirm the state machine (Appendix S6).
The optimistic path (propose plus finalize) costs about gas per checkpoint ( in the happy-path test). Answering a coin challenge costs (NIST) or gas (packed; with the challenge), paid by the party in the wrong. Direct verification costs and the optimistic path, and its 0.81 MB of calldata exceeds the common 128 KB mempool limit; extrapolated to the 189 distinct reveals at (Table 5), it would cost and gas (Appendix S6). Even the draft EIP-8051 precompile [5] would leave direct verification bound by calldata (20,512-byte expanded keys). An open-all posting (803,580 bytes in 7 transactions) costs gas,
TABLE 8 Measured L1 gas of PQVault (Foundry; , 130 distinct reveals, d = 16). Storage written earlier in a test is warm. All operations fit in one transaction except direct verification, which exceeds the -gas cap [46] (parentheses: minimum number of transactions), and the open-all posting, split for the 128 KB mempool limit. Details in Appendix S6.
| Operation | Gas, NIST verifier | Gas, packed verifier |
|---|---|---|
| Register key (once, 22.4 KB ZKNOX format) | ||
| Deposit | ||
| Propose checkpoint (computes , checks ) | ||
| Finalize checkpoint | ||
| Withdraw (depth-20 proof) | ||
| Coin challenge | ||
| Respond (one ML-DSA verification) | ||
| Open-all request | ||
| Post all 193 records (7 txs, 0.80 MB) | ||
| Direct verification, all 193 coins | (≥ 65 txs) | (≥ 11 txs) |
set almost entirely by the calldata floor; execution adds only .
9.6 Leader Election
Fairness and Sybil invariance. We evaluated the score of Eq. (3) with SHA3-256 over a per-validator value (a hash of its index), the slot and a fixed seed, for 200 validators with log-normal stake and 40,000 slots. Win frequencies match stake fractions ( with 199 degrees of freedom, p = 0.65). Sampling the race of Theorem 8, an adversary with split into identities over slots keeps a share between 0.198 and 0.203 (standard error 0.0009), as Theorem 8 predicts.
Steering. The remaining experiments sample the exponential-race model of Theorem 8 directly; they check our derivations rather than an implementation. Figure 3(c) compares target-slot capture. Under the runner-up rule, the simulation (adversary sees both candidate seeds) matches case (a) of Theorem 10, 0.347 vs. 0.348 at , and 4 identities raise it to 0.357, so Sybil invariance fails. With a fixed QPoS-S seed the probability equals within sampling error; with seeds steered across epochs it stays below (Theorem 13), within sampling error at , where the bound is nearly tight. Choosing among epoch seeds () gains 0.004–0.038 in epoch share for (an illustrative range; Theorem 13 makes rare), always below the bound of Theorem 11 (0.013–0.046).
Reveal order and fallback proposers. A further experiment (reveal_order_sim.py) checks Theorem 13 and Theorem 11, with 300 honest validators of log-normal stake in its first two parts. More adversarial identities raise towards, but not above, : at , 100 identities give 0.299, 0.088, 0.026 and 0.0077 for ( orders each), against 0.3, 0.09, 0.027 and 0.0081; a single identity never has . Over consecutive epochs in which the adversary (20 identities) always picks the candidate maximizing the next , is 1.14, 1.42 and 2.19 for , 0.2 and 0.3 (bound : 1.14, 1.5 and 4), and never reached ; its target-slot capture rate, 0.112, 0.255 and 0.442, is an example rather than a worst case (bound :
(a) Reveals required

(b) Security under Grover grinding
(c) Steering a target slot
classical rule, attacked,
QROM rule, proven,
classical rule, attacked,
QROM rule, proven,
adversarial stake
QPoS-S, fixed seed: theory, sim.
QPoS-S, steered seeds: bound , sim.
runner-up rule, 1 identity
runner-up rule, 4 identities (sim.)
: 4 late reveals
Fig. 3. (a) Reveals required by the classical and QROM rules. (b) Security of classically parameterized certificates under the attack of Theorem 6 ( , ); dotted: level guaranteed by Theorem 5 under the QROM rule. (c) Target-slot capture under QPoS-S, with a fixed seed and with seeds steered across epochs (dotted: bound of Theorem 13 for ; diamonds: the simulated adversary of Section 9.6, which maximizes rather than capture), and under the runner-up rule (lines: theory; other markers: simulated trials each).
0.112, 0.265 and 0.622). The third part (30 adversarial and 70 equal-stake honest identities, slots) finds slots not guaranteed with frequency 0.300 and 0.511 at for and , against and 0.514.
10 DISCUSSION AND CONCLUSION
Scope of Assumption A1. A CRQC that breaks ECDSA also breaks Ethereum’s BLS consensus signatures, so Assumption A1 is not implied by our threat model: it assumes that L1 consensus is not attacked, or is restored by a state-preserving hard fork [4]. Assumption A3 is needed only for transactions that expose an ECDSA key (deposits, initial bindings, bonds of relayers and watchers); PQ smart accounts would remove it (Appendix S7).
Data availability and watchers. Theorem 19 assumes one honest online watcher; withholding blob data cannot cause a false acceptance (Section 8). For a gas-price ceiling , covers a response and plus a reward. Open-all requests carry no bond, so a watcher spends at most one request fee and one bond per proposal, while relayers must recover the -gas posting through fees, on which G4 relies. Any depositor can watch at about 20 ms per checkpoint (Appendix S7).
Public leader schedule. The public schedule enables Theorem 15 but exposes leaders and lets late revealers see candidate schedules. With fallback proposers, an adversary suppressing honest proposers per slot affects only slots that are not guaranteed, so inclusion within 31 to 56 slots holds with overwhelming probability at (Theorems 11 and 16). The stake-weighted reveal order makes late reveals rare (, Theorem 13); target-slot capture is at most 0.622 at (runner-up attack: 0.348; owning the last four reveals: 0.997) and at most 0.265 for . Instant adaptive corruption, which could seize the last honest revealer, is outside our model, and hidden schedules via a PQ VRF or secret leader election are left open (Appendix S7).
Limitations. The sidechain is analyzed by simulation only, the network experiment emulates WAN latency on shared cores, and gas was measured in a local Foundry EVM. If the corrupt third abstains and 85% of honest stake signs, and , which enlarges certificates but leaves the optimistic L1 path unchanged. Our leader-election bounds assume a standard BFT finality gadget, which we did not re-analyze, that finalizes each block of the reveal window within its slot. The prototype does not implement the binding registry or the canary. Any EUF-CMA scheme fits; Falcon-512 halves certificate size but is hard to sign in constant time (Appendix S7).
Conclusion. Protecting Ethereum assets against quantum adversaries without changing L1 is possible only for escrowed assets, and only if every predicate on the release path is PQ. PQ-Vault realizes this with quantum-secure compact certificates, steering-resistant stake-weighted PoS and single-reveal fraud proofs. These guarantees cost 19–34% more certificate size, certification in 0.65 s at 2048 validators, and about gas per checkpoint on L1.
Appendices. The appendices contain the full proofs of all results proved in the paper, the complete specification of the dispute protocol, and additional details and discussion. Appendix Sx supplements Section ; each result is restated before its proof.
S1 SYSTEM AND THREAT MODEL: PROOFS
S1.1 On Assumption A1
Assumption A1 is unavoidable: if Ethereum’s own consensus is subverted, no contract on Ethereum can protect anything. Our goal is to protect assets against the failure of account-level cryptography (Section 10).
S1.2 Proofs of Theorem 2 and Theorem 3
Proposition 2 (Custody impossibility). Let be any protocol that does not modify L1 validity rules. Suppose that at some time an asset is still spendable under the L1 predicate ECDSA.Vf( , ) = 1 with public. Then a QPT adversary can produce an L1-valid transaction spending that L1 cannot distinguish from one signed by the owner. Nothing produced by can make this transaction invalid.
Proof. A runs Shor's algorithm on to obtain and signs a transaction that transfers a. L1 validity depends only on the predicate and on the account state, and produces exactly the signatures the owner would produce. Since does not change L1 validity rules, no message, proof, or state of can invalidate the transaction. Whether the adversary or the owner moves a first is then decided by transaction ordering alone, which the protocol does not control.
Corollary 3. Consider, on unmodified L1, an asset that must remain live, i.e., movable by its owner, and safe against A after . Every predicate that can release it after must then rest on PQ assumptions and on Assumption A1 alone; in particular, no ECDSA key whose public key is exposed may authorize its release, or change or redirect such a predicate without a PQ-authorized veto. On an account-based L1 this requires holding the asset under a contract predicate .
Proof. An ECDSA key that can release the asset, directly or by changing the predicate without a veto, falls under Theorem 2 once its public key is exposed. An EOA is controlled by its ECDSA key, so only contract code can implement a different predicate.
Theorem 2 rules out designs in which validators “check a PQ proof before including” an L1 transaction. The sidechain design of [18] implicitly assumed such a check.
The corollary does not cover addresses whose public key has never been exposed. Attacking their address commitment is a different problem, and their first spend exposes the key (Assumption A3). Nor does it count an asset made permanently unspendable as protected: that would be safe but not live.
S2 PQ-VAULT DESIGN: DETAILS AND PROOF
S2.1 Why the Earlier Zero-Knowledge Binding Is Replaced
The sidechain design of [18] bound to with a zero-knowledge proof that . That proof requires secp256k1 scalar multiplication inside a transparent circuit, which is costly. It also does not help after : the adversary learns , and the L1 predicate that matters still accepts (Theorem 2). We replace it with a binding that is authenticated classically, while classical authentication is still meaningful, and that becomes immutable afterwards.
S2.2 Binding Mechanism in Full
The binding has three parts. In the bind step, calls ; if no binding exists, it takes effect immediately, and the L1 transaction sender authenticates . A later rebind from creates a pending rebinding with a fresh per-address counter and activation time . At most one rebinding per address may be pending, so the owner never has to cancel more than one at a time; applyRebind succeeds only in a block with timestamp strictly greater than , and only if counter is not cancelled. Until then, the current PQ identity can veto it with an ML-DSA signature on , submitted to the sidechain. The cancellation reaches Vault through a certified checkpoint, whose binding-operations root is part of ; no ML-DSA verification on L1 is needed. A finalized root does not by itself change the registry: anyone, normally the owner, then calls applyCancel( ), which checks that opens the operation (cancel, ) under the finalized and marks counter cancelled. A cancellation is effective if this call is included at a timestamp at most ; it consumes , and an operation for any other counter has no effect.
Quantum canary. The canary makes the registry immutable once quantum attacks are demonstrated. Vault holds a bounty locked to an address derived from a nothing-up-my-sleeve secp256k1 point whose discrete logarithm no one knows. The canary fires on a valid ECDSA signature for , checked with ecrecover, on the fixed digest , and then permanently disables all ECDSA-authorized registry operations. The digest must be fixed: for a digest chosen by the submitter, a valid signature exists without the key (pick , let , , and ). A signature on is a forgery of ECDSA on a predetermined message, which for a key with unknown discrete logarithm signals a cryptanalytic or quantum break.
S2.3 Further Details of the Vault and Sidechain
Vault. The sidechain credits each deposit event once, after it is final on L1. Several proposals for the same epoch may be pending, and a rejected epoch can be proposed again; the dispute functions are specified in Section 8. When finalize succeeds, other proposals for epoch e become stale. The sidechain assigns each withdrawal a globally unique nonce, so is a nullifier: an authorized withdrawal that appears in several checkpoints is paid at most once. Recipients that are not fresh addresses or PQ smart accounts would expose the withdrawn funds again (Theorem 2).
Sidechain. denotes n output bits of cSHAKE256 with a PQ-Vault customization string, so that its inputs are separated from Keccak-256 and from ML-DSA's internal SHAKE256. Honest validators send to no one before their phase or sub-window starts. A validator whose reveal for epoch e is missing is suspended from epoch on, the first epoch whose registrations are still open, until it registers again; it is not slashed, because a censored honest reveal looks the same. Every node computes the schedule of the whole epoch once the seed is final. Proposer eligibility needs no proof beyond the block signature. The 1536-bit commitments make each commitment open to at most one secret, statistically in the QROM, and the 512-bit secrets and seed keep the quantum hiding errors small (Theorem 15). They add 192 bytes to a registration that already carries a 2,420-byte signature.
S2.4 Proof of Theorem 4
Proposition 4 (Binding integrity). Suppose Bind[Addr_M] = H(pk_S) was set by Addr_M's owner, and let , where bounds the owner's time to observe a pending rebinding and sign, bounds sidechain inclusion of its transaction, bounds the time from inclusion to finalization of the carrying checkpoint, including disputes and the finalize call (Theorem 19), and bounds preparing and including applyCancel. Suppose , the owner is online at least once in every window of length , these bounds hold, and Assumptions A1 to A4 and the timing conditions of Theorem 19 hold. By Theorem 16 and Theorem 19, and fail only with the probabilities given there. Then a QPT adversary can change the binding only by forging an ML-DSA signature, by breaking certificate soundness, or before the owner's first binding transaction is included.
Proof. Before the owner’s first binding transaction is included, no binding exists, and this case is excluded by the statement. Afterwards, any change to Bind[Addr_M] goes through a pending rebinding that lasts D. Because the owner is online in every window of length , it is online at some time at which at least of the delay remains. It then signs a cancellation of counter n with , which is included on the sidechain, finalized on L1, and applied by applyCancel no later than . Since applyRebind needs a timestamp strictly greater than , the rebinding can never be applied. An adversary can prevent this outcome in only two ways. It can produce an ML-DSA-signed operation under that the owner never signed; operations signed for earlier counters have no effect on n, so this is a signature forgery. Or it can have the vault finalize a checkpoint that omits or reverses binding operations that are final on the honest sidechain. Such a checkpoint is not signed by any honest validator, and its finalization is bounded by Theorem 19 (with Theorem 5 on the direct path). After the canary fires, the vault rejects every ECDSA-authorized registry operation, and the binding can no longer change at all.
S2.5 Legacy EOAs and Recovery Hard Forks
The binding gives users with funds still in legacy EOAs a pre-registered PQ identity, which is useful if Ethereum later adopts a recovery hard fork [4]. We emphasize that such funds are not protected by PQ-Vault itself (Theorem 2). The registry is not on the release path of escrowed funds, which deposits credit to directly, and the canary is defense in depth: no theorem of the main paper relies on either.
S2.6 Transparent Proof Layer
If the transparent proof layer is enabled, a block carries a proof of correct state transition, which lets light validators check blocks without re-execution. Certificate soundness does not depend on that layer. The leader has no exclusive power over certification, since any party can aggregate signatures into a certificate (Algorithm 1).
S2.7 Trust in the Attestor Set: Further Discussion
With , a coalition holding more than a third of the attessor stake could certify an arbitrary without any honest signer; trades certificate cost against the fraction of stake that must be corrupted. Comparing the cost of corrupting a third of the stake with the escrowed value is only an economic motivation for the assumption that corrupt stake stays below one third of every accepted attessor set. It would need further assumptions on utilities, bribery and enforceability, and an adversary may value disruption above the escrow. Signers of a fraudulent certificate are identifiable, but slashing them would require stake held on L1, which our prototype does not implement.
S3 COMPACT CERTIFICATES: PROOFS AND DETAILS
S3.1 Proof of Theorem 5
The additive term accounts for the 128-bit modular reduction in Eq. (1): for any set , at most of the values reduce into . The verifier takes and from its own state and accepts only (Algorithm 1), which bounds and makes the additive term negligible. The game fixes (stakes are 64-bit integers) and , which the verifier takes from its state.
Theorem 5 (QROM soundness of compact certificates). Let , let with , let , and let be the smallest output width of the oracles and trees involved. For every adversary making quantum queries to and any number of signing queries,
The certificate is the BCS transformation [24] of a one-round public-coin IOP whose prover commits to the leaf vector and whose verifier draws the coins, and the proof follows the analysis of [34, Sec. 2.9]. Two features need care. The verifier's predicate involves signatures, which A obtains adaptively; and Eq. (1) derives each coin from a separate query.
Proof. Step 1 (one oracle value per commitment). Let . Replace the oracle on coin inputs (DOM, j, x) with , where , by with -bit outputs: block j of answers , and the coin is its first 128 bits reduced modulo . Distinct blocks are independent and uniform, so the oracle's distribution is unchanged. The domain-separated pair is one oracle with inputs of two kinds, and Col refers to its h-bit Merkle outputs. A quantum query, possibly in superposition over both kinds of inputs and over j, is simulated by one query to the combined oracle: the output register is swapped into block j, the other blocks are set to , which XOR leaves unchanged, and the swap is undone. Query counts are therefore preserved. The verifier's queries are bounded by , since (Algorithm 1) and it computes at most coins and at most leaf and node hashes. Building costs at most queries, and ML-DSA's internal hashing is independent of (Section 3). Hence t bounds all queries to and in the experiment.
Step 2 (a fixed database property). Let be a database without collisions. Consider each coin entry of with input whose field is the game's and whose lies in ; the verifier reads no other coin entries, and read the attessor leaves below and the leaves below from , with for leaves not in . Let be the set of positions at which both leaves are present, ML-DSA. , and , and let . Call the entry light if and hit if all coins lie in . Let be the property that contains a light, hit coin entry. is a fixed set of databases: it depends neither on the signing history nor on , because signature validity is a fixed predicate once ML-DSA's independent oracle is fixed, and we condition on that oracle.
We bound . Adding a coin entry for input leaves every tree in unchanged and creates one new entry. If that entry is light, then , and each coin lies in with probability at most ; the blocks are independent, so the entry is hit with probability at most . Adding a hash entry changes a tree below an existing root, and thereby or for some coin entry, only if its output equals one of the at most child or root values occurring in inputs of , which has probability less than . Hence . With , Theorem 1(i) gives and .
Step 3 (the database game). Suppose that the verifier accepts when every oracle value it reads is taken from , that , and that . The coin entry for is in , and because has no collisions the revealed leaves equal the leaves that defines below and . Every revealed position verifies and therefore lies in , and every coin is covered, so the entry is hit. If it is light, . Otherwise , so some is an uncorrupted honest position that never signed , while holds a valid signature on under its key. A reduction runs with an efficient compressed-oracle simulation, forwards signing and corruption queries to the multi-user EUF-CMA challenger for the honest keys, measures at the end, and outputs . Hence the database game is won with probability at most .
Step 4 (back to the real oracle). The final check reads at most oracle values, each of at least bits. By Theorem 1(ii), , which is the claimed bound.
S3.2 Remarks on Theorem 5
The proof needs no entropy property of honest signatures and no statement about when a leaf was committed: a valid leaf at an honest position is either charged to or is a forgery extracted after halts. Registered keys, including copies of honest keys, lie in . Quantifying over all coin entries covers the adaptive choice of , and commitment. With , (stakes are 64-bit integers in the contract) and , we have and , so the reduction term changes by a factor of at most .
S3.3 Proof of Theorem 6
Theorem 6 (Quantum grinding attack). Let and . Suppose the adversary corrupts with , receives no honest signatures, and some position outside or some padding position exists. Fix any with , let and ; then . If , there is a quantum adversary making at most queries that wins CERT-FORGE with probability at least
where .
Proof. Write with . Exactly values reduce into , which gives . The adversary signs the claimed with every key in and packs their intervals into . The verifier checks only revealed intervals, so the claimed need not equal the weight of the committed leaves. One position outside carries an -bit salt , and all other leaves are fixed. Building the tree once costs at most queries. For each , recomputing along one root path and evaluating the coins costs queries. Let iff all coins are below ; a marked yields a certificate that reveals only positions in , all of which verify.
Let be the fraction of marked salts. Fix the oracle values on Merkle inputs, which determine . Coin inputs are domain-separated from Merkle inputs, so the indicators for distinct roots are independent with mean , and salts with equal roots share their indicator. Two distinct salts give equal roots with probability at most , because the first equal hash on their paths is a collision. Hence and . Grover's algorithm with iterations uses queries (computation and uncomputation) and more to recompute the certificate classically. For a fixed oracle, it outputs a marked salt with probability , where . If , then (since ), and and give success at least . Averaging over the oracle, the success probability is at least , and gives the bound.
For the grinding term, the best attack's success probability in the example of Theorem 7 lies between and ; only the factor remains open. The attack is a query-model statement.
S3.4 Deployed Parameters: Algorand State Proofs
Algorand state proofs [15], to our knowledge the only deployed compact certificates, use consensus parameters [47] with a strength target of 256, documented as “ (for pre-quantum security) or (for post-quantum security)”, and a proven weight of 30% of the top 1024 accounts. Coins come from one SHAKE256 stream with rejection sampling, without the reduction term of Eq. (4). Read as with , this target matches our rule up to the constant . If its hash functions are modeled as random oracles (an assumption for its SumHash-based commitments), the grinding term of Theorem 5 certifies about bits against quantum provers making queries. We found no vulnerability: our theorem justifies its heuristic choice for the grinding term, with a gap of 3.6 bits. Systems that follow the classical rule of [14], as the prototype of [38] did, fall under Theorem 7.
S3.5 The Exact Parameter Rule
The rule (5) controls the grinding term only. For an arbitrary total query budget T and a per-epoch grinding budget , the exact sufficient rule is
which Eq. (5) implies for in the regime and for , as deployed, because (Section S3.2). T counts all queries to the hash oracle on the L1 path (256- or 384-bit): coins, certificate trees, , checkpoint headers, withdrawal trees and code hashes. Scores and order keys use domain-separated inputs, which we model as independent oracles.
S3.6 Output Width and the Commitment Term
The other terms of Theorem 5 need separate budgets. In Theorem 5, is the smallest output width of the oracles and trees involved, because Col and the attach events range over all of them; widening only does not change while stays at 256 bits. The commitment term has the form of the generic collision bound [41]. It is an upper bound, not an attack. Generic quantum collision search is no cheaper than classical search in realistic cost models [40], [48], but that does not make the query-model term . Table 3 combines all terms of Theorem 20 for two instantiations. The deployed vault uses Keccak-256 for every tree and for . A uniformly widened variant uses 384-bit nodes everywhere (Keccak-384 off chain, two domain-separated Keccak-256 outputs per node on L1; not implemented). Our pqcert implementation supports Keccak-384 certificate trees, which enlarge Dilithium2 (r3) certificates by 4–7% at unchanged verification time at (Table 6).
S4 LEADER ELECTION: PROOFS AND DETAILS
This section contains the full proofs of the results of Section 7 and material moved from that section.
S4.1 Exponential Race and Steering
Lemma 8 (Exponential race). Let be independent and uniform on , and let . Then the are independent with . Consequently, (i) , and (ii) splitting stake into identities with leaves the coalition's winning probability unchanged (Sybil invariance). With -bit values and ties broken by the smaller identity, the winner differs from the continuous winner with probability at most .
Proof. If is uniform on , then and hence . For independent exponentials with rates , the minimum is attained at with probability , which gives (i); the minimum of and is , which gives (ii). For the discretization, if the continuous winner loses to after rounding, then . So lies in an interval of length below , which has probability at most for each of the ordered pairs.
Theorem 8 is the weighted-sampling identity of [42] applied to the score of [7]. It is a statement about unselected uniforms. If a party picks one of several inputs after seeing the oracle's outputs, the selected output is not uniform: keeping the larger of two independent uniforms gives a value with CDF , although both inputs were distinct.
Proposition 9 (m-way steering). Suppose that, before slot T, the adversary can choose among m candidates; that under each candidate its own best score is a fresh variable (rates in units of ), independent across candidates; and that the honest best score is and unobserved when it chooses. Picking the candidate that minimizes its own best score is optimal and leads slot T with probability .
Proof. For a fixed candidate with adversarial best score , the adversary wins with probability , which decreases in ; minimizing is therefore optimal given its information. Writing , we get , that is, . The best of independent candidates yields , whose CDF is and whose mean is .
Corollary 10 (Steering under the runner-up rule). Consider proposer-dependent seeds in the race without threshold of [7], and a single-identity adversary that uses only its decision at slot T - 1. (a) If it can observe the honest runner-up's reveal before its publisher-skip decision becomes irrevocable, for example as a rushing adversary when honest proposals are broadcast at the start of the slot, it captures slot T with probability . (b) If that reveal becomes known only afterwards, it captures slot T with probability . Both exceed . Splitting into more identities raises the probability that the adversary holds the top ranks, and hence its option count; Sybil invariance therefore fails.
Proof. The adversary leads slot with probability (Theorem 8); otherwise the seed of slot is fresh and its capture probability is . In case (a), it knows both candidate seeds, its own and the runner-up's, and Theorem 9 with gives ; the total is . In case (b), skipping yields an unknown fresh seed with capture probability , while publishing yields probability as in Theorem 9, known to the adversary; the best choice achieves . Since , both totals exceed . If the adversary holds the top ranks of slot , it can choose among up to seeds, and increases with . Splitting a fixed stake leaves its probability of holding rank 1 unchanged (Theorem 8) but raises its probability of holding ranks 1 and 2 together.
S4.2 Ideal Model
Theorem 11 (Leader election in the ideal model). In any m-ideal experiment with continuous scores, the following hold. (a) Given the reveal set, the proposer ranking of each slot is a fixed public function of the table. No adversarial action within the epoch (skipping, withholding proposals, choosing among its identities) changes any ranking, except by removing the adversary's own identities. If m = 1, slot leaders are independent across slots and distributed as in Theorem 8. (b) The adversary chooses the table among at most candidates by withholding a subset of its late reveals. A slot is not guaranteed with probability at most under each candidate, and the adversary can propose only in such slots. It proposes in a fixed target slot with probability at most , and its expected fraction of the slots of the epoch is at most . (c) The probability that none of specified slots is guaranteed is at most . For a window of consecutive slots whose start the adversary may choose after seeing the schedule, it is at most .
Proof. For part (a), the ranking of slot j sorts row j of the table, which no action within the epoch changes. Removing its own identities cannot help the adversary. For m = 1, all scores are independent and uniform, and Theorem 8 gives the leader distribution and independence across slots.
We next bound one slot under one candidate table. Given the first ranks, rank is adversarial with probability , where and are the adversarial and honest stake already ranked. This is at most , since is equivalent to . For , at most honest identities have been ranked, so and the probability is at most . Hence the first ranks are all honest with probability at least , and a slot is not guaranteed with probability at most . In a guaranteed slot, at most of the first ranks are suppressed, and the best-ranked surviving one is honest and proposes.
For part (b), these per-candidate bounds hold independently across candidates, so the adversary proposes in the target slot under at least one candidate with probability at most ; no selection rule does better. For the share, let , where indicates that slot is not guaranteed under candidate . Under each candidate, the are independent with mean at most . By Hoeffding's lemma, each minus its mean is sub-Gaussian with variance proxy . The maximal inequality for sub-Gaussian variables, which requires no independence between candidates, gives , and .
For part (c), the event that none of the slots is guaranteed under the selected table is contained in the union of the same events under the candidates. Under each candidate, slots are independent, and each fails with probability at most . For an adversarially placed window, we take a further union bound over the possible starts.
Lemma 12 (Reveals are included). Suppose that an honest proposer includes every reveal it received before its slot, that messages are delivered within and a slot lasts at least , and that the finality gadget finalizes each block of the reveal window before the next slot starts. If a phase or sub-window of slots has a guaranteed slot after its first slot, every honest reveal of that phase or sub-window is included. Under each candidate table of the epoch that contains the window, this fails with probability at most .
Proof. An honest validator sends its reveal when its phase or sub-window starts, so every honest proposer of the second and later slots of the window has received it in time, and the proposer of a guaranteed slot is honest. The positions of the windows are fixed by the order, and under each candidate table the slots are independent, each not guaranteed with probability at most by Theorem 11.
Proposition 13 (Late reveals are rare). Consider consecutive m-ideal epochs, each with respect to its own c, starting from an epoch with . Let , and let be the event that Fail occurs in none of the epochs up to e. Then, for every epoch e and every ,
where . The adversary proposes in a fixed target slot of epoch with probability at most , where .
Proof. Write . The registrations for epoch and, by mild adaptivity, the corrupt set acting during its reveal window, which lies in epoch and was therefore requested by epoch , are fixed before the candidate tables of epoch are sampled at that epoch's time , in epoch . Under each candidate table of epoch , the order of epoch is a stake-weighted sample without replacement. As in the proof of Theorem 11 with , its first ranks are all adversarial with probability at most . In particular, the tail contains no honest identity with probability at most , and by Theorem 12 some of the sub-windows, which lie in epoch at positions fixed by the order, has no guaranteed slot after its first slot with probability at most ; for the common phase, the bound is . On , the adversary selects one of candidates, and the candidate tables are independent of . Summing over candidates gives and . On , no honest reveal is missing, so suspensions remove only adversarial identities and do not raise . Since ,
and induction from gives the bound , the fixed point of . The capture bound averages Theorem 11(b) over on , and adds .
S4.3 From the Ideal Model to the Protocol
Lemma 14 (Reprogramming hidden inputs). Let a quantum process make q queries to an oracle O, and let its run with O be determined by randomness independent of a random variable Z, so that, with that randomness fixed, its state before each query does not depend on Z. Let be a set of inputs, determined by Z, with for every input x, and let agree with O outside . Then the final states of the process with O and with have expected trace distance at most .
Proof. Purify the process, including all parties and their classical interaction, and defer all measurements; queries made in parallel are counted separately. Fix all randomness except Z. Let be the state before the i-th query when the oracle is O, and let project the query register onto . Replacing the oracle by one query at a time, and using that later operations preserve norms, gives \|\|\psi^O\rangle - |\psi^O'\rangle\| \leq \sum_{i=1}^q \| (U_O - U_O') |\phi_i\rangle\| \leq 2 \sum_i \|\Pi |\phi_i\rangle\|, because and act identically on inputs outside . Since does not depend on , . The trace distance of pure states is at most their Euclidean distance.
Theorem 15 (Ideal to real, QROM). Model the commitment and seed functions of QPoS-S, cSHAKE256 with distinct tags, as a quantum random oracle independent of the score oracle and of ML-DSA's internal hashing. Let commitments, secrets and seeds have , and bits, and let identities and epochs be fixed-length fields of bits in total. Assume mildly adaptive corruption (Section 4), the conditions of Theorem 12, that Fail does not occur, and that ; on Fail, suffices. Let . Let t count all oracle queries made by all parties before . Then there is an m-ideal experiment such that, for every -valued function F of the epoch's leaders and the adversary's final output,
Queries made after do not appear in the bound.
Proof. Write for the commitment and seed oracle. Index the possible reveal sets by bitmasks over the late adversarial identities in reveal order, and let denote the seed input of reveal set .
Step 0 (binding). Modify the protocol so that a reveal is accepted only if it is the lexicographically smallest opening of its commitment. The modified and real experiments are identical unless, for some identity-and-epoch prefix , the map is not injective on . This event depends only on the uniform oracle and has probability at most . In the modified protocol, each adversarial identity can only reveal its unique admissible opening or withhold it. The admissibility check for an identity reads only on commitment inputs with that prefix, which lie outside the set of Step 1; in Steps 1 and 2 these values are part of the fixed randomness. The reveal list, and hence each , is thus a function of , of the commitments and honest secrets, and of on commitment inputs. Registrations, which also fix the stakes, close before the reveal window opens, so all commitments and weights are fixed before . Every reveal before the subwindow of is final at , so the adversary's only remaining choice is which late identities reveal. The reveal order is a function of the previous seed, which is public before . By mild adaptivity, the corrupt set during the reveal window was requested before that seed was known, so is honest until after and is part of the fixed randomness as well.
Step 1 (hiding the last honest secret). Let . Let be the set of commitment inputs with fields , together with the seed inputs whose entry for equals . Fixed-length fields and the strictly ordered encoding of the reveal list give for every input . Sample a function on commitment and seed inputs, an independent function on seed inputs, and a uniform value . Let map the commitment input of to , agree with on the seed inputs in , and agree with elsewhere. For every fixed , is a uniform oracle, so the experiment of Step 0, in which throughout and , is distributed as before.
Let answer commitment and seed queries before with and later queries with . Validator uses before only through , so we keep outside the process. Given and the other randomness, the run before in therefore does not depend on . Theorem 14 with bounds the trace distance of the states at by . The execution after is the same map in both experiments, so the bound carries over to the final states, however many queries follow.
Step 2 (fresh scores). Call b realizable if its bits name existing late identities that all have an admissible opening. In , the points of realizable b are distinct seed inputs in ; for other b, the value below is an unused dummy. They are determined by r and by the run before , which uses H and a but not W. Their values are therefore independent uniforms, independent of and of that run. Hence is unchanged in distribution if we sample independent uniform in advance and set , so that the seed of reveal set b is . Let be the set of score and next-epoch order inputs whose seed field equals some . is a function of alone, and for every input x. Let be with fresh uniform values on for queries after . Because depends only on Z, which is independent of the score oracle , replacing the values of on by both before and after leaves unchanged in distribution. The result differs from only in the answers on before . The run of before does not depend on Z, so Theorem 14 bounds the distance by .
Step 3 (the ideal experiment). In , the seeds are distinct except with probability . The score table and next-epoch order keys of reveal set are then on the inputs of with seed , a family of independent uniform tables, independent of everything before and accessible to the adversary afterwards. is therefore -ideal, and the triangle inequality gives the bound, because trace distance bounds the difference of expectations of -valued functions.
Corollary 16 (Real protocol). Let and , where applies Theorem 8 to the slot races and the order race of each candidate, and counts all registered identities. Against quantum adversaries with mildly adaptive corruption, under the conditions of Theorem 12, every bound of Theorems 11 to 13 holds in the real protocol, for the first epochs, up to an additive . In particular, the adversary proposes in a fixed target slot with probability at most , and an epoch has no guaranteed slot among consecutive slots placed by the adversary with probability at most .
Proof. Replace the epochs by m-ideal ones one at a time. Each step applies Theorem 15, whose function F may depend on the entire later run, and Theorem 8. Its premises fail only on , which has probability at most given by Theorem 13, applied to the already idealized earlier epochs. Each step therefore costs at most , and adds the rest. The bounds then hold for consecutive m-ideal epochs, and the window bound averages Theorem 11(c) over with .
S4.4 Additional Remarks
S4.4.0.1 Proposer-dependent seeds: In the hash-chain protocol of [7] and in the sidechain design of [18], each validator's score is computed from its own secret hash-chain value, so scores are private until their owners propose, and the seed is updated as , and a skipped leader is replaced by the runner-up. A coalition can then influence . If it leads slot , it can publish its own block or skip and let the runner-up publish. If it holds the top positions, it can make any of proposers publish. Because the adversary knows its own future chain values, it can compute its own best score in the next slot for each candidate seed. Honest scores remain unpredictable.
S4.4.0.2 Target slots: Target slots matter because roles are attached to slot indices, for example the -th block that fixes a checkpoint, or the slot whose block includes or censors a dispute-relevant transaction.
S4.4.0.3 Fallback proposers: The fallback proposers matter only under denial of service. Without them , suppressing the leader of every slot leaves the sidechain without honest blocks; with , a slot loses its honest proposer only if it is not guaranteed. A non-guaranteed slot may still have an honest proposer, but an adversarial proposer of better rank can take the slot and censor it.
S4.4.0.4 Reveal order: The order of reveals keeps c small. Because rank 1 of the order is drawn in proportion to stake, Sybil splitting does not help the adversary obtain the last positions, and the adversary can influence the order only through its choice among the previous epoch's candidates.
S4.4.0.5 Parameters of Theorem 15: QPoS-S uses , and 64-bit identity and epoch fields ( ). For and , the four terms are , , and , so . The value is a worst case; by Theorem 13, is usually 0 or 1. Scores and order keys use H with . The wide secrets and seeds keep the two hiding terms small. The wide commitments make binding statistical in the QROM, so the proof needs no argument about computationally binding commitments against quantum adversaries. In practice, SHAKE-based binding is capped at the function's 256-bit security claim.
S4.5 Consequences in Detail
Part (c) does not multiply per-slot probabilities, which is invalid after seed selection. Since the schedule is public, the adversary can time an action, such as the rebinding of Theorem 4, to precede a run of non-guaranteed slots. By Theorem 16, an honest transaction is still included within slots of any start chosen after the schedule is public, except with probability , whenever . This high-probability guarantee is the sidechain liveness that Theorem 4 uses. Turning inclusion into finality additionally needs the liveness of the chosen finality gadget, and a window that straddles an epoch boundary adds the bounds of both epochs. For and , needs slots without denial of service and with . For epochs, at and at , with or without . Larger or lowers further at the cost of a longer reveal window. The window of 1,352 slots occupies about two thirds of a 2,000-slot epoch; reveals are small transactions carried by ordinary blocks, so this costs block space, not slots. A validator whose reveal is missing is suspended, but the adversary withholds only when the honest seed does not already suit it, so suspension is not a deterrent in our analysis. PQ-Vault attaches no exclusive role to any single slot: certificates can be aggregated by anyone, and checkpoints are certified by attestors rather than by a leader.
S4.6 Long-Range Attacks
A posterior corruption of retired keys allows the adversary to build an alternative history [31], [49]. Signature unforgeability, on which the analysis of [18] relied, does not prevent this. In PQ-Vault, Vault accepts only checkpoints for the epoch after its latest finalized checkpoint, verified against the attessor commitment fixed by that checkpoint. Bootstrapping nodes use the vault log as their weak-subjectivity source. Under Assumption A1, an alternative history that forks before the latest anchored checkpoint is rejected outright. A fork after it requires a certificate for the current attessor set, whose members are still bonded by our unbonding condition; forging one is bounded by Theorems 5 and 19.
S5 L1 ACCEPTANCE: DISPUTE PROTOCOL AND PROOFS
This section supplements Section 8. It gives the full specification of the optimistic dispute protocol, the detailed timing discussion, and the full proofs of Theorems 17 to 20.
S5.1 Record Commitment
The relayer commits to the records in a Merkle tree of depth , with at index . Its leaf hashes a fixed-length encoding of that includes the hashes of and of both paths.
S5.2 State Machine
A proposal is created by propose (Section 5.1) at time and is pending until it is finalized, rejected or stale. The relayer publishes the records as blob data. Safety never relies on blobs: a watcher that cannot fetch the records or match them to uses the open-all challenge. Its challenge deadline is , extended to if an open-all posting completed at . Times are block timestamps at inclusion. A challenge or open-all request is accepted only at timestamps strictly before its deadline, and a response or posting at timestamps up to and including its deadline; finalize is accepted from the challenge deadline on, and timeout and timeoutAll only strictly after their deadlines. Hence no timestamp admits both an action and the transition that its deadline unlocks. The transitions are as follows. (a) challenge(j), with bond , before the challenge deadline and at most once per index, opens a coin challenge with response deadline . (b) respond(j, r, addr) by any party up to and including that deadline first requires that r authenticate under at index j, and otherwise reverts. If the committed data fail (i) or (ii), the proposal is rejected.
Next, the call reverts unless the code hash of addr equals . Finally, a failing signature rejects the proposal, and a valid one closes the challenge. (c) timeout(j) after an unanswered response deadline rejects the proposal. (d) challengeAll, at most once per proposal and before the challenge deadline, requires all records to be posted as calldata within postRecords accepts records that authenticate under without evaluating Local, and sets once all are posted. If posting is incomplete at its deadline, timeoutAll rejects the proposal. (e) finalize requires that the challenge deadline has been reached, that no coin challenge is open, and that no posting is pending. The proposal is then finalized if its epoch is , and stale otherwise. A proposal is thus rejected only on an authenticated record that fails Local or on an expired deadline; a malformed record, wrong path or wrong key address from a third party only reverts. On rejection, the challenger is credited and its bond; a correct answer credits to the relayer. Payments are pulled by their recipients, so a recipient that refuses transfers cannot block a transition. An open-all request carries no bond, so a withholding relayer cannot charge honest watchers; in exchange, anyone can force each proposal to post its records once, at a cost to the relayer of gas (Section 9.5). Unavailable data cannot be attributed to either party, so one of them must bear this cost; we protect watchers.
S5.3 Timing
Let bound the time an honest watcher needs to observe a proposal or a completed posting, fetch the records and evaluate Local on all of them, and let bound the relayer's time to prepare a response or posting. All 's bound differences of inclusion timestamps. We require the strict inequalities
which match the strict guards on challenges, and , which match the inclusive guards on postings and responses; the relayer submits all posting transactions (seven in our measurements) concurrently. Every pending proposal is then eligible for a final transition (finalize, timeout or timeoutAll) by after its inclusion. A transition executes only when some party submits it. If an honest party submits it once it is eligible, it is included by . Safety never depends on these calls, since a proposal with an open challenge or pending posting cannot be finalized. A stale proposal has no effect on the vault's state from the moment another proposal for its epoch is finalized; only its bond refund needs a call. The worst case is an open-all request just before , followed by a coin challenge just before the extended deadline. Our contract uses days, day and days, in line with optimistic rollups [26], so days. Each coin index can be challenged at most once, so at most responses are ever needed per proposal.
S5.4 Proofs
Proposition 17. If Vault finalizes a checkpoint whenever a Groth16 proof of “all certificates verify” is valid, then a QPT adversary can finalize an arbitrary checkpoint, and with it arbitrary withdrawals, with probability 1 - negl.
Proof. The common reference string contains and for a trapdoor . Shor's algorithm computes from . With (and the other trapdoor elements, computed the same way), the Groth16 simulator outputs a valid proof for any statement, true or false. The vault accepts it.
Lemma 18 (Local decomposition). Except for a collision of H, Local for all if and only if the distinct positions , their leaves, and the multiproofs assembled from the single paths form a certificate that Algorithm 1 accepts, instantiated with the vault's leaf encodings.
Proof. If two records name the same position, both of their leaves open there under and , so they are equal unless the paths contain a collision. Hence P is well defined with , every position covers its coin, and the single paths contain every sibling that the multiproofs need. The interval, coverage, signature and opening checks of Algorithm 1 are exactly (i)–(iii) taken over all j, and the range check on was performed at proposal time. Conversely, an accepted certificate yields, for each coin, a covering leaf whose record passes Local.
Theorem 19 (Optimistic acceptance). Assume Assumptions A1 to A4 and the timing conditions above. Then the following hold. (Safety) The probability that Vault finalizes a proposal whose meets the winning condition of Definition 1, with the attestor list committed by the proposal's snapshot of , is at most the bound of Theorem 5 plus , where and is the smallest output width of , and ( in the deployed vault). Since Col ranges over the whole oracle, also excludes two key contracts with the same code hash , and, in Theorem 20, two headers with the same or two withdrawal trees with the same root. (Liveness) An honest relayer's proposal is never rejected except with probability ; it is eligible for finalization at if no dispute is raised, and by otherwise; if the relayer then submits finalize, it is finalized within a further . (Cost) Each frivolous coin challenge costs its sender , and an honest watcher spends at most one open-all transaction fee and one bond per proposal; if its challenge is the first on a failing record, the bond is returned with .
Proof. Two different records that authenticate at the same index of , or two different leaves that open at the same position of or , contain a collision; by Theorem 1 this has probability at most , and we exclude it. The committed records are then the unique records that authenticate under .
Safety. Suppose the vault finalizes a proposal whose meets the winning condition. By Assumption A4, an honest watcher observes the proposal and, within , either evaluates Local on blob records that authenticate under or finds them missing or inconsistent. In the latter case it calls challengeAll, which is included by by Assumption A1, and hence accepted. Finalization requires that any open-all posting completed, since otherwise timeoutAll would have rejected the proposal, and then the watcher evaluates Local on the posted records within of . Either way, the watcher learns all committed records before the challenge deadline. If one of them, , fails Local, index is challenged strictly before the deadline, by the watcher or by another party, since the watcher's challenge is included within of the proposal or of , which is less than or . The only response that does not revert carries and rejects the proposal, and an unanswered challenge rejects it at timeout; finalization waits for this outcome. Hence every committed record passes Local, and by Theorem 18 they form a certificate that Algorithm 1 accepts for . An adversary that achieves this wins CERT-FORGE, which Theorem 5 bounds. The vault does not authenticate challengers, and Assumption A3 protects only the watcher's bond.
Liveness and cost. An honest relayer publishes records that authenticate and pass Local. Every response it gives to a coin challenge is accepted, and responses by other parties either revert or close the challenge. It posts all records within if an open-all is requested. Its responses and postings are included by their inclusive deadlines because . No rejection condition can then occur, and the proposal is eligible for finalization, or becomes stale if another proposal for its epoch finalized first, once its deadlines have passed, which happens by . The cost statements follow from the bond rules and the once-per-proposal limit on open-all.
Theorem 20 (Custody safety). Assume Assumptions A1 to A4, the timing conditions above, and, in every epoch e, corrupt attessor stake below with . Assume also the honest-signing rule of Section 5, and let Fin be the event that two honest validators consider conflicting checkpoints of the same epoch final. Then over E epochs, for every QPT adversary making t oracle queries in total,
where under Eq. (5) when (Section 6.4), is the number of honest attessor keys generated over the whole experiment, and U is the number of user keys.
Proof. We show by induction on that, outside the bad events below, the following invariant holds after the vault finalizes its epoch- checkpoint: (a) the finalized are the checkpoints of the honest finalized sidechain; (b) the vault's is the honest ; and (c) every payment made by withdraw so far pays a leaf of some finalized each leaf at most once. holds by deployment: is fixed in the constructor, and nothing has been paid.
Assume , and consider the first proposal for epoch that the vault finalizes. Every proposal for epoch is opened while , so its snapshot of is the honest one of epoch by , and its is computed by the vault over and the proposed header. The attestors of epoch are still bonded at that time by our unbonding condition, so their corrupt stake is below and hence at most . If no honest attessor signed , the winning condition of Definition 1 holds for this list. Consider the experiment truncated at this finalization, in which makes at most queries. By Theorem 19, on the direct path by Theorem 5, this happens with probability at most , where all honest attessor keys generated in the experiment form the multi-user forgery game ( ). Otherwise some honest attessor signed , so by the honest-signing rule is final in its view, extends and satisfies (i)–(iv). Outside Fin, is the honest epoch- checkpoint. Since the vault computed from the header it stores, its , , and are the honest ones, which gives and (b). For (c), withdraw pays only a leaf that opens under a finalized , and it marks the nullifier spent before transferring, so a leaf is paid at most once even across checkpoints and reentrant calls. A union bound over the epochs gives the first term.
Under , every paid leaf is a leaf of an honest checkpoint. By rules (ii) and (iii), it stems from a withdrawal executed on the honest sidechain, which debited its amount from its owner's balance and carries the owner's ML-DSA signature on the full operation, including recipient, amount, nonce and vault. Producing such a signature without the owner is a forgery against one of the U user keys. Deposits are credited once, and transfers and withdrawals conserve balances, so the total paid never exceeds the total credited deposits, which never exceed the escrow. The binding registry is not on the release path. Hence G1 can fail only through the stated events.
S5.5 Remarks
The event Fin is the safety of the sidechain’s finality gadget, which we do not re-analyze; execution validity is not part of it, because it is enforced by the honest-signing rule.
S6 EVALUATION: ADDITIONAL DETAILS
This section complements Section 9 of the main paper.
S6.1 Artifacts
(i) pqcert, a Rust crate implementing Algorithm 1 with the QROM rule (Eq. (5)), domain-separated Keccak-256 Merkle trees with compact multiproofs, and 128-bit coin reduction. It uses the crystals-dilithium 1.0.0 crate used by the prototype of [38], which implements round-3 Dilithium rather than FIPS 204, and pqcrypto-falcon. Round-3 Dilithium2 has the same key and signature sizes as ML-DSA-44, and Dilithium3/5 signatures are 16 and 32 bytes shorter than ML-DSA-65/87; the algorithms are not interoperable. Results produced with this crate are labeled Dilithium in the main paper. A FIPS 204 backend (RustCrypto ml-dsa 0.1.1) cross-checks the headline results. (ii) A Python reference implementation (pycert) with the same logic over SHA3-256, using the FIPS 204 ML-DSA bindings of pqcrypto. (iii) A multi-process network harness. (iv) Monte Carlo simulators for QPoS-S and for grinding. (v) The Solidity vault of Section 9.5, tested with Foundry against FIPS 204 signatures. Code, raw results, plotting scripts and reproduction scripts are available at https://github.com/hassankhodaiemehr/PQ-Vault [21]; all experiments use fixed seeds.
S6.2 Machines
M1: a cloud VM with 2 vCPUs (Intel Xeon, 2.8 GHz) and 8 GB RAM. M2: a laptop VM with 2 vCPUs on an Intel Core i9-13900HX and 3 GB RAM, used as a heterogeneous light client. M3: 2 vCPUs (Intel Xeon, 2.1 GHz), used for the FIPS 204 cross-check. All timings are single-threaded medians.
S6.3 Harness Notes
Negative tests. Every benchmark run includes negative tests: a tampered signature, a shifted interval, a dropped reveal, and a claimed signed weight above W. The verifier rejected all of them in every run. The checks and “no unused reveal” were added after the size runs; unit tests and the FIPS 204 cross-check exercise them.
Proven threshold in the size runs. The size benchmarks used , which yields the same as in all 40 reported configurations; the contract and network experiments use . The harness now uses too; this changes the coins, so a rerun gives slightly different reveal sets (e.g., 81 instead of 94 distinct reveals at ), and all reported sizes are from the 0.3333 runs.
S6.4 Network Experiment Setup
An aggregator process and two worker processes, each hosting about N/2 validators, communicate over real TCP sockets, with one connection per validator and real FIPS 204 ML-DSA-44 signatures. The aggregator verifies every signature, builds the certificate, and sends it to 8 light clients, which verify it. WAN conditions are emulated per message. Validators are placed in five regions with one-way latency to the aggregator of 1, 35, 40, 60 and 95 ms (with weights 0.30, 0.15, 0.30, 0.05, 0.20), with 10% log-normal jitter, 50 Mbps validator uplinks, and a 1 Gbps aggregator link. 10% of the validators are offline. Because all validators share two vCPUs, signing is charged as the measured single-core signing time of round-3 Dilithium2 in pqcert (0.42 ms), while the signatures themselves are real FIPS 204 signatures; all aggregator and light-client work runs for real. The aggregator stops collecting at 80% of the stake.
S6.5 Contract Implementation and Tests
Gas was measured with Foundry [50] (forge 1.5.1, solc 0.8.30, Osaka EVM rules). Each attessor registers its expanded ML-DSA-44 key once as an SSTORE2 contract, and its attessor leaf commits to the EXTCODEHASH of that contract, which the vault checks during a dispute. The test vectors are a real certificate over an attessor list of positions ( ), bound in as . Of these, 1024 carry positive weight and the rest have weight zero, which Local never accepts because it requires ; the direct and local verifiers use the same and . The vectors include 872 FIPS 204 signatures produced with the ZKNOX reference signer (in deterministic mode, for reproducible vectors), coins and 130 distinct reveals. Both verifiers accept these FIPS 204 signatures. Before signing , honest validators check that each registered expanded key is the expansion of the committed , and the on-chain check therefore equals ML-DSA.Vf( , ). The 17 tests per verifier also confirm the state machine: a record that fails Local rejects the proposal; a tampered record, a wrong path and a wrong key address supplied by a third party revert without rejecting; finalization waits for open challenges, and a late unanswered challenge rejects; an open-all request is either satisfied or rejects; a rejected epoch can be proposed again; a substituted is rejected; the record count must equal exactly; and a withdrawal is paid only once. The packed verifier of the ZKNOX experimental branch uses an external Keccak-f[1600] helper contract.
S6.6 Gas Accounting and Extrapolation
Table 8 reports transaction-level gas under EIP-7623 [45], , where is the execution gas measured by the test and counts the zero and nonzero calldata bytes. Gas is measured inside Foundry tests, where storage written earlier in a test is warm. All operations fit in one transaction except direct verification, which exceeds the -gas cap [46], and the open-all posting, which is split to respect the 128 KB mempool limit. The key-registration total assumes nonzero calldata bytes. The two verifiers are the NIST-conformant verifier of the ZKNOX main branch and the packed verifier of its experimental branch. The propose and finalize rows of Table 8 sum to , and the single happy-path test measures with either verifier. For direct verification, dividing the exact costs ( and ) by the cap gives 64.2 and 10.6, hence at least 65 and 11 transactions. At with 189 distinct reveals (Table 5), the measured cost per distinct reveal ( NIST, packed) extrapolates to and gas. An open-all posting uses a different serialization from the compact certificate: each of the 193 records carries its signature and two single-leaf paths (4,160 bytes in ABI encoding), for 803,580 bytes in 7 transactions under the 128 KB limit. Its gas is set almost entirely by the calldata floor; execution adds only .
S7 EXTENDED DISCUSSION
This section gives the full version of the discussion in Section 10 of the main paper.
S7.1 Scope of the L1 Assumption
PQ-Vault protects assets against the failure of account-level cryptography. A CRQC that breaks ECDSA also breaks the BLS signatures of Ethereum’s consensus, and Assumption A1 is therefore not implied by our threat model: it assumes that L1 consensus is not attacked, or is restored by a hard fork that preserves contract state [4]. Such an attack is publicly visible and would meet a social response, and after such a fork vault balances remain spendable only through PQ predicates, whereas EOAs need special recovery. For the same reason, validators credit deposits from full L1 nodes, not from BLS-based light clients. Assumption A1 also bounds censorship: must exceed the time for which block producers can be bribed to exclude a challenge, which motivates our seven-day window. Assumption A3 is needed only for transactions that expose an ECDSA key: deposits, initial bindings, and the bonds of relayers and watchers. Private submission channels reduce the exposure. PQ smart accounts for relayers and watchers would remove it.
S7.2 Data Availability and Watcher Incentives
Theorem 19 assumes that one honest watcher is online. Withholding blob data cannot cause a false acceptance (Section 8). Bonds follow from Table 8 for a gas-price ceiling : covers a response, and plus a reward. Open-all requests carry no bond, so withholding cannot drain honest watchers: per proposal, a watcher spends at most one request fee and one bond (Assumption A4), which it recovers with a reward when it exposes a failing record. The price is that anyone can force each proposal to post its records once, which costs the relayer gas against about for the request; relayers must recover this cost through fees, and G4 relies on their doing so. The prototype implements the vault and dispute logic but not the binding registry or the canary, and its reveal rule targets per checkpoint rather than a lifetime budget (Section 6.4). Bonds deter griefing, not theft; safety rests on Assumption A4, and any depositor can watch at about 20 ms per checkpoint (18 ms with round-3 Dilithium2, 21 ms with FIPS 204). A full incentive analysis, including relayer compensation, is left open. Blob (KZG) commitments must never be on the acceptance path (Theorem 17).
S7.3 Public Leader Schedule
QPoS-S fixes and publishes each epoch's leaders when the seed is final. This makes the quantum proof of Theorem 15 possible: freshness rests on one hidden honest secret, and binding is statistical in the QROM. It also reveals each epoch's leaders as soon as the epoch begins, and an adversary with late reveals sees all its candidate schedules. QPoS-S limits both effects. With fallback proposers per slot, an adversary that suppresses honest proposers per slot after seeing the schedule removes the honest proposer only from slots that are not guaranteed: with probability 0.3 per slot at without denial of service and 0.514 with , so and slots suffice for inclusion except with probability (Theorems 11 and 16). Without fallback proposers, a single suppressed leader per slot would halt the sidechain. The stake-weighted random reveal order, keyed by the previous seed, makes late adversarial reveals rare (, Theorem 13). Without denial of service, the target-slot probability at is then at most 0.622, against 0.997 for an adversary that owns the last four reveals, but still above the 0.348 of the single-slot runner-up attack on hash-chain PoS; for it is at most 0.265. Inclusion of honest reveals is proved (Theorem 12), given that the finality gadget finalizes each block of the reveal window within its slot. Instant adaptive corruption, which could seize the last honest revealer once the order is known, is outside our model; corruptions take effect three epochs after they are requested. Hidden schedules need a PQ verifiable random function or secret leader election, whose quantum analysis we leave open. Because PQ-Vault attaches no exclusive role to a slot, a censored or attacked leader delays the sidechain but not certification.
S7.4 Limitations of the Evaluation
The sidechain is analyzed by simulation only. The network experiment emulates WAN latency on shared cores rather than running on geo-distributed hosts, with five rounds per configuration, and we did not inject relayer or data-withholding faults end to end. If the corrupt third abstains and 85% of honest stake signs, and , which enlarges certificates but leaves the optimistic L1 path unchanged. Gas was measured in a local Foundry EVM, not on a public network, and the hash-based baseline was composed from measured components rather than run end to end. Our sidechain relies on a standard BFT finality gadget that we did not re-analyze, and the leader-election bounds assume that the gadget finalizes each block of the reveal window within its slot; inclusion of honest reveals is then proved (Theorem 12). All our bounds hold in the QROM with ML-DSA's internal hash modeled as an independent oracle. A fully succinct PQ acceptance path would prove certificate verification inside a transparent, hash-based proof system; the prototype circuit of [38] for the Dilithium key relation (8,192 multiplication gates, 140 KB proof, 0.7 s proving) indicates that this is feasible but costly today. These are natural targets for future work, together with a formally verified vault contract. Our analysis applies to any EUF-CMA signature scheme. Falcon-512 halves certificate size (Section 9.2) but needs floating-point Gaussian sampling, which is hard to implement in constant time, and SLH-DSA signatures are much larger. Combining certificates with synchronized hash-based multi-signatures [6] is a promising direction.
ACKNOWLEDGMENTS
We thank Saeid Yazdinejad for his simulation work on the design of [18].
REFERENCES
[1] P. W. Shor, "Polynomial-time algorithms for prime factorization and discrete logarithms on a quantum computer," SIAM Journal on Computing, vol. 26, no. 5, pp. 1484–1509, 1997.
[2] D. Aggarwal, G. K. Brennen, T. Lee, M. Santha, and M. Tomamichel, "Quantum attacks on Bitcoin, and how to protect against them," Ledger, vol. 3, Oct. 2018.
[3] I. Stewart, D. Ilie, A. Zamyatin, S. Werner, M. F. Torshizi, and W. J. Knottenbelt, "Committing to quantum resistance: A slow defence for Bitcoin against a fast quantum computing attack," Royal Society Open Science, vol. 5, no. 6, p. 180410, 2018.
[4] V. Buterin, "How to hard-fork to save most users' funds in a quantum emergency," Ethereum Research forum, https://ethresear.ch/t/18901, 2024.
[5] R. Dubois and S. Masson, "EIP-8051: Precompiles for ML-DSA signature verification," Ethereum Improvement Proposals, draft, https://eips.ethereum.org/EIPS/eip-8051, 2025.
[6] J. Drake, D. Khovratovich, M. Kudinov, and B. Wagner, "Hash-based multi-signatures for post-quantum Ethereum," IACR Communications in Cryptology, vol. 2, no. 1, Apr. 2025.
[7] Quantum Resistant Ledger Foundation, "QRL proof-of-stake algorithm," https://www.theqrl.org/features/proof-of-stake/, 2017.
[8] Abelian Foundation, "Abelian: A quantum-resistant cryptocurrency," https://www.abelianfoundation.org, 2019.
[9] A. Holcomb, G. Pereira, B. Das, and M. Mosca, "PQFabric: A permissioned blockchain secure from both classical and quantum attacks," in Proc. IEEE Int. Conf. Blockchain and Cryptocurrency (ICBC), 2021, pp. 1–9.
[10] S. Dolev, B. Guo, J. Niu, and Z. Wang, "SodsBC: A post-quantum by design asynchronous blockchain framework," IEEE Transactions on Dependable and Secure Computing, vol. 21, no. 1, pp. 47–62, 2024.
[11] ZKNOX, "ETHDILITHIUM: ML-DSA verification in Solidity," https://github.com/ZKNoxHQ/ETHDILITHIUM, 2025.
[12] ___,“ETHFALCON: Falcon verification in Solidity,” https://github.com/ZKNoxHQ/ETHFALCON, 2025.
[13] P. Gaži, A. Kiayias, and D. Zindros, "Proof-of-stake sidechains," in Proc. IEEE Symposium on Security and Privacy (S&P), 2019, pp. 139–156.
[14] S. Micali, L. Reyzin, G. Vlachos, R. S. Wahby, and N. Zeldovich, "Compact certificates of collective knowledge," in Proc. IEEE Symposium on Security and Privacy (S&P), 2021, pp. 626–641.
[15] Algorand Foundation, "State proofs," Algorand developer documentation, https://developer.algorand.org/docs/get-details/stateproofs/, 2022.
[16] P. Chaidos and A. Kiayias, "Mithril: Stake-based threshold multisignatures," in Proc. CANS 2024, ser. LNCS, vol. 14905, 2025, pp. 239–263.
[17] T. Xie, J. Zhang, Z. Cheng, F. Zhang, Y. Zhang, Y. Jia, D. Boneh, and D. Song, "zkBridge: Trustless cross-chain bridges made practical," in Proc. ACM SIGSAC Conf. Computer and Communications Security (CCS), 2022, pp. 3003–3017.
[18] H. Khodaiemehr, K. Bagheri, S. Yazdinejad, and C. Feng, "NIROPoK-based post-quantum sidechain design on Ethereum," Cryptology ePrint Archive, Paper 2026/401, 2026.
[19] J. Zhang, T. Xie, Y. Zhang, and D. Song, "Transparent polynomial delegation and its applications to zero knowledge proof," in Proc. IEEE Symposium on Security and Privacy (S&P), 2020, pp. 859–876.
[20] L. K. Grover, "A fast quantum mechanical algorithm for database search," in Proc. 28th Annual ACM Symposium on Theory of Computing (STOC), 1996, pp. 212–219.
[21] H. Khodaiemehr, K. Bagheri, and C. Feng, "PQ-Vault: Code, raw results and reproduction scripts," https://github.com/hassankhodaiemehr/PQ-Vault, 2026.
[22] Abelian Foundation, "Post-quantum zero-knowledge (PQZK) bridge," https://docs.abelian.info/docs/technical-papers/pqzk-bridge/, 2023.
[23] J. Groth, "On the size of pairing-based non-interactive arguments," in Advances in Cryptology – EUROCRYPT 2016, ser. LNCS, vol. 9666, 2016, pp. 305–326.
[24] E. Ben-Sasson, A. Chiesa, and N. Spooner, "Interactive oracle proofs," in Theory of Cryptography Conference (TCC), ser. LNCS, vol. 9986, 2016, pp. 31–60.
[25] N. Fleischhacker, G. Herold, M. Simkin, and Z. Zhang, "Chipmunk: Better synchronized multi-signatures from lattices," in Proc. ACM SIGSAC Conf. Computer and Communications Security (CCS), 2023, pp. 386–400.
[26] H. Kalodner, S. Goldfeder, X. Chen, S. M. Weinberg, and E. W. Felten, "Arbitrum: Scalable, private smart contracts," in Proc. 27th USENIX Security Symposium, 2018, pp. 1353–1370.
[27] Y. Gilad, R. Hemo, S. Micali, G. Vlachos, and N. Zeldovich, "Algorand: Scaling Byzantine agreements for cryptocurrencies," in Proc. 26th ACM Symposium on Operating Systems Principles (SOSP), 2017, pp. 51–68.
[28] B. David, P. Gaži, A. Kiayias, and A. Russell, "Ouroboros Praos: An adaptively-secure, semi-synchronous proof-of-stake blockchain," in Advances in Cryptology – EUROCRYPT 2018, ser. LNCS, vol. 10821, 2018, pp. 66–98.
[29] M. F. Esgin, V. Kuchta, A. Sakzad, R. Steinfeld, Z. Zhang, S. Sun, and S. Chu, "Practical post-quantum few-time verifiable random function with applications to Algorand," in Financial Cryptography and Data Security (FC), ser. LNCS, vol. 12675, 2021, pp. 560–578.
[30] A. Kiayias, A. Russell, B. David, and R. Oliynykov, "Ouroboros: A provably secure proof-of-stake blockchain protocol," in Advances in Cryptology – CRYPTO 2017, ser. LNCS, vol. 10401, 2017, pp. 357–388.
[31] P. Gaži, A. Kiayias, and A. Russell, "Stake-bleeding attacks on proof-of-stake blockchains," in Crypto Valley Conference on Blockchain Technology (CVCBT), 2018, pp. 85–92.
[32] D. Boneh, Ö. Dagdelen, M. Fischlin, A. Lehmann, C. Schaffner, and M. Zhandry, "Random oracles in a quantum world," in Advances in Cryptology – ASIACRYPT 2011, ser. LNCS, vol. 7073, 2011, pp. 41–69.
[33] J. Don, S. Fehr, C. Majenz, and C. Schaffner, "Security of the Fiat-Shamir transformation in the quantum random-oracle model," in Advances in Cryptology – CRYPTO 2019, ser. LNCS, vol. 11693, 2019, pp. 356–383.
[34] A. Chiesa, P. Manohar, and N. Spooner, "Succinct arguments in the quantum random oracle model," in Theory of Cryptography Conference (TCC), ser. LNCS, vol. 11892, 2019, pp. 1–29.
[35] National Institute of Standards and Technology, "Module-lattice-based digital signature standard," NIST, Federal Information Processing Standards Publication FIPS 204, 2024.
[36] L. Ducas, E. Kiltz, T. Lepoint, V. Lyubashevsky, P. Schwabe, G. Seiler, and D. Stehlé, "CRYSTALS-Dilithium: A lattice-based digital signature scheme," IACR Transactions on Cryptographic Hardware and Embedded Systems, vol. 2018, no. 1, pp. 238–268, 2018.
[37] M. Zhandry, "How to record quantum queries, and applications to quantum indifferentiability," in Advances in Cryptology – CRYPTO 2019, ser. LNCS, vol. 11693, 2019, pp. 239–268.
[38] H. Khodaiemehr, K. Bagheri, S. Yazdinejad, and C. Feng, "Post-quantum sidechain prototype for Ethereum," https://github.com/Xm0onh/NIROPoK-PostQuantum-Sidechain, 2025.
[39] V. Buterin, S. Wilson, A. Dietrichs, and lightclient, "EIP-7702: Set code for EOAs," Ethereum Improvement Proposals, no. 7702, https://eips.ethereum.org/EIPS/eip-7702, May 2024.
[40] National Institute of Standards and Technology, "Submission requirements and evaluation criteria for the post-quantum cryptography standardization process," https://csrc.nist.gov/csrc/media/projects/post-quantum-cryptography/documents/call-for-proposals-final-dec-2016.pdf, 2016.
[41] G. Brassard, P. Høyer, and A. Tapp, "Quantum cryptanalysis of hash and claw-free functions," in LATIN'98: Theoretical Informatics, ser. LNCS, vol. 1380. Springer, 1998, pp. 163–169.
[42] P. S. Efraimidis and P. G. Spirakis, "Weighted random sampling with a reservoir," Information Processing Letters, vol. 97, no. 5, pp. 181–185, 2006.
[43] C. H. Bennett, E. Bernstein, G. Brassard, and U. Vazirani, "Strengths and weaknesses of quantum computing," SIAM Journal on Computing, vol. 26, no. 5, pp. 1510–1523, 1997.
[44] B. Wagner et al., "hash-sig: Rust implementation of synchronized hash-based signatures," https://github.com/b-wagn/hash-sig, 2025.
[45] T. Wahrstätter and V. Buterin, "EIP-7623: Increase calldata cost," Ethereum Improvement Proposals, https://eips.ethereum.org/EIPS/eip-7623, 2024.
[46] G. Rebuffo and T. Wahrstätter, "EIP-7825: Transaction gas limit cap," Ethereum Improvement Proposals, no. 7825, https://eips.ethereum.org/EIPS/eip-7825, Nov. 2024.
[47] Algorand, "go-algorand, file config/consensus.go," https://github.com/algorand/go-algorand, 2026.
[48] D. J. Bernstein, "Cost analysis of hash collisions: Will quantum computers make SHARCS obsolete?" in SHARCS'09 Workshop Record, 2009, pp. 105–116.
[49] E. Deirmentzoglou, G. Papakyriakopoulos, and C. Patsakis, "A survey on long-range attacks for proof of stake protocols," IEEE Access, vol. 7, pp. 28712–28725, 2019.
[50] Foundry contributors, "Foundry: Ethereum development toolkit," https://github.com/foundry-rs/foundry, 2025.