Skip to content

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 7 times, most recently from 820709c to 4237e8b Compare March 31, 2025 18:34
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch 3 times, most recently from 7a76387 to 30414e8 Compare April 23, 2025 16:14
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch from 7e073ad to 295fabf Compare April 26, 2025 23:49
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch 2 times, most recently from 60f16d1 to 7128f62 Compare May 20, 2025 13:21
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch from 29c6d93 to 6b88273 Compare June 2, 2025 02:37
…ent to "store" + adds "onBatch" callback to "fetchDatasetAsync"
…retrieving BitTorrent content from Codex Net
@marcinczenko marcinczenko force-pushed the feat/bittorrent-integration branch from 74f39bd to 0935abb Compare June 3, 2025 01:01
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