Paper 2025/1849

CoBBl: Dynamic constraint generation for SNARKs

Kunming Jiang, Carnegie Mellon University
Fraser Brown, Carnegie Mellon University
Riad S. Wahby, Carnegie Mellon University
Abstract

General-purpose probabilistic proof systems operate on programs expressed as systems of arithmetic constraints—an unfriendly representation. There are two broad approaches in the literature to turning friendlier, high-level programs into constraints suitable for proof systems: direct translation and CPU emulation. Direct translators compile a program into highly optimized constraints; unfortunately, this process requires expressing all possible paths through the program, which results in compile times that scale with the program’s runtime rather than its size. In addition, the prover must pay the cost of every possible program path, even those untaken by a given input. In contrast, CPU emulators don’t compile programs to constraints; instead, they “execute” those programs, expressed as CPU instructions, on a CPU emulator that is itself expressed as constraints. As a result, this approach can’t perform powerful, program-specific op- timizations, and may require thousands of constraints where direct translation could use a clever handful. Worse, CPU emulators inherit an impractically expensive program state representation from the CPUs they emulate. This paper presents a compiler and proof system, CoBBl, that combines the benefits of CPU emulation and direct translation: it takes advantage of program-specific optimizations, but doesn’t pay for an unnecessary state representation or unexecuted computation. COBBL outper- forms CirC, a state-of-the-art direct translator, by $1–30\times$ on compile time and $26–350\times$ on prover time, and outperforms Jolt, a state-of-the-art CPU emulator, on prover time by $1.1– 1.8\times$ on Jolt-friendly benchmarks, and up to $100\times$ on other benchmarks.

Metadata
Available format(s)
PDF
Category
Cryptographic protocols
Publication info
Published elsewhere. IEEE S&P 2025
DOI
10.1109/SP61157.2025.00200
Keywords
SNARKcompilerproof systemsuccinct-arguments
Contact author(s)
kunmingj @ andrew cmu edu
History
2025-10-08: approved
2025-10-06: received
See all versions
Short URL
https://ia.cr/2025/1849
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2025/1849,
      author = {Kunming Jiang and Fraser Brown and Riad S. Wahby},
      title = {{CoBBl}: Dynamic constraint generation for {SNARKs}},
      howpublished = {Cryptology {ePrint} Archive, Paper 2025/1849},
      year = {2025},
      doi = {10.1109/SP61157.2025.00200},
      url = {https://eprint.iacr.org/2025/1849}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.