POST-QUANTUM FIRST (FIPS 204 ML-DSA) · TEPHRA GOSSIP-ABOUT-GOSSIP FINALITY · GEODE KOALABEAR STARK PRIVACY
← SPR Registry · SPR-003 Academic / Custom PQ Research Active (Production Testnet)

Geode V2 Shielded State (KoalaBear D5 Hiding-FRI STARKs)

Abstract — Zero-setup, pairing-free shielded note commitments executing atomically inside Silica’s shard-0 MVCC state transition using Plonky3 KoalaBear quintic-extension (D5) hiding-FRI STARKs.

Document / Authors
SPR-003 · Silica Protocol Engineering
Updated 2026-11-19 · Shielded State & Privacy
Standards & Deployment
Academic / Custom PQ Research
Active (Production Testnet)
Audit & Source Scope
External Audit Pending (Unaudit Parameter Disclosure)
silica-pq-proofs · silica-geode-koalabear · execution::geode

§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):

Figure 1 — Five-Operation Shielded Lifecycle Admission / Verification Cost (Depth 16, Lower is Faster)
Full-relation post-quantum verifier latency across 5 operations (critical bottleneck for L1 block validators)
Plonky3 Hiding-FRI (Layout 2, Selected) (305–321 KB proof · 4.195 s 5-op prove · full hidden membership & nullifier) 18.3 ms (5 ops) / 3.9 ms per op
MatRiCT-0.3 Partial Relation (Rejected) (69,829 B fixed proof · 0.449 s prove · value-only w/ host-checked membership) 52.0 ms (5 ops) · ~10.3 ms/op
WHIR 0.9.0-rc.2 (Rejected for Rollup) (73.8–75.1 KB proof · collapses in recursive layers (FoldedDomainExceedsCapacity)) 63.6 ms (5 ops) / 10.6 ms per op
RISC Zero zkVM 3.0.6 (Rejected) (224.8 KB receipt · 268.9 s (62× slower) proving dominated by SHA-256) 79.3 ms (5 ops) · ~15 ms/op
Circle-STARK / Stwo (Rejected) (13.3–13.6 MB per proof; folds 32 levels at every depth) 837.2 ms (5 ops)
Binius64 (Rejected — Verify Cost) (528.3 KB fixed proof · 4.64 s prove · ~45× slower L1 admit than Plonky3) 1,494.3 ms (5 ops) / ~191 ms/op
Measured across matched 3-sample sweeps (depth 4..32). Only Plonky3 combines <4 ms per-op verification with full hidden-membership zero knowledge and viable recursion.
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 proven bits) while cutting aggregation latency 2.2–3.9×, peak RAM 1.8–2.9×, and level-5 prove cost 76.3 s → 7.9 s.
  • 25-Field Compact-Manifest Composition: Statement concatenation (40*N values) exceeds KoalaBear’s 2^24 two-adicity limit above N = 128 (17.8 GiB RAM, 22.69 MB root). Replacing concatenated public inputs with an in-circuit 25-field Poseidon2 manifest (checking count, amount conservation, and pinned context equality) holds every level flat at degree 2^17 and ~905 KB root size (30–42 ms verify) across N = 1..256 spends.
Figure 2 — 256-Spend Epoch Scaling: Naive Plonky3 vs. Concat Recursion vs. Compact Manifest
Amortized final checkpoint size & verification cost per spend at depth 16–32 (KoalaBear D5 p120 profile)
Unaggregated Plonky3 Hiding Batch (256 Spends) (~432 KB/tx · ~1,000 ms+ sum verify · flat 361 MiB RSS) ~224 MB projected (FAILS 192 MiB cap)
MatRiCT-0.3 Unaggregated (256 Spends, Partial) (Passes 192 MiB cap, but lacks ZK membership/ownership proof) 38.19 MB total (~74.6 KB / 10.3 ms per tx)
Plonky3 Concat Recursion (Maxed at N = 128) (17.8 GiB RAM · panics at N = 256 (exceeds 2^24 two-adicity)) 22.69 MB root at N = 128 (268 ms verify)
Plonky3 25-Field Compact Manifest (N = 256 Spends!) (42 ms total root verify · flat 2.4–2.6 GiB RAM · degree flat at 2^17) 905 KB TOTAL root (~3.5 KB / ~0.16 ms per spend!)
With compact manifest recursion, verifying a 256-spend Plonky3 aggregate takes 42 ms total in 905 KB (~3.5 KB & ~0.16 ms/tx)—beating even unaggregated MatRiCT by >20× on verifier bytes and >60× on verifier CPU.
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:

Base Prime: p = 2^31 - 2^24 + 1 = 2,130,706,433 (B = 30.988685 bits/elt)
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: Because PaddingFreeSponge requires d ≤ r and binary TruncatedPermutation requires 2 * 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 forces d ≥ 13 (134.28 bits), requiring width W32.

§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):

Figure 3 — Quantum Collision (BHT) Ceiling vs. Proving Latency Across Sponge Widths
All configurations run D5 challenges at hiding blowup b = 3, queries q = 160, 0 PoW bits, 8 hiding codewords
w16 r8 d8 (Active Geode V2 Production) (<124-bit classical collision cap; 59-perm projected latency ~83.99 ms) 82.6-bit QC · 20.79 ms prove · 444.4 KiB
w24 r11 d9 (Rejected — Weak Digest) (Insufficient BHT margin despite W24 permutation) 92.97-bit QC · 27.23 ms prove · 517.5 KiB
w24 r10 d10 (Baseline W24 Study) (131-bit classical P3 estimate; 103.3-bit BHT quantum ceiling) 103.30-bit QC · 29.26 ms prove · 543.7 KiB
w24 r12 d12 (W24 Theoretical Max) (Hits 2d <= w ceiling 4.05 bits below 128-bit quantum target) 123.95-bit QC · 27.48 ms prove · 588.0 KiB
w32 r19 d13 (Recommended PQ Target) (Clears 128-bit BHT & capacity (+8.8% prove, +22.3% bytes vs w24r10d10)) 134.28-bit QC · 31.83 ms prove · 665.0 KiB
w32 r16 d16 (Symmetric Max W32) (Full 165-bit capacity & BHT collision (+32.5% prove time)) 165.27-bit QC · 38.78 ms prove · 747.3 KiB
W32r19d13 clears 128-bit quantum collision work for <9% extra prove latency relative to W24r10d10. Packed-trace variants accelerate low-perm verify ~3.2–3.4× at ~3× prover RSS and 2 bits lower proven soundness (131 -> 129).
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.

Figure 4 — Shielded Lifecycle Operations Inside Atomic Shard-0 MVCC State
GEODIZE (Shield) Public: − gross, +1 nonce Reserve: + gross − fee Outputs: 2 sealed notes Auth: ML-DSA-44 intent SLIP (Private Transfer) Public: unchanged (sentinel) Reserve: − levy fee Outputs: 2 sealed notes Nullifiers: 2 consumed PARTIAL EXTRACT Recipient: + withdrawal Reserve: − withdrawal − fee Outputs: 1 change note Enforces context binding FULL EXTRACT Recipient: + withdrawal Reserve: − withdrawal − fee Outputs: 0 appended notes Proven full_exit_change=0
Depth-32 trees cap each epoch at 65,536 notes and 65,536 spends; spent nullifiers pack into sorted leaf pages (≤ 256/leaf, splitting at 257). Public-only sync endpoints (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 V2 deploys KoalaBear D5 with width-16 8-element Poseidon2 digests (< 124 bits classical collision cap, ~82.63-bit BHT ceiling). Both the w32 r19 d13 upgrade (134.28-bit BHT) and live protocol activation of the 25-field compact-manifest recursive rollup (removing 40*N statement concatenation for 256-spend blocks) remain open milestones prior to uncapped private value.
  • Outer Funding Coverage: Public Geodize debits currently require a registered ML-DSA-44 outer 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).

All SPR Specifications ↗