Paper 2024/1970

Scribe: Low-memory SNARKs via Read-Write Streaming

Anubhav Baweja, University of Pennsylvania
Pratyush Mishra, University of Pennsylvania
Tushar Mopuri, University of Pennsylvania
Karan Newatia, University of Pennsylvania
Steve Wang, University of Pennsylvania
Abstract

Succinct non-interactive arguments of knowledge (SNARKs) enable a prover to produce a short and efficiently verifiable proof of the validity of an arbitrary NP statement. Recent constructions of efficient SNARKs have led to interest in using them for a wide range of applications, but unfortunately, deployment of SNARKs in these applications faces a key bottleneck: SNARK provers require a prohibitive amount of time and memory to generate proofs for even moderately large statements. While there has been progress in reducing prover time, prover memory remains an issue. In this work, we describe Scribe, a new low-memory SNARK that can efficiently prove large statements even on cheap consumer devices such as smartphones by leveraging a plentiful, but heretofore unutilized, resource: disk storage. In more detail, instead of storing its (large) intermediate state in RAM, Scribe's prover instead stores it on disk. To ensure that accesses to state are efficient, we design Scribe's prover in a *read-write streaming* model of computation that allows the prover to read and modify its state only in a streaming manner. We implement and evaluate Scribe's prover, and show that, on commodity hardware, it can easily scale to circuits of size $2^{28}$ gates while using only 2GB of memory and incurring only minimal proving latency overhead (10-35%) compared to a state-of-the-art memory-intensive baseline (HyperPlonk [EUROCRYPT 2023]) that requires much more memory. Our implementation minimizes overhead by leveraging the streaming access pattern to enable several systems optimizations that together mask I/O costs.

Metadata
Available format(s)
PDF
Category
Cryptographic protocols
Publication info
Preprint.
Keywords
SNARKsuccinct argumentsstreaming
Contact author(s)
abaweja @ seas upenn edu
prat @ seas upenn edu
tmopuri @ seas upenn edu
knewatia @ seas upenn edu
qwang97 @ seas upenn edu
History
2024-12-06: approved
2024-12-05: received
See all versions
Short URL
https://ia.cr/2024/1970
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2024/1970,
      author = {Anubhav Baweja and Pratyush Mishra and Tushar Mopuri and Karan Newatia and Steve Wang},
      title = {Scribe: Low-memory {SNARKs} via Read-Write Streaming},
      howpublished = {Cryptology {ePrint} Archive, Paper 2024/1970},
      year = {2024},
      url = {https://eprint.iacr.org/2024/1970}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.