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
When we compute div and mod we use the non-deterministic equation a = b.div + mod, and we constraint mod < b. However, in the field we can easily (if non-zero b) compute div = (a - mod)*inv(b), then an attacker could choose any mod he wants, and set div as before. What is wrong? We also need to check div and mod are u64, and this check is lacking in the old circuit.
Implement a gadget that attests correct u64 range showing a non-deterministic 64-bit decomposition.
The text was updated successfully, but these errors were encountered:
When we compute
div
andmod
we use the non-deterministic equationa = b.div + mod
, and we constraintmod < b
. However, in the field we can easily (if non-zero b) computediv = (a - mod)*inv(b)
, then an attacker could choose any mod he wants, and set div as before. What is wrong? We also need to check div and mod are u64, and this check is lacking in the old circuit.Implement a gadget that attests correct u64 range showing a non-deterministic 64-bit decomposition.
The text was updated successfully, but these errors were encountered: