feat(waku2-filter): add waku v2 filter protocol v2beta1 wire format

This commit is contained in:
Lorenzo Delgado 2022-11-17 12:45:18 +01:00
parent d9f98dabce
commit d468d68899
No known key found for this signature in database
GPG Key ID: 3F2308060F9292F9
2 changed files with 29 additions and 2 deletions

View File

@ -0,0 +1,27 @@
syntax = "proto3";
// 12/WAKU2-FILTER rfc: https://rfc.vac.dev/spec/12/
// Protocol identifier: /vac/waku/filter/2.0.0-beta1
package waku.filter.v2beta1;
import "waku/message/v1/message.proto";
message FilterRequest {
message ContentFilter {
string content_topic = 1;
}
bool subscribe = 1;
string topic = 2;
repeated ContentFilter content_filters = 3;
}
message MessagePush {
repeated waku.message.v1.WakuMessage messages = 1;
}
message FilterRpc {
string request_id = 1;
optional FilterRequest request = 2;
optional MessagePush push = 3;
}

View File

@ -1,11 +1,11 @@
syntax = "proto3";
import "waku/message/v1/message.proto";
// 13/WAKU2-STORE rfc: https://rfc.vac.dev/spec/13/
// Protocol identifier: /vac/waku/store/2.0.0-beta4
package waku.store.v2beta4;
import "waku/message/v1/message.proto";
message Index {
bytes digest = 1;
sint64 receiver_time = 2;