mirror of
https://github.com/vacp2p/rfc.git
synced 2025-01-24 21:58:58 +00:00
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:
parent
608b04ac45
commit
cee11f4f88
@ -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;
|
||||
}
|
||||
```
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user