feat: add RateLimitProof field and message definition

This commit is contained in:
Richard Ramos 2023-10-24 15:31:45 -04:00
parent 51269d8c48
commit cc1baf0ac8
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760
3 changed files with 16 additions and 1 deletions

View File

@ -10,4 +10,5 @@ message WakuMessage {
optional sint64 timestamp = 10;
optional bytes meta = 11;
optional bool ephemeral = 31;
optional bytes rate_limit_proof = 21;
}

14
waku/rln/v1/rln.proto Normal file
View File

@ -0,0 +1,14 @@
syntax = "proto3";
// rfc: https://rfc.vac.dev/spec/17/
package waku.rln.v1;
message RateLimitProof {
bytes proof = 1;
bytes merkle_root = 2;
bytes epoch = 3;
bytes share_x = 4;
bytes share_y = 5;
bytes nullifier = 6;
bytes rln_identifier = 7;
}

View File

@ -37,7 +37,7 @@ message HistoryQuery {
}
message HistoryResponse {
// the first field is reserved for future use
// The first field is reserved for future use
repeated waku.message.v1.WakuMessage messages = 2;
PagingInfo paging_info = 3;
enum Error {