Getting "adding a plonk constraint with qM set but xa or xb == 0 (wire 0)" . Should I be worried? #1171
-
I was testing the new version of my circuit and this message popped up. Is this smth I should debug and fix?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Hi, you shouldn't be concerned about the warning, gnark is currently being overly sceptical. The issue is that in some cases we can deduce that some variable is 0 a la: ...
y := api.Sub(x, x)
z := api.Mul(w, y)
... where Currently we have taken a conservative approach in gnark and do not automatically omit such constraints, so it is left up to the user. |
Beta Was this translation helpful? Give feedback.
Hi, you shouldn't be concerned about the warning, gnark is currently being overly sceptical.
The issue is that in some cases we can deduce that some variable is 0 a la:
where
y
is always0
…