Data-Flow-Based Normalization Generation Algorithm of R1CS for Zero-Knowledge Proof

09/08/2023
by   Chenhao Shi, et al.
0

The communities of blockchains and distributed ledgers have been stirred up by the introduction of zero-knowledge proofs (ZKPs). Originally designed to solve privacy issues, ZKPs have now evolved into an effective remedy for scalability concerns and are applied in Zcash (internet money like Bitcoin). To enable ZKPs, Rank-1 Constraint Systems (R1CS) offer a verifier for bi-linear equations. To accurately and efficiently represent R1CS, several language tools like Circom, Noir, and Snarky have been proposed to automate the compilation of advanced programs into R1CS. However, due to the flexible nature of R1CS representation, there can be significant differences in the compiled R1CS forms generated from circuit language programs with the same underlying semantics. To address this issue, this paper uses a data-flow-based R1CS paradigm algorithm, which produces a standardized format for different R1CS instances with identical semantics. By using the normalized R1CS format circuits, the complexity of circuits' verification can be reduced. In addition, this paper presents an R1CS normalization algorithm benchmark, and our experimental evaluation demonstrates the effectiveness and correctness of our methods.

READ FULL TEXT
research
03/02/2018

QWIRE Practice: Formal Verification of Quantum Circuits in Coq

We describe an embedding of the QWIRE quantum circuit language in the Co...
research
03/08/2023

Descriptive complexity for distributed computing with circuits

We consider distributed algorithms in the realistic scenario where distr...
research
10/14/2021

zk-Fabric, a Polylithic Syntax Zero Knowledge Joint Proof System

In this paper, we create a single-use and full syntax zero-knowledge pro...
research
10/22/2019

Metamath Zero: The Cartesian Theorem Prover

As the usage of theorem prover technology expands, so too does the relia...
research
11/28/2022

Mechanized Noninterference for Gradual Security

This paper presents the first machine-checked proof of noninterference f...
research
12/06/2022

On Zero-Knowledge Proofs over the Quantum Internet

This paper presents a new method for quantum identity authentication (QI...

Please sign up or login with your details

Forgot password? Click here to reset