mirror of
https://github.com/logos-messaging/waku-proto.git
synced 2026-01-07 08:33:10 +00:00
feat(px): add peer-exchange v2alpha1 wire format (#12)
This commit is contained in:
parent
422c6ff737
commit
6a89c52065
@ -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
|
||||
```
|
||||
|
||||
22
waku/peer_exchange/v2alpha1/peer_exchange.proto
Normal file
22
waku/peer_exchange/v2alpha1/peer_exchange.proto
Normal 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;
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user