fillFromLeaves

Places leaves at the block layer (padding the rest with the all-zero block hash) and computes every interior node up to the root. The resulting tree[0] is the file root. Mirrors loading the block layer and calling merkle_fill_tree.

Parameters

leaves

exactly numBlocks block hashes, in order.