From 420f90d86c437620e9b6889e15748fe07770aef8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oskar=20Thor=C3=A9n?= Date: Wed, 7 Apr 2021 15:56:15 +0800 Subject: [PATCH] 14: Payloads are proto3 (#333) --- content/docs/rfcs/14/README.md | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/content/docs/rfcs/14/README.md b/content/docs/rfcs/14/README.md index 2c402223..cb7b9b3e 100644 --- a/content/docs/rfcs/14/README.md +++ b/content/docs/rfcs/14/README.md @@ -35,14 +35,18 @@ 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 +## Payloads + +Payloads are implemented using [protocol buffers v3](https://developers.google.com/protocol-buffers/). ```protobuf +syntax = "proto3"; + message WakuMessage { - optional bytes payload = 1; - optional uint32 contentTopic = 2; - optional uint32 version = 3; - optional double timestamp = 4; + bytes payload = 1; + uint32 contentTopic = 2; + uint32 version = 3; + double timestamp = 4; } ```