diff --git a/content/docs/rfcs/66/README.md b/content/docs/rfcs/66/README.md new file mode 100644 index 000000000..e034fc98e --- /dev/null +++ b/content/docs/rfcs/66/README.md @@ -0,0 +1,39 @@ +--- +slug: 66 +title: 66/WAKU2-METADATA +name: Waku Metadata Protocol +status: raw +editor: Alvaro Revuelta +contributors: +--- + +# Metadata Protocol + +Waku specifies a req/resp protocol that provides information about the node's medatadata. Such metadata is meant to be used +by the node to decide if a peer is worth connecting or not. The node that makes the request, includes its metadata +so that the receiver is aware of it, without requiring an extra interaction. The parameters are the following: +* `clusterId`: Unique identifier of the cluster that the node is running in. +* `shards`: Shard indexes that the node is subscribed to. + + +## Protocol id + +`/vac/waku/metadata/1.0.0` + +## Request + +```proto +message WakuMetadataRequest { + optional uint32 cluster_id = 1; + repeated uint32 shards = 2; +} +``` + +## Response + +```proto +message WakuMetadataResponse { + optional uint32 cluster_id = 1; + repeated uint32 shards = 2; +} +``` diff --git a/content/menu/index.md b/content/menu/index.md index 689686a09..1e349b72b 100644 --- a/content/menu/index.md +++ b/content/menu/index.md @@ -26,6 +26,7 @@ bookMenuLevels: 1 - [61/STATUS-Community-History-Archives]({{< relref "/docs/rfcs/61/README.md" >}}) - [63/STATUS-Keycard-Usage]({{< relref "/docs/rfcs/63/README.md" >}}) - [64/WAKU2-NETWORK]({{< relref "/docs/rfcs/64/README.md" >}}) + - [66/WAKU2-METADATA]({{< relref "/docs/rfcs/66/README.md" >}}) - Draft - [1/COSS]({{< relref "/docs/rfcs/1/README.md" >}}) - [3/REMOTE-LOG]({{< relref "/docs/rfcs/3/README.md" >}})