feat(px): add peer-exchange v2alpha1 wire format (#12)

This commit is contained in:
Alvaro Revuelta 2023-02-08 17:18:31 +01:00 committed by GitHub
parent 422c6ff737
commit 6a89c52065
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 29 additions and 0 deletions

View File

@ -6,3 +6,10 @@ environments. At a high level, Waku v2 implements a Pub/Sub messaging pattern ov
capabilities to it.
[Learn more about Waku](https://waku.org/)
## Dependencies
For mac:
```console
brew install bufbuild/buf/buf
```

View File

@ -0,0 +1,22 @@
syntax = "proto3";
// 34/WAKU2-PEER-EXCHANGE rfc: https://rfc.vac.dev/spec/34/
// Protocol identifier: /vac/waku/peer-exchange/2.0.0-alpha1
package waku.peer_exchange.v2alpha1;
message PeerInfo {
bytes enr = 1;
}
message PeerExchangeQuery {
uint64 num_peers = 1;
}
message PeerExchangeResponse {
repeated PeerInfo peer_infos = 1;
}
message PeerExchangeRPC {
PeerExchangeQuery query = 1;
PeerExchangeResponse response = 2;
}