NP-Eng / ligero

Rust implementation of (the non-interactive, non-ZK version of) the Ligero SNARK for arithmetic circuits.
Apache License 2.0
2 stars 1 forks source link

Indicator in single-constraint R1CS #10

Closed Antonio95 closed 1 month ago

Antonio95 commented 2 months ago

When we convert R1CS to ArithmeticCircuit, we add one indicator per gate. Note that this is likely to go away because of the multi-outputs in PR #2 . If it does end up staying in some form, we should treat the case where the R1CS only has 1 constraint differently, as in that case no indicator is needed.

Having said that, a one-constraint R1CS sounds too trivial, so we might want to think about whether/how to handle that case.

Cesar199999 commented 1 month ago

Closed by #18