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
Array indexing is restricted to constant u32s.
However given that arrays are fixed in size, it would be straightforward to implement array indexing by generating a sufficiently constrained circuit via an appropriate sequence of instructions.
The instructions should:
check that the index is in bounds.
mux the correct element of the array.
If this were to be implemented in snarkVM via an ARC, the Leo compiler could easily swap to the native version.
The text was updated successfully, but these errors were encountered:
🚀 Feature
Array indexing is restricted to constant u32s.
However given that arrays are fixed in size, it would be straightforward to implement array indexing by generating a sufficiently constrained circuit via an appropriate sequence of instructions.
The instructions should:
If this were to be implemented in snarkVM via an ARC, the Leo compiler could easily swap to the native version.
The text was updated successfully, but these errors were encountered: