Litcius/Paper detail

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

Marta Bellés-Muñoz, Miguel Isabel, José L. Muñoz, Albert Rubio, Jordi Baylina

2022IEEE Transactions on Dependable and Secure Computing75 citationsDOIOpen Access PDF

Abstract

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 <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Circom</small> , a programming language and a compiler for designing arithmetic circuits that are compiled to R1CS. More precisely, with <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Circom</small> , programmers can design arithmetic circuits at a constraint level, and the compiler outputs a file with the R1CS description, and WebAssembly and <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">C++</small> programs to efficiently compute all values of the circuit. We also provide an open-source library called <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">circomlib</small> with multiple circuit templates. <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">Circom</small> can be complemented with <sc xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">snarkjs</small> , 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.

Topics & Concepts

CompilerComputer scienceAutomated theorem provingProgramming languageZero (linguistics)ScalabilityKey (lock)Zero-knowledge proofComputationTheoretical computer scienceAlgorithmCryptographyDatabaseOperating systemPhilosophyLinguisticsCryptography and Data SecurityComplexity and Algorithms in GraphsSecurity and Verification in Computing
Circom: A Circuit Description Language for Building Zero-Knowledge Applications | Litcius