EPIC: I2P peer support

Open
#2,491 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
6/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Active
Tech stack
rust
Domain
networking

Research direction

This is a postponed design EPIC, not a coding task: implementation waits until after the v4.0.0 release (#1659). Read the referenced design discussion in docs/discussions/ and the review of #2059, with the open questions and review actions A1 to A7. Newcomers can help by reading and commenting on the design rounds, not by writing code. The EPIC is done when the acceptance criteria AC1 to AC7 are met.

Written by the indexing model from the issue text.

Description

EPIC Postponed

EPIC for I2P peer support: letting the tracker serve BitTorrent swarms whose peers use the I2P anonymity network.

Status: postponed until after the v4.0.0 release (#1659). The roadmap will be redefined after that release. Closing the related PRs does not reject the feature.

Goal

Add I2P peer support to the tracker without weakening its clearnet behavior or its trust boundaries.

Background

A contributor proposed an implementation in #2050. Jose Celano reviewed it in the rebased draft #2059. Jose supports the feature, but it needs a careful design first: it changes the core peer address model, the HTTP announce contract, the compact response format, swarm statistics, the REST API, and the tracker's trust boundary. The review recorded seven required actions (A1 to A7), including a merge blocker: a plain HTTP announce cannot prove that a client owns the I2P Destination it supplies.

A design discussion in docs/discussions/ keeps the proposal, the review documents, and the open questions, so that #2050 and #2059 can be closed and used as reference.

Scope

In scope:

  • The design discussion and its Outcome.
  • Design decisions, with ADRs where a decision is architectural (for example, how the tracker trusts a peer's I2P Destination).
  • I2P peer support in the HTTP tracker: announce parsing, network-isolated matchmaking, and the compact and non-compact response formats.
  • Review actions A1 to A7 and the review follow-ups (tracker client support, placeholder port documentation).

Out of scope:

  • Implementation before v4.0.0 is released and the roadmap includes this EPIC.
  • The REST API representation of I2P peers, which belongs to the REST API overhaul (#144).
  • UDP over I2P, I2P PEX, and I2P DHT.
  • General rate limiting, which belongs to #2411.

Phases

  1. Preserve the proposal: merge this EPIC's spec and the design discussion, then close #2050 and #2059.
  2. Design discussion (after v4.0.0): positions in rounds, then the Outcome.
  3. ADRs and subissues.
  4. Implementation.

Acceptance criteria

  • AC1: The design discussion has a recorded Outcome, and each decision links its canonical document.
  • AC2: An ADR records how the tracker establishes a peer's I2P Destination (review action A7).
  • AC3: All required subissues are created and linked, in an explicit and justified order.
  • AC4: Every review action (A1 to A7) is implemented by a subissue or explicitly rejected in the discussion Outcome.
  • AC5: I2P and clearnet peers never receive each other in announce responses, and announce statistics describe only the peers reachable by the requester.
  • AC6: Every completed subissue includes automated and manual verification evidence, a post-implementation acceptance criteria review, and an implementation completion review.
  • AC7: User documentation describes how to deploy and operate the tracker for I2P peers.

The full specification will live in docs/issues/open/ once the spec PR is merged.

Dominant language
Rust
Stars
532
Forks
56
Avg merge
11h 20m
Merged PRs (30d)
282

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from torrust/torrust-tracker

All issues in torrust/torrust-tracker

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.