Skip to content

Commit

Permalink
Merge pull request #117 from xmtp/insipx/remove-add-wallet-addresses
Browse files Browse the repository at this point in the history
Make Add/Remove member intents store wallet address
  • Loading branch information
insipx authored Dec 11, 2023
2 parents 5fe66ea + 0513809 commit 8d1c361
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions proto/mls/database/intents.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// V3 invite message structure

syntax = "proto3";

package xmtp.mls.database;
Expand All @@ -17,12 +18,29 @@ message SendMessageData {
V1 v1 = 1;
}
}
// Wrapper around a list af repeated EVM Account Addresses
message AccountAddresses {
repeated string account_addresses = 1;
}

// Wrapper around a list of repeated Installation IDs
message InstallationIds {
repeated bytes installation_ids = 1;
}

// One of an EVM account address or Installation ID
message AddressesOrInstallationIds {
oneof addresses_or_installation_ids {
AccountAddresses account_addresses = 1;
InstallationIds installation_ids = 2;
}
}

// The data required to add members to a group
message AddMembersData {
// V1 of AddMembersPublishData
message V1 {
repeated bytes key_packages_bytes = 1;
AddressesOrInstallationIds addresses_or_installation_ids = 1;
}

oneof version {
Expand All @@ -34,7 +52,7 @@ message AddMembersData {
message RemoveMembersData {
// V1 of RemoveMembersPublishData
message V1 {
repeated bytes installation_ids = 1;
AddressesOrInstallationIds addresses_or_installation_ids = 1;
}

oneof version {
Expand Down

0 comments on commit 8d1c361

Please sign in to comment.