POST-QUANTUM FIRST (FIPS 204 ML-DSA) · TEPHRA GOSSIP-ABOUT-GOSSIP FINALITY · GEODE KOALABEAR STARK PRIVACY
← Back to Engineering Blog · Consensus & Randomness Kate et al. C1 · Pure Rust · Audit Pending

Pure-Rust PQ-PVSS: Lattice-IBE Threshold Randomness in Practice

Why Silica built a clean-room pure-Rust Post-Quantum Publicly Verifiable Secret Sharing beacon (Kate et al. C1), how it eliminates withholding bias, and live n=100 benchmarks.

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

What We Built & Why

Replacing elliptic-curve VRFs and BLS threshold signatures removes quantum key-recovery exposure, but introduces a subtler consensus threat in naive commit-and-reveal beacons: last-revealer withholding bias. Once k − 1 participants reveal their secrets, the last participant can compute the final beacon output locally before choosing whether to publish or abort. Furthermore, randomized lattice signatures (ML-DSA or FN-DSA) are not VRF outputs because signers can resample signature nonces until a favorable seed emerges.

To close withholding bias without pairing curves or C-FFI dependencies, Silica implemented a clean-room, pure-Rust (#![forbid(unsafe_code)], dual MIT/Apache-2.0) Post-Quantum Publicly Verifiable Secret Sharing (PQ-PVSS) crate (silica-pqpvss) following Kate et al. C1 (ePrint 2026/813) and wired it directly into Silica’s consensus scheduler, router, and durable epoch storage.

How the Beacon Works

  • Identity-Bound Committee Registration: For each epoch, participating validators generate fresh NTRU-IBE master keypairs (3,712 B MasterPublicKey) and sign their registration under their native consensus identity key bound to (chain_context_hash, epoch, validator).
  • Encrypted Dealing & Fiat–Shamir DZK Proofs: Dealers split a 256-bit secret over F_p (p = 2^255 - 19), encrypt each committee member’s share using 1024-D NTRU-IBE over Z_q[X]/(X^1024 + 1) (q = 2^29), and attach a SHAKE256-committed distributed zero-knowledge proof bound to the exact committee roster and epoch context (SILPVSS2, 453,376 B payload at n = 100, deg = 67).
  • Pre-Freeze Complaint Adjudication: Before freezing the surviving dealer set, any validator whose share fails consistency submits their key-bound SILISK01 decryption token; valid complaints disqualify cheating dealers before freeze, while forged or mismatched complaints fail closed (KeyNotBound).
  • Threshold Opening & Self-Verifying Sync: Once a frozen dealer accumulates threshold verified 100-byte ShareOpening proofs, all surviving secrets are reconstructed via Lagrange interpolation and domain-mixed into the finalized RandomnessRecord. Finalized bundles are stored alongside their transcripts so syncing peers re-verify every registration and opening cryptographically instead of trusting donor claims.
  • Forward Secrecy & Crash Continuity: Local epoch keystores (SILPVKS1 wrapping zeroized SILMSK01 secrets) persist for mid-epoch restart recovery and are wiped from memory and deleted from storage when an epoch terminates or rolls over.

Production & Standards Posture

Cryptographic & Activation Disclosure:

  • Standardization: Research-based construction (Kate et al. C1, ePrint 2026/813) — no NIST standard exists for post-quantum PVSS.
  • Parameter Margin: Follows the paper’s N = 1024, q = 2^29 profile (~110-bit estimated lattice security margin). External third-party constant-time and cryptanalytic review of discrete Gaussian master-key sampling and tower extraction remains open.
  • Network Status: Pure-Rust silica-pqpvss is wired into protocol consensus, authenticated peer sync, and router DoS rate-limiting behind an explicit operator activation switch (disabled nodes neither serve nor adopt PQ-PVSS sync proofs).

Measured Benchmarks (n = 100, threshold = 68)

Measured directly in --release via silica-pqpvss’s 100-validator probe (beacon_n100_probe) across real 1024-D NTRU keys and full SILPVSS2 serialization:

Operation (n = 100, t = 68 / deg = 67) Measured Time / Size Notes
Deal + DZK Proof Generation 21.88 ms Per dealer deal (down from 192 ms in early prototype ports)
Verify All 100 Openings 3.11 ms Batch verification of all 100 100-byte opening proofs
Threshold Reconstruction (68 shares) 5.11 ms Lagrange interpolation over F_238
Share Extraction + Decrypt ~5.70 ms / share (570.26 ms × 100) Each validator extracts only its own share per dealer
Epoch Keypair Generation ~404 ms avg (40.45 s for 100 keys) Amortized once per epoch per validator (102 total attempts)
Wire Footprint 453,376 B payload / 453,477 B framed Plus 3,712 B MPK and 100 B per ShareOpening
Pure-Rust PQ-PVSS Phase Latencies (n = 100, t = 68)
Release build timings via silica-pqpvss beacon_n100_probe (excluding 1-time epoch keygen)
Dealer Deal + DZK Proof 21.88 ms
Share Extract + Decrypt (Single Validator) ~5.70 ms
Lagrange Threshold Reconstruct (68 Shares) 5.11 ms
Verify All 100 Share Openings 3.11 ms

The Hardening Regression & 6× Recovery Arc

Shipping a genuinely clean-room Rust PQ-PVSS beacon did not follow a straight downward latency curve. The original C++/NTL FFI prototype baseline required 920.91 s for 100 keypairs (9.21 s/key) and 191.93 ms per deal—while carrying incompatible CeCILL-2.1 C dependencies. An initial pure-Rust draft cut keygen to 21.18 s and 100-share batch extraction to 829.74 ms, but relied on key-generation shortcuts.

When we hardened keygen and GPV extraction to full 1,024-dimensional isotropic discrete Gaussian sampling (D_{Z, sigma=512}^1024) plus exact cyclotomic H(X)^-1 Stage-2 projection, compute temporarily regressed heavily: 100-key generation doubled to 46.01 s, and batch extraction spiked ~3.5× to 2,895.87 ms (6.0× slower than final target). Eliminating per-call heap allocations in negacyclic Karatsuba multiplication, moving tower reduction into register-resident 52-bit i64/i128 fixed-point arithmetic, and caching the precomputed Graeffe adjugate H^-1 operator inside MasterSecretKey delivered a 6.0× extraction speedup (to 483.43 ms in the research crate and 570.26 ms in full consensus protocol checks)—finishing 22.8× faster on keygen, 8.8× faster on dealing, and 30.1× faster on opening verification than the original C-FFI port.

PQ-PVSS 100-Share Batch Extraction Milestone Progression
Initial Rust draft -> Isotropic 1024D + Full H^-1 hardening regression -> Zero-alloc Karatsuba & Stage-2 reuse
Initial Pure-Rust Draft (Pre-Isotropic) 829.74 ms
Full Isotropic 1024D + H^-1 (Regression) 2,895.87 ms (~3.5× slower)
Zero-Alloc Karatsuba + Stage-2 Reuse 483.43 ms (6.0× speedup)
Protocol Production Crate (--release) 570.26 ms (5.70 ms/share)

Test verification stands at 98/98 passing in silica-pqpvss (97 unit tests + 1 full 100-validator lifecycle e2e) and 19/19 passing in vrf::pq_pvss::tests (4-node ABFT epoch completion, restart persistence, automatic lag recovery via authenticated proof sync, and router DoS rate-limiting). Formal specification and byte layouts are tracked in SPR-005.

Related Silica Protocol Research (SPR) Specifications