POST-QUANTUM FIRST (FIPS 204 ML-DSA) · TEPHRA GOSSIP-ABOUT-GOSSIP FINALITY · GEODE KOALABEAR STARK PRIVACY
← Back to Engineering Blog · Zero-Knowledge Privacy Custom PQ STARK · External Audit Pending

Geode V2: Shielded State with KoalaBear D5 Hiding-FRI STARKs

Why Silica replaced Halo2/Pasta with Plonky3 KoalaBear quintic-extension hiding-FRI STARKs, how atomic shard-0 settlement works, current parameter status, and prover benchmarks.

Silica Engineering · November 19, 2026 · 7 min read · SPR-003

What We Built & Why

Using post-quantum signatures on transparent accounts solves only half of a chain’s cryptographic surface if the shielded privacy pool still relies on elliptic curves. Early Silica privacy prototypes used Halo2 over Pasta curves—an unacceptable split where quantum-resistant accounts sat beside discrete-log-dependent shielded notes.

Geode V2 removes Halo2, Pasta curves, and classical bridge admission entirely. It builds shielded balances on Plonky3 KoalaBear quintic-extension (D5) arithmetic, Poseidon2 hashing, and hiding-FRI STARKs—requiring no trusted setup and no elliptic-curve pairings.

Geode V2 Wire & Proof Identifiers:

  • GEODEKB1 — Inner KoalaBear D5 hiding-FRI STARK proof with a 40-value public instance bound into the challenger transcript
  • GEODETX2 — Node-facing transaction envelope verified before Tephra ingress and MVCC settlement
  • GEODEPI1 — Verifiable public-input codec for stateless verification tasks

Single-Ledger Atomic Settlement

Geode executes directly inside Silica’s shard-0 MVCC state batch rather than as an external sidecar or asynchronous rollup. Public balance debits/credits, shielded reserve accounting, transaction fees, note tree appends, and spent nullifiers commit atomically in one RocksDB write batch:

Operation Public User Accounts Private Reserve Appended Notes
Geodize Source − gross; native nonce consumed + gross − fee 2 sealed private outputs
Slip Unchanged (system sentinel outer sender) − fee 2 sealed private outputs
Partial Extract Recipient + withdrawal − withdrawal − fee 1 private change note
Full Extract Recipient + withdrawal − withdrawal − fee 0 (proven zero-change marker)

Each active epoch tree has depth 32 and is capped at 65,536 appended notes and 65,536 spends. Spent nullifiers live in sorted leaf pages (max 256 markers per leaf, splitting at 257) so state values fit cleanly within storage limits. An epoch retires and resets only when shielded liability reaches zero.

To avoid leaking wallet membership via RPC traffic, node endpoints expose strictly public data: geode_context (active profile and bounds), geode_notes (1–128 root-pinned sealed deliveries for local wallet scanning), geode_nullifiers (paginated spent markers), and geode_submit.

Production & Security Posture

Explicit Parameter & Audit Disclosure:

  • Standardization: Geode V2 uses custom Plonky3 KoalaBear D5 Hiding-FRI parameters rather than a finalized NIST ZK standard (no finalized ZK standard exists).
  • Security Margin: The current profile provides an estimated ~121-bit classical leaf bound and ~248-bit Poseidon2 digest/sponge capacity. Full 128-bit-class post-quantum QROM composition review and external third-party circuit audit remain open before raising security-level claims.
  • Account Coverage: Geodize public funding currently requires a registered ML-DSA-44 outer account; expanding public funding to ML-DSA-65/87 and FN-DSA-1024 is staged separately.

Measured Benchmarks & Proved Lane Projection

Evaluating a quintic extension STARK (154.94-bit algebraic structure over the 31-bit KoalaBear field) inflates trace cost if executed naively. By replacing the expanded permutation cube with a degree-2 proved lane consistency reduction, Geode shrinks logical cells by 32×:

Metric Baseline Expanded Trace Proved Lane Projection Observed Gain
Proving Time (Median, 59 permutations) 336.34 ms 83.99 ms ~4.0× faster proving
Strict Verification — 16.27 ms Full statement re-hash
Authoritative Verification — 2.47 ms 6.6× faster with trusted root
Logical Trace Cells 1× 1/32× 32× trace compression
Geode V2 Proving & Verification Latency
KoalaBear D5 Hiding-FRI across 59 Poseidon2 permutations
Expanded Trace Proving (Baseline) 336.34 ms
Proved Lane Projection 83.99 ms (~4× faster)
Strict Verification 16.27 ms
Authoritative Verification 2.47 ms (6.6× faster)

The Six-Engine Benchmark Race & How Compact Rollup Saved Plonky3

Choosing KoalaBear D5 Plonky3 was anything but automatic. We built a uniform 5-operation benchmark harness (2 Geodize + 2 Slip + 1 Extract + 10 adversarial rejection gates + cold out-of-process replay) across depths 4, 8, 16, and 32 and ran six completely different post-quantum ZKP backends head-to-head:

  • RISC Zero zkVM 3.0.6: Clean 224.8 KB fixed receipts and ~15 ms verification, but SHA-256 zkVM proving took 268.9–452.1 s for 5 ops on 16 threads (~62× slower than Plonky3).
  • Binius64: Nearly flat proving time across Merkle depth (3.63–3.96 s for 5 ops), but ~180 ms per-op admission (~45× slower L1 verify than Plonky3) and 1.9× prover tail spread.
  • Circle-STARK (stwo): Diagnostic 32-level folding inflated proofs to 13.3–13.6 MB each with ~700–837 ms 5-op verification.
  • WHIR (p3-whir): Compact 70–79 KB leaf proofs and ~10.6 ms verify, but collapsed inside recursive aggregation (FoldedDomainExceedsCapacity on capacity presets and 98–109 s per recursive L2/L3 node under unique decoding).
  • MatRiCT (matrict-0.3 / n10): Looked dangerously close—proving 5 ops in 0.42–0.63 s with fixed 69,829 B proofs! In naive unaggregated 256-spend batches, MatRiCT fit comfortably in a 38.2 MB checkpoint while naive unaggregated Plonky3 hit our 192 MiB limit (~224 MB projected).

Looking closer disqualified MatRiCT as an L1 replacement: the fast 0.3 prototype proved only the value subrelation with host-checked Merkle membership (leaving note ownership, membership, and nullifier equality outside zero knowledge), carried an unresolved 1/64 rejection-argument gap and unknown quantum margin, and showed 75–5,574 ms rejection-retry variance on assembled n10 runs. Still, MatRiCT proved why Plonky3 needed real batch scaling.

256-Spend Epoch Scaling: Naive Batching vs. Compact-Manifest Rollup
Amortized per-spend size and verification cost across Plonky3 recursion milestones (KoalaBear D5 p120 profile)
Naive Unaggregated Plonky3 (256 Spends) ~224 MB total (~432 KB/tx · FAILS 192 MiB cap)
MatRiCT-0.3 Unaggregated (Partial Relation) 38.19 MB total (~74.6 KB / 10.3 ms per tx)
Concat Recursion (Capped at N = 128) 22.69 MB root (268 ms verify · panics at N = 256)
25-Field Compact Manifest Rollup (N = 256!) (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 tx!)

Three engineering breakthroughs closed the gap and beat even MatRiCT’s raw wire footprint by an order of magnitude:

  1. Multi-core recursive scheduling: Removing a pinned single-worker Rayon pool inside hiding batch proofs boosted utilization from 1.5 to 10.0 cores and cut D32 level-1 proving 5.5× (20.5 s → 3.7 s).
  2. Hiding wallet leaves + plain recursive layers: Keeping full salted hiding FRI on wallet leaves while switching public outer recursion layers to plain FRI preserved 123 conjectured / 120 proven classical bits while cutting level-5 proving from 76.3 s to 7.9 s.
  3. 25-field compact manifest statement: Concatenating 40*N public values blew peak RAM to 17.8 GiB and panicked above N = 128 when tables exceeded KoalaBear’s 2^24 two-adicity. Hashing child transitions into a 25-field Poseidon2 manifest pinned every tree level flat at degree 2^17 and 2.4–2.6 GiB RAM—yielding a constant ~905 KB root proof verified in 42 ms total for all 256 spends.

Sizing KoalaBear Entropy Bits: Why W16 Is Active and W32 Is Next

While D5 lifts algebraic challenge soundness to 154.94 bits (146.6–146.9 bits after union bounds), Merkle sponge collision resistance obeys Plonky3 factory constraints d ≤ r and 2d ≤ w. Even the maximum width-24 profile (w24 r12 d12) hits a quantum BHT collision wall at 123.95 bits—4.05 bits short of 128. Live Geode V2 runs width-16 (w16 r8 d8, <124 classical / ~82.6 BHT) for maximum speed today, with a clean characterized migration path to w32 r19 d13 (134.28-bit BHT) for +8.8% proving cost once audit hardening lands. Full equations and width/FRI benchmarks live in SPR-003.

Related Silica Protocol Research (SPR) Specifications