~yujiri/sufec#2: 
How should peer discovery work?

We need NetworkPacket-level commands to request and announce peers. At a high level, it's simple enough: the RequestPeers packet will contain the sender ID, so the recipient can sealedbox back to them, and the AnnouncePeer packet will contain at least one peer encoded as ID + address + port. But as far as how a client should go about gathering a list of peers optimal for it to be directly connected to, there's a lot of hard questions to answer. Should re-read the Kademlia spec. On the bright side, this doesn't need to be part of the protocol strictly - any client can use its own approach. (That makes me wonder if the libsufec API should have a way to pass in an algorithm for this, and the actual algorithm should be defined in another crate.)

Status
RESOLVED INVALID
Submitter
~yujiri
Assigned to
No-one
Submitted
2 months ago
Updated
24 days ago
Labels
No labels applied.

~yujiri referenced this from #1 2 months ago

~yujiri REPORTED INVALID 24 days ago

Closing since the protocol is no longer P2P.

Register here or Log in to comment, or comment via email.