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
{{ message }}
This repository has been archived by the owner on Oct 11, 2024. It is now read-only.
On 2019-09-04 @recmo wrote in b51698e “Use size instead of depth + support zero”:
Support non power of two sizes
commitment:Commitment::from_size_hash(size,&Hash::default()).unwrap(),
nodes:MmapVec::with_capacity(0),
leaves,});}// TODO: Support non power of two sizesrequire!(size.is_power_of_two(), Error::NumLeavesNotPowerOfTwo);require!(size <= Index::max_size(), Error::TreeToLarge);// Allocate resultlet leaf_depth = Index::depth_for_size(size);
On 2019-09-04 @recmo wrote in
b51698e
“Use size instead of depth + support zero”:Support non power of two sizes
From
crypto/merkle-tree/src/tree.rs:75
The text was updated successfully, but these errors were encountered: