Skip to content

Commit

Permalink
feat: add RateLimitProof field and message definition
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-ramos committed Oct 24, 2023
1 parent 51269d8 commit cdea2c8
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions waku/message/v1/message.proto
Original file line number Diff line number Diff line change
Expand Up @@ -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 changes: 14 additions & 0 deletions waku/rln/v1/rln.proto
Original file line number Diff line number Diff line change
@@ -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;
optional bytes rln_identifier = 7;
}

0 comments on commit cdea2c8

Please sign in to comment.