Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bittorrent Integration [draft] #1137

Draft
wants to merge 64 commits into
base: master
Choose a base branch
from

Conversation

marcinczenko
Copy link
Contributor

@marcinczenko marcinczenko commented Feb 28, 2025

Draft of the BitTorrent Codex integration.

Should be enough to see the overall idea in code.

What is there:

  • storeTorrent is equivalent of Codex store - this is the entry point when seeding BitTorrent content into Codex network
  • retrieveTorrent is equivalent of Codex retrieve - entry point when requesting BitTorrent content having only info hash as the input.

To be functional still needs:

  • b-encoding and the actual info-hash validation (now there is only a placeholder around the place where it most probably will happen)
  • streaming pieces and validating them
  • REST API (download)
  • REST API (upload)
  • REST API (fetch torrent manifest only for the given info hash)
  • Try to make the Cid for BitTorrent Manifest a valid Cid - investigation done - not technically feasible and does not add any more security.
  • update docs
  • a bit more testing

See also codex-storage/codex-pm#211.

@marcinczenko marcinczenko self-assigned this Feb 28, 2025
@marcinczenko marcinczenko marked this pull request as draft February 28, 2025 17:11
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch 3 times, most recently from bf800ac to 8a608e8 Compare March 5, 2025 14:45
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch from 1b28c03 to b531696 Compare March 11, 2025 01:05
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch 2 times, most recently from aa9989c to e19065b Compare March 23, 2025 00:44
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch 6 times, most recently from 73591d5 to 820709c Compare March 31, 2025 15:57
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch from 820709c to 4237e8b Compare March 31, 2025 18:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant