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 the following code the most_expensive_snack is underconstrained. There are no checks making sure that the value is actually derived from previous witnesses.
Happy Case
We should be able to detect this in Ssa. When there is a call to a brillig function in the Ssa we can construct a graph of ValueIds derived from the arguments of the functions and of ValueIds derived from the results. Two of those graphs need to have elements constrained together with an assert in most usecases. I think a warning to the user showing that there is no assert between any derived values would be useful.
Project Impact
Nice-to-have
Impact Context
Circuit security
Workaround
None
Workaround Description
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
Yes
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Problem
In the following code the
most_expensive_snack
is underconstrained. There are no checks making sure that the value is actually derived from previous witnesses.Happy Case
We should be able to detect this in Ssa. When there is a call to a brillig function in the Ssa we can construct a graph of ValueIds derived from the arguments of the functions and of ValueIds derived from the results. Two of those graphs need to have elements constrained together with an assert in most usecases. I think a warning to the user showing that there is no assert between any derived values would be useful.
Project Impact
Nice-to-have
Impact Context
Circuit security
Workaround
None
Workaround Description
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
Yes
Support Needs
No response
The text was updated successfully, but these errors were encountered: