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
This executes the function is_valid twice. Which can be "fatal" in some cases where the function is emitting nullifiers as it would create an instant double-spend, (two nullifiers in the same tx).
When the macros for return values are applied they will current "copy" the node into the
return_values
of thecontext
.This means that for functions like:
We will really be executing something along the lines of:
This executes the function
is_valid
twice. Which can be "fatal" in some cases where the function is emitting nullifiers as it would create an instant double-spend, (two nullifiers in the same tx).Point of interest:
aztec-packages/noir/aztec_macros/src/lib.rs
Lines 637 to 640 in 811d767
The text was updated successfully, but these errors were encountered: