-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from xmtp/nmolnar/pppp-messages
feat: add PPPP message types
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} | ||
} |