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

This commit is contained in:
Lorenzo Delgado 2022-11-18 08:44:08 +01:00 committed by GitHub
parent 5c039cdc9d
commit 422c6ff737
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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;
}