You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In circomlib/circuits/mux1.circom it is possible to specify an input that is not equal 0 or 1 and get an arbitrary output instead of one of inputs. The following check should be added at line 24:
s * (1 - s) === 0
Possibly other multiplexer implementations are also affected
The text was updated successfully, but these errors were encountered:
This might be suboptimal because a caller may already have input of proper type (for example, output of num2bits), and an extra constraint will increase the complexity for nothing.
In
circomlib/circuits/mux1.circom
it is possible to specify an input that is not equal 0 or 1 and get an arbitrary output instead of one of inputs. The following check should be added at line 24:Possibly other multiplexer implementations are also affected
The text was updated successfully, but these errors were encountered: