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

This commit is contained in:
Lorenzo Delgado 2022-11-18 08:43:45 +01:00 committed by GitHub
parent d9f98dabce
commit 5c039cdc9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 25 additions and 2 deletions

View File

@ -0,0 +1,23 @@
syntax = "proto3";
// 19/WAKU2-LIGHTPUSH rfc: https://rfc.vac.dev/spec/19/
// Protocol identifier: /vac/waku/lightpush/2.0.0-beta1
package waku.lightpush.v2beta1;
import "waku/message/v1/message.proto";
message PushRequest {
string pubsub_topic = 1;
waku.message.v1.WakuMessage message = 2;
}
message PushResponse {
bool is_success = 1;
optional string info = 2;
}
message PushRpc {
string request_id = 1;
optional PushRequest request = 2;
optional PushResponse response = 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;