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 might be wrong, but it seems like the sum constraint in the MerkleSumTreeChip has a useless loop that just ends up creating the same constraint N_CURRENCIES times.
It loops from 0 to N_CURRENCIES and it seems like it's getting the exact same values at Rotation::cur. Or maybe my understanding of Halo2 is wrong, and each loop would increase the Rotation index?
If we looped, the correct code would be:
But the sum_balances_per_level is supposed to take only the left and right currency and add them. The loop is actually performed in the MstInclusionCircuit, so we should get rid of the loop:
I might be wrong, but it seems like the sum constraint in the MerkleSumTreeChip has a useless loop that just ends up creating the same constraint
N_CURRENCIES
times.It loops from 0 to N_CURRENCIES and it seems like it's getting the exact same values at
Rotation::cur
. Or maybe my understanding of Halo2 is wrong, and each loop would increase the Rotation index?If we looped, the correct code would be:
But the
sum_balances_per_level
is supposed to take only the left and right currency and add them. The loop is actually performed in the MstInclusionCircuit, so we should get rid of the loop:The text was updated successfully, but these errors were encountered: