HashPicker

constructor(info: TorrentInfo, trees: Map<Int, MerkleTree>)

Parameters

info

the parsed torrent (provides the file→piece mapping and known file roots).

trees

per-file merkle trees, keyed by file index. A file's tree must have been constructed with that file's pieces root as its expected root for verification to work. Pad files and single-piece files may be omitted.