mirror of
https://github.com/logos-storage/bittorrent-codex-docs.git
synced 2026-01-02 13:03:08 +00:00
632 B
632 B
BitTorrent Manifest is a structure describing BitTorrent content and connecting it to the corresponding Codex content.
It is defined as follows:
type
BitTorrentPiece* = MultiHash
BitTorrentInfo* = ref object
length* {.serialize.}: uint64
pieceLength* {.serialize.}: uint32
pieces* {.serialize.}: seq[BitTorrentPiece]
name* {.serialize.}: ?string
BitTorrentManifest* = ref object
info* {.serialize.}: BitTorrentInfo
codexManifestCid* {.serialize.}: Cid
It contains the BitTorrent info dictionary (here only version 1 of the protocol and no support for multiple files and dictionaries).