/** * Construct the Merkle tree * * @param int $txCount * @param array $vTxHashes * @param array $vMatch * @return PartialMerkleTree */ public static function create($txCount, array $vTxHashes, array $vMatch) { $tree = new self($txCount); $tree->traverseAndBuild($tree->calcTreeHeight(), 0, $vTxHashes, $vMatch); return $tree; }