forest
value should be u64
instead of usize
(in MmrPeaks
, Mmr
, etc)
#229
Milestone
forest
value should be u64
instead of usize
(in MmrPeaks
, Mmr
, etc)
#229
We currently use
usize
for the value offorest
, which extends to many other places (such asMmrPeaks::num_leaves
).The size of
usize
is dependent on the hardware it's being run on. This is not exactly the behavior we want; abstractly, the VM can manipulate anMmr
with up to2^64 - 2^32
leaves. Thus, a better choice would be to useu64
, which converts naturally to/from aFelt
.It will also make the
Mmr
nicer to work with:The text was updated successfully, but these errors were encountered: