Open jonas089 opened 2 months ago
Sad to see this mistake in the official circom docs. This is a common issue though. When a circuit has 0 constraints, snarkjs
throws this exact error.
In the example, all the signals (both outputs and inputs) are public and ZK proof results into hiding nothing, becoming meaningless. Sometimes this error may also occur due to weird circom optimizations that "remove" constraints.
for circuit:
with inputs:
Is this a known issue? I followed the tutorial exactly yet it does not generate a proof. If I make either of the inputs private it works e.g. component main {public [in1]} = Multiplier2(); is ok.
See example for reference: https://docs.circom.io/circom-language/signals/
I suspect this might be due to the two inputs forming a quadratic constraint. When I introduce a third input and make it public it works again.