Skip to main content

Crate enxame_magnet

Crate enxame_magnet 

Source
Expand description

Typed BitTorrent magnet links (BEP-9 / BEP-53).

A magnet URI identifies a swarm without a .torrent file: magnet:?xt=urn:btih:<hash>&dn=<name>&tr=<tracker>&…. This crate parses one into a typed Magnet — the xt exact-topic becomes a typed Xt (v1 btih SHA-1, or v2 btmh multihash), trackers and peer addresses are collected, in the pleme-io parse-don’t-validate idiom. Part of the ENXAME suite (theory/ENXAME.md); pairs with enxame-metainfo (the magnet is the identity, the metainfo is the body fetched once a peer is reached).

Structs§

Magnet
A parsed magnet link.

Enums§

Error
A typed magnet parse failure.
Xt
The exact-topic (xt) of a magnet — the swarm identity.