Skip to content

Commit

Permalink
Merge pull request #105 from xmtp/nmolnar/pppp-messages
Browse files Browse the repository at this point in the history
feat: add PPPP message types
  • Loading branch information
neekolas authored Oct 23, 2023
2 parents 65c1ae5 + 40baf12 commit 5fcb10b
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions proto/message_contents/private_preferences.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// Private Key Storage
//
// Following definitions are not used in the protocol, instead
// they provide a way for encoding private keys for storage.
syntax = "proto3";

package xmtp.message_contents;

import "message_contents/ciphertext.proto";
import "message_contents/public_key.proto";

option go_package = "github.com/xmtp/proto/v3/go/message_contents";
option java_package = "org.xmtp.proto.message.contents";

// PrivatePreferencesAction is a message used to update the client's
// preference store. The only current actions are allow and block.
// Other actions may be added later
message PrivatePreferencesAction {
// Add the given wallet addresses to the allow list
message Allow {
repeated string wallet_addresses = 1;
}
// Add the given wallet addresses to the block list
message Block {
repeated string wallet_addresses = 1;
}

oneof message_type {
Allow allow = 1;
Block block = 2;
}
}

0 comments on commit 5fcb10b

Please sign in to comment.