§1 · Eliminating Elliptic Curves from Shielded State
Securing transparent wallets with post-quantum lattice keys leaves a fatal structural vulnerability if shielded transfers continue relying on pairing curves or Pedersen commitments over elliptic-curve groups. Geode V2 replaces Halo2/Pasta proving entirely with Plonky3 KoalaBear quintic-extension (D5) hiding-FRI STARKs built over Poseidon2 commitments inside Silica’s shard-0 MVCC ledger.
Selecting this stack required two distinct research phases: first benchmarking six competing post-quantum zero-knowledge proving families (and solving Plonky3’s naive batch-scaling cliff via compact-manifest recursive rollup), and second mapping every entropy ceiling across KoalaBear permutation widths and FRI blowup schedules.
§2 · Comparative ZKP Backend Evaluation
Candidate post-quantum proving architectures were evaluated across an identical 5-operation financial lifecycle (2 Geodize + 2 Slip + 1 Extract + 10 negative admission checks + separate-process cold replay) over Merkle tree depths 4, 8, 16, and 32 (see also the companion engineering write-up):
| Candidate Engine | 5-Op Prove (D4 → D32) | 5-Op Admit (D4 → D32) | Proof Bytes / Op | Architectural Disposition & Selection Rationale |
|---|---|---|---|---|
| Plonky3 Hiding-FRI (Layout 2, Selected) | 2.315 s → 8.75–9.93 s (1T/16T L1 d4: ~2.9 s) | 21.0 → 21.4–26.6 ms (~3.9 ms/op) | 285–348 KB | Selected Core Engine. Fastest L1 admission across every depth, genuine salted hiding, clean AIR expressiveness, and scales sublinearly via compact-manifest recursion (§3). |
| MatRiCT-0.3 (+ Assembled n10 Track) | 0.423 → 0.628 s (Assembled n10: 485.7 ms) | 52.0 → 63.4 ms (~10.3–15.9 ms/op) | 69,829–69,830 B (fixed) | Rejected as L1 Replacement. Deceptively fast only because the tested 0.3 relation checked value/range with host-checked membership (leaving ownership, nullifier correctness, and note-opening equality unproved in ZK), carried a 1/64 RejOp gap and unknown quantum margin, and showed 75–5,574 ms rejection-retry variance on assembled n10 runs. |
| WHIR ( p3-whir 0.9.0-rc.2) | 3.635 → 12.200 s (L1 d4: ~3.0 s) | 63.6 → 68.3 ms | 70–79 KB | Rejected. Attractive 70 KB standalone leaf size, but non-hiding in baseline and fails recursive rollup (FoldedDomainExceedsCapacity on capacity preset; 98–109 s per recursive L2/L3 node under unique decoding). |
| Binius64 | 3.633 → 3.957 s (flat across depth) | 1,177.2 → 1,604.4 ms | 520–536 KB | Rejected. Strong prover scaling at deep trees, but ~180 ms/op verification (~45× slower than Plonky3) and 1.9× prover tail spread choke validator admission. |
Circle-STARK (stwo) | 10.015 → 10.816 s | 702.7 → 837.2 ms | 13.3–13.6 MB | Rejected. Massive ~13.5 MB proof payloads from 32-level folding overhead even on shallow trees. |
| RISC Zero zkVM 3.0.6 | 268.9 → 452.1 s (16T) | 79.3 → 86.1 ms | 224.8 KB | Rejected. General-purpose zkVM SHA-256 cycle cost makes 5-op proving ~62× slower (180.6 s vs 2.89 s on 16 threads; 21.9 min single-thread). |
§3 · Compact-Manifest Recursive Aggregation Specification
Unaggregated Plonky3 hiding spends scale linearly at ~432 KB/tx, exceeding a 192 MiB checkpoint bound near 256 spends (where partial-relation MatRiCT-0.3 fits inside 38.19 MB without full membership proofs). Resolving epoch-level checkpoint scaling while preserving hidden witness bounds establishes three architectural parameters:
- Parallel Recursion Scheduling: Removing single-worker pool pinning across recursive batch layers scales execution from 1.5 to 10.0 host cores (cutting D32 level-1 node proving
20.5 s → 3.7 s). - Salted-Hiding Leaf / Plain Outer Layer Composition: Wallet leaf proofs (
p120-leaf, 606–609 KB) retain full salted-hiding FRI masking, while outer aggregation layers—evaluating only public leaf proofs and statements—run plain FRI layers (p120-layer). Classical estimator margins remain invariant (123 conj / 120 provenbits) while cutting aggregation latency2.2–3.9×, peak RAM1.8–2.9×, and level-5 prove cost76.3 s → 7.9 s. - 25-Field Compact-Manifest Composition: Statement concatenation (
40*Nvalues) exceeds KoalaBear’s2^24two-adicity limit aboveN = 128(17.8 GiB RAM, 22.69 MB root). Replacing concatenated public inputs with an in-circuit 25-field Poseidon2 manifest (checkingcount, amount conservation, and pinned context equality) holds every level flat at degree2^17and ~905 KB root size (30–42 ms verify) across N = 1..256 spends.
| Rollup Batch N | Concat Mode Root / RAM / Degree | 25-Field Compact Manifest Root | Manifest Root Verify | Manifest Peak RAM / Top Degree | Per-Tx Agg Pace |
|---|---|---|---|---|---|
N = 4 | — | 905 KB | 44 ms | 2.4 GiB · 2^17 | 1.33 s/tx |
N = 16 | 3.64 MB · 5.7 GiB · 2^19 | 912 KB | 34 ms | 2.5 GiB · 2^17 | 2.43 s/tx |
N = 64 | 11.84 MB · 16.4 GiB · 2^21 | 907 KB | 30 ms | 2.4 GiB · 2^17 | 2.17 s/tx |
N = 128 | 22.69 MB · 17.8 GiB · 2^22 | 908 KB | 30 ms | 2.5 GiB · 2^17 | 2.12 s/tx |
N = 256 | PANIC (needs 2^23 > 2-adicity) | 905 KB (constant!) | 42 ms total | 2.6 GiB · flat 2^17 | 2.11 s/tx (decreasing!) |
§4 · Exact KoalaBear Entropy Budget & Sponge Bottlenecks
While BabyBear+Keccak (NoteAir / SpendAir, 366 cols, AVX-512 Keccak) gave an initial 128-bit digest baseline, migrating to KoalaBear (p = 2^31 - 2^24 + 1, 357 cols, constrained degree 8) unlocked native recursive arithmetization. A STARK proof’s concrete post-quantum security is governed by the tightest of four entropy bounds:
Quintic Challenge Field (D5): 5 * B = 154.943423 bits | Interactive Union Bound: 5*B - log2(M)
-> M = 272 (59 live perms): 146.856 bits | M = 320 (512 perms): 146.621 bits | Multi-target Grover (T = 2^32): -16 bits
Digest Quantum Collision Ceiling (BHT, digest = d elts): min(d * B, c * B) / 3 | Plonky3 Factory Bounds: d ≤ r and 2*d ≤ w
- Why Width-24 (
W24) Cannot Clear 128-Bit Quantum BHT Collision: BecausePaddingFreeSpongerequiresd ≤ rand binaryTruncatedPermutationrequires2 * d ≤ w, even the symmetric W24 maximum (w=24, r=12, d=12, c=12) caps output BHT collision work at 123.95 bits—4.05 bits short of 128-bit quantum security. Clearing 128 bits under generic BHT forcesd ≥ 13(134.28 bits), requiring widthW32.
§5 · Permutation Width, Digest & FRI Schedule Matrix
Every KoalaBear permutation width (W16 4+20+4 rounds, W24 4+23+4 rounds, W32 4+31+4 rounds) and FRI schedule (b = 2, 3, 4) was evaluated across 170 valid D5 proofs and 430 negative mutations (512 Poseidon2 permutations, Ryzen 7 5800X):
| Profile / FRI Schedule | Classical Est. / Proven | Quantum BHT | Hiding Prove / Audit | Bytes / RSS | Disposition |
|---|---|---|---|---|---|
w16 r8 d8 · b3 q160(Active Geode V2) | 123 bits (<124 cap) | ~82.63 bits | 20.79 / 13.73 ms (Plain: 5.12 / 7.83 ms) | 444.4 KiB (Plain: 230.9 KiB) | Active Testnet / Production. Disclosed sub-124-bit classical / ~82.6-bit BHT until W32 rollout. |
w24 r10 d10 · b2 q220 | 132 / 132 bits | 103.30 bits | 16.56 / 24.45 ms | 688,182 B · 17.7 MiB | Lowest RSS & fastest prover; +23.5% bytes & slower verifier. |
w24 r10 d10 · b3 q160 | 131 / 131 bits | 103.30 bits | 29.26 / 20.12 ms | 557,023 B · 25.5 MiB | Balanced FRI knob profile (promoted to W32 for PQ target). |
w24 r10 d10 · b4 q110/120 | 130 conj / 119 proven | 103.30 bits | 53.55–65.42 / 16.09–17.28 ms | 430,705–463,765 B | Rejected for 128-bit Proven Security. Proven FRI soundness drops to 119 bits. |
w32 r19 d13 · b3 q160 | >128 bits | 134.28 bits | 31.83 / 22.21 ms | 665.0 KiB | Selected Upgrade Target. Smallest factory profile clearing 128-bit BHT & capacity. |
§6 · Active Geode V2 Production Architecture, MVCC & Public RPC
In active production execution (src/execution/geode.rs), Geode V2 uses proved lane projection to shrink Stage-B expanded 2n+4 Poseidon2 round cubes to an n-round degree-2 consistency reduction (32× fewer logical trace cells, 40-value GEODEKB1 public instance), accelerating 59-permutation proving 4.0×–4.28× (336.34 ms → 83.99 ms; strict verify 16.27 ms, authoritative root verify 2.47 ms) directly inside shard-0 atomic MVCC transactions.
geode_context, geode_notes [1–128 ML-KEM+AEAD items], geode_nullifiers, geode_submit [GEODETX2]) leak no wallet query patterns.
§7 · Cryptographic Disclosure, Statement of Work & Verification
- Active Production Margin vs. Research Rollup Track: Active shard-0
Geode V2deploys KoalaBearD5with width-16 8-element Poseidon2 digests (< 124 bitsclassical collision cap,~82.63-bitBHT ceiling). Both thew32 r19 d13upgrade (134.28-bit BHT) and live protocol activation of the 25-field compact-manifest recursive rollup (removing40*Nstatement concatenation for 256-spend blocks) remain open milestones prior to uncapped private value. - Outer Funding Coverage: Public
Geodizedebits currently require a registeredML-DSA-44outer account owner; FN-DSA-1024 and ML-DSA-65/87 outer funding support is staged separately.
| Statement of Work Deliverable | Status | Verification Evidence |
|---|---|---|
| Geode V2 Proved Lane Projection & Shard-0 Atomic MVCC Transitions | Delivered | cargo test --lib execution::geode:: passes 5/5 tests (4.96 s), including full-capacity zero-liability exit & crash rollback |
| Six-Engine Shielded Lifecycle Benchmark Matrix (D4..D32) & MatRiCT Audit | Delivered | 72/72 full matrix lifecycles verified; MatRiCT statement-substitution flaw & partial membership gaps documented |
| 25-Field Compact-Manifest Rollup Research Prototype (N = 1..256 Spends) | Delivered (Research) | 905 KB constant root / 42 ms verify at N = 256; 13 leak-validation tests + 7 root fuzz + 6 manifest negative tests passing |
W32r19d13 Sponge Migration, Production Manifest Wireup & 3rd-Party Audit | Open / Gated | Required to raise BHT collision work from 82.6 bits to 134.3 bits and move compact manifest from research into live node consensus |
References: Szepieniec et al., Poseidon2 (ePrint 2023/323); Ben-Sasson et al., FRI (ePrint 2022/734); Block & Haböck, Soundness of STARKs and FRI Over Small Fields (ePrint 2025/731, 2025/2055); Esgin et al., MatRiCT: Efficient, Scalable and Post-Quantum Blockchain Confidential Transactions (CCS 2019).