2023-02-24 23:22:04 +11:00
|
|
|
// 14/WAKU2-MESSAGE rfc: https://rfc.vac.dev/spec/14/
|
|
|
|
|
|
2021-03-10 16:22:49 +11:00
|
|
|
syntax = "proto3";
|
|
|
|
|
|
2022-09-25 11:30:26 -04:00
|
|
|
message RateLimitProof {
|
|
|
|
|
bytes proof = 1;
|
|
|
|
|
bytes merkle_root = 2;
|
|
|
|
|
bytes epoch = 3;
|
|
|
|
|
bytes share_x = 4;
|
|
|
|
|
bytes share_y = 5;
|
|
|
|
|
bytes nullifier = 6;
|
2023-02-24 23:22:04 +11:00
|
|
|
bytes rln_identifier = 7;
|
2022-09-25 11:30:26 -04:00
|
|
|
}
|
|
|
|
|
|
2021-05-03 16:26:02 +10:00
|
|
|
message WakuMessage {
|
2023-02-24 23:22:04 +11:00
|
|
|
bytes payload = 1;
|
|
|
|
|
string content_topic = 2;
|
2021-03-10 16:22:49 +11:00
|
|
|
optional uint32 version = 3;
|
2023-02-24 23:22:04 +11:00
|
|
|
optional sint64 timestamp = 10;
|
2023-03-10 14:41:07 +11:00
|
|
|
optional bytes meta = 11;
|
2022-09-25 11:30:26 -04:00
|
|
|
optional RateLimitProof rate_limit_proof = 21;
|
2022-11-16 11:00:43 +11:00
|
|
|
optional bool ephemeral = 31;
|
2021-03-10 16:22:49 +11:00
|
|
|
}
|