From cee11f4f88ead1548feb1fb0ee62739a567c224d Mon Sep 17 00:00:00 2001 From: Sanaz Taheri Boshrooyeh <35961250+staheri14@users.noreply.github.com> Date: Tue, 6 Apr 2021 21:16:04 -0700 Subject: [PATCH] Adds timestamp to waku message (#324) * adds timestamp to waku message * fixes field number * clarifies the timestamp value * change the field number --- content/docs/rfcs/14/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/content/docs/rfcs/14/README.md b/content/docs/rfcs/14/README.md index 25bccbb7..2c402223 100644 --- a/content/docs/rfcs/14/README.md +++ b/content/docs/rfcs/14/README.md @@ -33,6 +33,8 @@ See [12/WAKU2-FILTER](/spec/12) and [13/WAKU2-STORE](/spec/13) for details. The `version` field MAY be filled out to allow for various types of payload encryption. Omitting it means the version is 0. +The `timestamp` field MAY be filled out to signify the time at which the message is generated by its sender. This field holds the Unix epoch time. Omitting it means the timestamp is unspecified. + ## Protobuf ```protobuf @@ -40,6 +42,7 @@ message WakuMessage { optional bytes payload = 1; optional uint32 contentTopic = 2; optional uint32 version = 3; + optional double timestamp = 4; } ```