docs: public static void writeLeaves(DataOutput out, MerkleTreeView merkleTreeView) throws IOException {
          int leafLevel = merkleTreeView.depth() - 1;
          int numberOfLeaves = getNodesOnLevel(leafLevel);
          int leftMostLeaf = getLeftMostNodeOrderOnLevel(leafLevel);
  
          out.writeInt(numberOfLeaves);
  
          for (int leafOrder = leftMostLeaf; leafOrder < leftMostLeaf + numberOfLeaves; leafOrder++) {
              out.writeInt(merkleTreeView.getNodeHash(leafOrder));
          }
      }