docs: function MerkleTree(leaves, hashAlgorithm, options) {
          if (options === void 0) { options = {}; }
          this.hashAlgo = bufferifyFn(hashAlgorithm);
          this.leaves = leaves.map(bufferify);
          this.layers = [this.leaves];
          this.isBitcoinTree = !!options.isBitcoinTree;
          this.createHashes(this.leaves);
      }