majestrate / XD

meme bittorrent client
https://xd-torrent.github.io/
MIT License
231 stars 25 forks source link

outsource using go-libp2p #67

Open systemshift opened 5 years ago

systemshift commented 5 years ago

According to the contributing file, it is recommended to vendor everything when possible. libp2p has a go implementation which seem to be a good candidate to use https://github.com/libp2p/go-libp2p

It might make it easier to implement DHT using it, but it isn't clear how safe implementing it exclusively with i2p would work out, it might be also worthy to note the maintainer includes tor & i2p as part of their roadmap. So further research is needed.

majestrate commented 5 years ago

i2p's bittorrent dht is really weird and has nonstardard isms like requiring use of both repliable and non-repliable i2p datagrams (it is still normal kad). dropping in libp2p's dht probably won't work with i2psnark and friends. it may work with lokinet support as it's a blank slate and we can do whatever we want with it.