From https://docs.rs/ic-certified-map/latest/ic_certified_map/trait.AsHashTree.html it's unclear the following:
For AsHashTree is it required that leafs are pseudorandom?
If I, for example, have an u64 value, transform is to U256 and further to [u8; 32] and then to Vec<u8> of length 32, will it be a suitable value for a leaf? It isn't a pseudo-random hash, because it has leading zeros.
From https://docs.rs/ic-certified-map/latest/ic_certified_map/trait.AsHashTree.html it's unclear the following:
For
AsHashTreeis it required that leafs are pseudorandom?If I, for example, have an
u64value, transform is toU256and further to[u8; 32]and then toVec<u8>of length 32, will it be a suitable value for a leaf? It isn't a pseudo-random hash, because it has leading zeros.