rfc/content/docs/rfcs/66
Alvaro Revuelta d865b83c6b
feat(66/WAKU2-METADATA): add WakuMetadata Protocol (#619)
2023-10-03 18:11:13 +02:00
..
README.md feat(66/WAKU2-METADATA): add WakuMetadata Protocol (#619) 2023-10-03 18:11:13 +02:00

README.md

slug title name status editor contributors
66 66/WAKU2-METADATA Waku Metadata Protocol raw Alvaro Revuelta <alrevuelta@status.im>

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

message WakuMetadataRequest {
  optional uint32 cluster_id = 1;
  repeated uint32 shards = 2;
}

Response

message WakuMetadataResponse {
  optional uint32 cluster_id = 1;
  repeated uint32 shards = 2;
}