We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am trying to create a really simple circuit that takes in an array and gives 1 as the output. Here is my circuit code:
pragma circom 2.0.0;
template ArrayReceived(n) { signal input arr[n]; signal output out;
out <== 1;
}
component main = ArrayReceived(10);
Is this a common error? What could I be doing wrong?
The text was updated successfully, but these errors were encountered:
Hey, @design-smith, this is a common issue. When a circuit has 0 constraints, snarkjs throws this exact error.
snarkjs
From circom docs:
Note that constraints must be quadratic, linear or constant equations ...
In your example, the <== operator does not generate a constraint since the equation is not quadratic.
<==
Sorry, something went wrong.
No branches or pull requests
I am trying to create a really simple circuit that takes in an array and gives 1 as the output. Here is my circuit code:
pragma circom 2.0.0;
template ArrayReceived(n) {
signal input arr[n];
signal output out;
}
component main = ArrayReceived(10);
Is this a common error? What could I be doing wrong?
The text was updated successfully, but these errors were encountered: