libp2p / libp2p/specs

Proposal: fully switch to signed peer records, deprecate un-signed address announcements

Open
#552 3 comments 9 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
No language data
Stars
1.8k
Forks
320
Avg merge
11d 15h
Merged PRs (30d)
1

Description

We've already supported signed peer records in Identify for the longest time. Signed peer records are superior, because we know they originate from the right peer (which, with AutoNAT v2, should have a pretty good grasp on its addresses).

We should fully switch to using them everywhere. This includes:

  1. Preferring addresses from signed peer records when dialing new connections, going as far as to ignore all non-signed addresses if we have at least one signed one.
  2. Using them for peer records in Kademlia.
  3. Using them in mDNS.
  4. Finding other places where address records are added to the peerstore and dialed.

Contributor guide

No contributing guide indexed for this repository

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.

Research direction

Start by reviewing signed peer records in Identify and tracing address use in Kademlia, mDNS, and the peerstore. Done means all relevant address storage and dialing paths use signed records, with non-signed addresses ignored when a signed address is available.

Written by the indexing model from the issue text.

Assessment

Domain
distributed-systems, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.