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 transcriptGEODETX2— Node-facing transaction envelope verified before Tephra ingress and MVCC settlementGEODEPI1— 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:
Geodizepublic funding currently requires a registeredML-DSA-44outer account; expanding public funding toML-DSA-65/87andFN-DSA-1024is 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 |
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 (FoldedDomainExceedsCapacityon 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.
Three engineering breakthroughs closed the gap and beat even MatRiCT’s raw wire footprint by an order of magnitude:
- 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). - 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.
- 25-field compact manifest statement: Concatenating
40*Npublic values blew peak RAM to 17.8 GiB and panicked aboveN = 128when tables exceeded KoalaBear’s2^24two-adicity. Hashing child transitions into a 25-field Poseidon2 manifest pinned every tree level flat at degree2^17and 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.