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
However, for package level function (which seem to be a natural way to declare a hint), name is "main.glob..func2" where N in funcN depends of the number of package level declarations... Meaning one constraint system can be compiled, working fine, and changing the order of the hints or adding functions in the circuit, will trigger un-determined behavior (when using a previously compiled circuit).
Also, std.GetHints return the list of hints in std; but adding them to the returned slice, imports the std/ pacakge which in turns register the hints in a package level init() function.
Ideally, we need a deterministic and fixed UUID for the hint, and simply store a map of hint (like in backend/...solution) such that it is not possible for a malicious user to over-hide an existing hint, and duplicate registration mean hints are identical.
The text was updated successfully, but these errors were encountered:
hint
UUID is derived from the function name, usingreflect
.However, for package level function (which seem to be a natural way to declare a hint), name is "main.glob..func2" where N in funcN depends of the number of package level declarations... Meaning one constraint system can be compiled, working fine, and changing the order of the hints or adding functions in the circuit, will trigger un-determined behavior (when using a previously compiled circuit).
Also,
std.GetHints
return the list ofhints
in std; but adding them to the returned slice, imports thestd/
pacakge which in turns register the hints in a package levelinit()
function.Ideally, we need a deterministic and fixed UUID for the hint, and simply store a map of hint (like in backend/...solution) such that it is not possible for a malicious user to over-hide an existing hint, and duplicate registration mean hints are identical.
The text was updated successfully, but these errors were encountered: