In-house crate for BitTorrent PeerId parsing and PeerClient identification.
This crate was originally derived from Aquatic's peer_id crate:
This crate is extracted from previously duplicated in-house implementations in:
packages/primitives/src/peer_id.rspackages/udp-protocol/src/peer_id.rs
It provides a shared implementation that can be consumed by both domain and protocol crates without introducing inverted dependency directions.
Torrust keeps this package in-house because upstream maintenance appears inactive and the tracker still needs dependency updates, security maintenance, and ongoing evolution.
Relevant upstream context:
The original source is Apache-2.0 licensed. The in-house package keeps the required origin and change notices in code headers, consistent with the license terms.
An explicit copy of Apache-2.0 is included at LICENSE-APACHE.
Special thanks to greatest-ape (Joakim Frostegård) for his contributions to the BitTorrent ecosystem and the original implementation this crate builds upon.