arnaucube
arnaucube/circomPublic Self-hosted repository
Update README.md
bellesmarta 43028405+bellesmarta@users.noreply.github.com
Mon, 10 Sep 2018 18:55:13 +0200
commit

b717bb4c3331bc7bf7ada943ce369246a49bc094

parent

d42498814f3660028a93060d6ac8f850b8dd3f94

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M README.md → README.md

@@ -33,7 +33,7 @@ As it is shown in the above example, a value is assigned to `out` and a constraint is also generated. The assigned value must be of the form a*b+c where a,b and c are linear combinations of the signals.

`<--` , `-->` : These operators assign values to signals but do not generate any constraints. This allows to assign to a signal any value involving strange operations like shifts, divisions, modulo operations, etc. In general, these operators are used together with a `===` operator in order to force the constraint. -`===` : This operator defines a constraint. The constraint must be simplificable to a constraint of the form a*b+c=0, where a,b and c are linear combinations of the signals. +`===` : This operator defines a constraint. The constraint must be simplificable to a constraint of the form `a*b+c=0`, where `a`, `b` and `c` are linear combinations of the signals. In the above example, both inputs are forced to be binary by adding the constraints `a*(a-1)===0` and `b*(b-1) === 0`.