A new function to generate a circuit report from a compiled arithmetic circuit. This report contains every input and output signal with their names in the circom program.
A new function to build an MPZArithmeticCircuit from a compiled circuit file and a circuit report. This allows us to use the evaluator from the mpz repository, in particular we're using the BMR16 fork -> https://github.com/tkmct/mpz.
Evaluation Example
Sample evaluation of the following circuit:
pragma circom 2.0.0;
// Two element sum
template sum () {
signal input a;
signal input b;
signal output out;
out <== a + b;
}
component main = sum();
Description
This PR introduces:
MPZArithmeticCircuit
from a compiled circuit file and a circuit report. This allows us to use the evaluator from thempz
repository, in particular we're using theBMR16
fork -> https://github.com/tkmct/mpz.Evaluation Example
Sample evaluation of the following circuit:
Related Issues
13