torrust / torrust-tracker

A modern and feature-rich (private) BitTorrent tracker.
https://torrust.com
GNU Affero General Public License v3.0
353 stars 39 forks source link

Extract duplicate implementation of `InfoHash` struct #360

Open josecelano opened 1 year ago

josecelano commented 1 year ago

Relates to:

We are duplicating code for:

pub struct InfoHash(pub [u8; 20]);

We should extract a common BitTorrent protocol crate for both the Tracker and the Index Backend.

josecelano commented 2 months ago

Hi @da2ce7 I would like to do this. Which package could we include this mod in? bittorrent?