428 B
428 B
Ztorrent
Minimal BitTorrent client skeleton in Go.
Run
go run ./cmd/torrent-client /path/to/file.torrent
Current features
- Parse
.torrentmetadata and piece hashes - Compute
info_hashfrom rawinfobytes (spec-compatible) - Single-file and multi-file torrents
- Send tracker announce request with compact peer mode
- Parse compact peer list
- Show loaded torrent status and files in the UI layer