AddTorrentParams
The add-a-torrent payload produced by LoadTorrent. This is the pure-Kotlin analogue of the fields libtorrent's load_torrent_* functions populate in an add_torrent_params (src/load_torrent.cpp, update_atp).
In libtorrent, load_torrent_buffer / load_torrent_file build a torrent_info and then drain the non-info-dictionary metadata (trackers, web seeds, DHT nodes) out of it into the surrounding add_torrent_params, so the session sees a single object with both the torrent and its session-level hints. KiteTorrent has no session type yet, so the same drained view is bundled here alongside the ti it came from.
The fields are the ones update_atp moves across:
trackers / trackerTiers ← the announce URLs and their tiers,
urlSeeds ←
web_seed_entry::url_seedentries (BEP 19),dhtNodes ← the
nodesbootstrap list,infoHashes convenience pair ←
ti->info_hashes().
Per-file merkle tree reconstruction and piece-layer verification (the second half of update_atp) are not reproduced here. See the note in LoadTorrent.
Properties
Convenience pair of (v1, v2) info-hashes, mirroring info_hashes_t.
v1 info-hash (SHA-1), or null for a pure-v2 torrent.
v2 info-hash (SHA-256), or null for a v1-only torrent.
The parsed torrent metadata.
Tier index for each entry of trackers, aligned 1:1.