arrow
Return

CIRCOM: A Circuit Description Language for Building Zero-Knowledge Applications

delete2023-11-01
delete9
delete
OA
AI
M
Marta Bellés-Muñoz *
M
Miguel Isabel
J
José L. Muñoz
A
Albert Rubio
J
Jordi Baylina
DOI:10.1109/TDSC.2022.3232813delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
A zero-knowledge (ZK) proof guarantees that the result of a computation is correct while keeping part of the computation details private. Some ZK proofs are tiny and can be verified in short time, which makes them one of the most promising technologies for solving two key aspects: the challenge of enabling privacy to public and transparent distributed ledgers and enhancing their scalability limitations. Most practical ZK systems require the computation to be expressed as an arithmetic circuit that is encoded as a set of equations called rank-1 constraint system (R1CS). In this paper, we present Circom, a programming language and a compiler for designing arithmetic circuits that are compiled to R1CS. More precisely, with Circom, programmers can design arithmetic circuits at a constraint level, and the compiler outputs a file with the R1CS description, and WebAssembly and C++ programs to efficiently compute all values of the circuit. We also provide an open-source library called circomlib with multiple circuit templates. Circom can be complemented with snarkjs, a library for generating and validating ZK proofs from R1CS. Altogether, our software tools abstract the complexity of ZK proving mechanisms and provide a unique and friendly interface to model low-level descriptions of arithmetic circuits.
Keywords:
Zero-knowledge proof
circuit
domain-specific language
compiler
blockchain

Journal

IEEE Transactions on Dependable and Secure Computing cover
IEEE Transactions on Dependable and Secure Computing
IF:
7.5
Papers:
2.4K
Citations:
9.6K

Organization

C
Complutense University of Madrid
Scholars:
2.6W
Papers: 2.2W
Citations: 31
P
Pompeu Fabra University
Scholars:
9.3K
Papers: 6.8K
Citations: 11
U
universitat politecnica de catalunya
Scholars:
1.9W
Papers: 1.6W
Citations: 17
researcher View more organizations