Paper 2025/1741

Full L1 On-Chain ZK-STARK+PQC Verification on Solana: A Measurement Study

Jotaro Yano
Abstract

Blockchains preserve public data indefinitely, creating tension between verifiability today and secrecy decades hence. In particular, pairing-based SNARKs (e.g., Groth16, PLONK) rely on discrete-log assumptions that are structurally vulnerable to Shor-type quantum attacks, motivating hash-based alternatives. This work investigates whether a fully on-chain pipeline that verifies both a ZK-STARK and a post-quantum signature can operate within Solana L1's compute and memory constraints. Our prototype adapts Winterfell 0.12 with a dedicated SHA-256 hashv syscall path to reduce hashing overhead, suppresses inlining in FRI hotspots to respect SBF (Solana BPF) stack limits, and uses a custom bump allocator synchronized with requested heap frames. Artifacts are uploaded in ≤900 byte chunks under a rolling hash chain and finalized in two steps: (i) SLH-DSA (SPHINCS+) signature verification over a length-delimited transcript, and (ii) STARK verification bound to SHA256(cipher) via public inputs. The result is an L1 verifier that is CPI-friendly, reproducible from a public repository, and engineered for predictable cost. On devnet, across n=100 runs, we measure mean finalize_sig cost of 5.01×10^5 CU (median 4.999×10^5) and mean verify_stark cost of 1.10×10^6 CU (median 1.11×10^6), with maxima below 1.19×10^6 CU; all runs fit within Solana's 1.4×10^6 CU transaction budget. At representative sizes, the derived intensities are ≈63.8 CU/Sig-byte (7,856 B) and ≈248.9 CU/Proof-byte (4,437 B), and verification scales approximately linearly with proof bytes under a fixed FRI policy. We systematize DoS and fee controls (fixed-offset appends, rolling-hash checks), justify the binding of public inputs to the ciphertext, and outline engineering levers (single-call hashing, stack discipline, phase separation) that make full L1 STARK+PQC verification practical at ≈128-bit settings.

Metadata
Available format(s)
PDF
Category
Implementation
Publication info
Preprint.
Keywords
SolanaZero-Knowledge proofSTARKPost-Quantum CryptographySLH-DSA (SPHINCS+)ML-KEM (Kyber)On-Chain Verification
Contact author(s)
jotaro yano @ jotaro-yano org
History
2025-09-24: approved
2025-09-23: received
See all versions
Short URL
https://ia.cr/2025/1741
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/1741,
      author = {Jotaro Yano},
      title = {Full L1 On-Chain {ZK}-{STARK}+{PQC} Verification on Solana: A Measurement Study},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1741},
      year = {2025},
      url = {https://eprint.iacr.org/2025/1741}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.