8000 Non quadratic constraints are not allowed! WHY?? · Issue #338 · iden3/circom · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Non quadratic constraints are not allowed! WHY?? #338
Open
@amaramci

Description

@amaramci

pragma circom 2.1.6;

template Sigma() {
signal input in;
signal input a;
signal input b;
signal output out;

signal input x;

out <== in*x + a*x + b*x;

}

component main { public [ in ] } = Sigma();
On this code i got error[T3001]: Non quadratic constraints are not allowed!

pragma circom 2.1.6;

template Sigma() {
signal input in;
signal input a;
signal input b;
signal output out;

signal input x;

out <== (in + a + b)*x;

}

component main { public [ in ] } = Sigma();
But on this code it is working.
Can you please explain to me how the first one is quadratic constraint and the second one is not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0