Companion

object Companion

Functions

Link copied to clipboard
fun fromLeaves(leaves: List<Sha256Hash>, blocksPerPiece: Int = 1): MerkleTree

Builds a fully-computed tree from a complete leaf set and returns it. The resulting tree's root is the file root; pass blocksPerPiece to position the piece layer.