libp2p / go-libp2p

libp2p implementation in Go
MIT License
6.02k stars 1.06k forks source link

Model "address scopes" in signed peer records #793

Open raulk opened 4 years ago

raulk commented 4 years ago

There is such thing as “address scopes” for discovery mechanisms, which we have not modelled yet, e.g. a public discovery mechanism should only advertise public addresses, a multi-layer DHT with a private layer or mDNS should advertise private addresses.

When it comes to signed peer records, these two address sets should be contained in records with different asserted scope, and these records are additive to one another, rather than exclusive.

Winterhuman commented 2 years ago

@Stebalien Any update on this for use in https://github.com/ipfs/go-ipfs/issues/6932?

Stebalien commented 2 years ago

Unfortunately, not. There really hasn't been any progress on address records in general as it would require a DHT protocol upgrade to actually work.