Paper 2026/1567

Zero Knowledge Barcode Decoding with Application to Private Online Attribute Verification

Kelsey Merrill, Carnegie Mellon University
Anna Woo, Carnegie Mellon University
Wenting Zheng, Carnegie Mellon University
Sarah Scheffler, Carnegie Mellon University
Abstract

Online attribute checking (e.g. proving age, residency) is increasingly common, yet standard implementations reveal far more personal information than necessary (e.g. all ID contents). Privacy-preserving alternatives exist but require digital inputs: anonymous-credentials or zero-knowledge (ZK) proofs of signature possession over a bitstring. However, it is challenging to gain integrity guarantees on the bitstring itself. C2PA offers a partial solution: C2PA-enabled cameras cryptographically attest to image origins with an embedded signing key, so a smartphone could provide a signed image of an ID barcode. However, since C2PA signs the image rather than the bitstring of the decoded barcode, the prover must additionally prove correct execution of the PDF417 barcode decoding algorithm on the signed image. Two barriers block this approach: images are large, yielding large proofs and long prover runtimes, and the PDF417 barcode decoding algorithm is highly data-dependent, making compilation into a ZK-friendly constraint systems non-trivial. We present an end-to-end ZK proof system for PDF417 barcode decoding, built on an adaptation of zkSNARK system Dorian (itself based on Spartan) with modifications: (1) adjusting Dorian's polynomial commitment to validate C2PA signatures more efficiently while cheaply checking consistency with the main Dorian proof, and (2) incorporating additional technical gadgets for set disjointness, data-dependent processing in R1CS, and state machines for greater efficiency. Implementing the PDF417 decoding algorithm as R1CS constraints is also nontrivial, as the algorithm is highly data-dependent and requires modifications to ensure soundness. Our system is the first to enable efficient barcode decoding in ZK. The best previous option was a zkVM, requiring prohibitively high computation and memory. We demonstrate that our system is significantly faster and uses far less memory. Furthermore, we suggest changes to the C2PA framework that would make future private verifiable image processing tasks more efficient. Though not yet ready for practical deployment, our system presents an alternative approach to private online attribute verification and demonstrates techniques of independent interest for data-dependent ZK computation.

Metadata
Available format(s)
PDF
Category
Applications
Publication info
Preprint.
Contact author(s)
kmerrill @ andrew cmu edu
annawoo @ andrew cmu edu
wenting @ cmu edu
sscheffl @ andrew cmu edu
History
2026-08-03: approved
2026-07-30: received
See all versions
Short URL
https://ia.cr/2026/1567
License
Creative Commons Attribution
CC BY

BibTeX

@misc{cryptoeprint:2026/1567,
      author = {Kelsey Merrill and Anna Woo and Wenting Zheng and Sarah Scheffler},
      title = {Zero Knowledge Barcode Decoding with Application to Private Online Attribute Verification},
      howpublished = {Cryptology {ePrint} Archive, Paper 2026/1567},
      year = {2026},
      url = {https://eprint.iacr.org/2026/1567}
}
Note: In order to protect the privacy of readers, eprint.iacr.org does not use cookies or embedded third party content.