Adds timestamp to waku message (#324)

* adds timestamp to waku message

* fixes field number

* clarifies the timestamp value

* change the field number
This commit is contained in:
Sanaz Taheri Boshrooyeh 2021-04-06 21:16:04 -07:00 committed by GitHub
parent 608b04ac45
commit cee11f4f88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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