Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: rendezvous spec #284

Merged
merged 3 commits into from
Nov 13, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 5 additions & 9 deletions rendezvous/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@

Authors: [@vyzo]

Interest Group: [@daviddias], [@whyrusleeping], [@Stebalien], [@jacobheun], [@yusefnapora]
Interest Group: [@daviddias], [@whyrusleeping], [@Stebalien], [@jacobheun], [@yusefnapora], [@vasco-santos]
vasco-santos marked this conversation as resolved.
Show resolved Hide resolved

[@vyzo]: https://github.com/vyzo
[@daviddias]: https://github.com/daviddias
[@whyrusleeping]: https://github.com/whyrusleeping
[@Stebalien]: https://github.com/Stebalien
[@jacobheun]: https://github.com/jacobheun
[@yusefnapora]: https://github.com/yusefnapora
[@vasco-santos]: https://github.com/vasco-santos

See the [lifecycle document][lifecycle-spec] for context about maturity level
and spec status.
Expand Down Expand Up @@ -69,15 +70,15 @@ number of rendezvous points can federate using pubsub for internal
real-time distribution, while still providing a simple interface to
clients.


## The Protocol

The rendezvous protocol provides facilities for real-time peer
discovery within application specific namespaces. Peers connect to the
rendezvous point and register their presence in one or more
namespaces. It is not allowed to register arbitrary peers in a
namespace; only the peer initiating the registration can register
itself.
itself. The register message contains a serialized [signed peer record](https://github.com/libp2p/specs/blob/377f05a/RFC/0002-signed-envelopes.md)
created by the peer, which can be validated by others.

Peers registered with the rendezvous point can be discovered by other
nodes by querying the rendezvous point. The query specifies the
Expand Down Expand Up @@ -195,14 +196,9 @@ message Message {
E_UNAVAILABLE = 400;
}

message PeerInfo {
optional bytes id = 1;
repeated bytes addrs = 2;
}

message Register {
optional string ns = 1;
optional PeerInfo peer = 2;
optional bytes signedPeerRecord = 2;
optional int64 ttl = 3; // in seconds
}

Expand Down