A client must provide both leaves and TTH for every file.
the most efficient way to do so is computing first the leaves and then the TTH from the leaves.
In this way we provide the most efficient way to compute TTH directly though TreeHash(), and the most efficient way to compute TTH from leaves through leaves.ToTreeHash().
A client must provide both leaves and TTH for every file. the most efficient way to do so is computing first the leaves and then the TTH from the leaves.
In this way we provide the most efficient way to compute TTH directly though TreeHash(), and the most efficient way to compute TTH from leaves through leaves.ToTreeHash().