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
I was working on a custom Merkle tree circuit, and I parameterized it with const/comptime generic DEPTH.
However one component/variable had to be an array of DEPTH + 1 elements. So it seems like constant operations are not supported.
Happy Case
global A: Field = 1;
global B: Field = 1;
global C: Field = A + B; // C = 2, processed during compile-time
or
global C: Field = 1 + 1; // C = 2, processed during compile-time
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered:
Problem
I was working on a custom Merkle tree circuit, and I parameterized it with const/comptime generic
DEPTH
.However one component/variable had to be an array of
DEPTH + 1
elements. So it seems like constant operations are not supported.Happy Case
global A: Field = 1;
global B: Field = 1;
global C: Field = A + B; // C = 2, processed during compile-time
or
global C: Field = 1 + 1; // C = 2, processed during compile-time
Alternatives Considered
No response
Additional Context
No response
Would you like to submit a PR for this Issue?
No
Support Needs
No response
The text was updated successfully, but these errors were encountered: