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
Can you elaborate on the context for this issue? We have discussed it a bit in private but without the context given here it sounds like an arbitrary restriction to place.
The way we handle this case is by creating a witness which is constrained to the hardcoded value (2 in the example).
This is fine because it corresponds to what the user wrote and it is safe.
We could however issue a warning explaining that this value does not need to be returned because it is always 2.
Problem
The current program:
Will allow the user to return a constant as a public output.
Solution
Users will need to differentiate between a program constant and a public output(which is public and will vary).
ie you cannot return a constant as a public output.
Alternatives considered
Additional context
This is a tracking issue to collect feedback
The text was updated successfully, but these errors were encountered: