From d32336b1b73b84682fccb08cde091543a4cb794f Mon Sep 17 00:00:00 2001 From: decanus <7621705+decanus@users.noreply.github.com> Date: Thu, 9 Jul 2020 15:23:04 +0200 Subject: [PATCH] added protobuf --- specs/waku/waku-v2.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/specs/waku/waku-v2.md b/specs/waku/waku-v2.md index 32dfb220..9b1ea30e 100644 --- a/specs/waku/waku-v2.md +++ b/specs/waku/waku-v2.md @@ -168,6 +168,35 @@ NOTE: This doesn't appear to be documented in PubSub spec, upstream? ### Historical message support +```protobuf +message Cursor { + bytes before = 1; + bytes after = 2; +} + +message Query { + int32 from = 1; + int32 to = 2; + bytes bloom = 3; + int32 limit = 4; + repeated bytes topics = 5; + Cursor cursor = 6; +} + +message Envelope { + int32 expiry = 1; + int32 ttl = 2; + bytes nonce = 3; + bytes topic = 4; + bytes data = 5; +} + +message Response { + repeated Envelope envelopes = 1; + Cursor cursor = 2; +} +``` + TODO(Dean): Fill out this section with historical message API. - Add issue for this in specs repository