diff --git a/proto/mls/message_contents/association.proto b/proto/mls/message_contents/association.proto deleted file mode 100644 index b18ab67..0000000 --- a/proto/mls/message_contents/association.proto +++ /dev/null @@ -1,54 +0,0 @@ -// Associations and signatures -syntax = "proto3"; - -package xmtp.mls.message_contents; - -import "message_contents/public_key.proto"; - -option go_package = "github.com/xmtp/proto/v3/go/mls/message_contents"; -option java_package = "org.xmtp.proto.mls.message.contents"; - -// Allows for us to update the format of the association text without -// incrementing the entire proto -enum AssociationTextVersion { - ASSOCIATION_TEXT_VERSION_UNSPECIFIED = 0; - ASSOCIATION_TEXT_VERSION_1 = 1; -} - -// Used for "Grant Messaging Access" associations -message GrantMessagingAccessAssociation { - AssociationTextVersion association_text_version = 1; - RecoverableEcdsaSignature signature = 2; // EIP-191 signature - string account_address = 3; - uint64 created_ns = 4; -} - -// Used for "Revoke Messaging Access" associations -message RevokeMessagingAccessAssociation { - AssociationTextVersion association_text_version = 1; - RecoverableEcdsaSignature signature = 2; // EIP-191 signature - string account_address = 3; - uint64 created_ns = 4; -} - -// LegacyCreateIdentityAssociation is used when a v3 installation key -// is signed by a v2 identity key, which in turn is signed via a -// 'CreateIdentity' wallet signature -message LegacyCreateIdentityAssociation { - // Signs SHA-256 hash of installation key - RecoverableEcdsaSignature signature = 1; - // created_ns is encoded inside serialized key, account_address is recoverable - // from the SignedPublicKey signature - xmtp.message_contents.SignedPublicKey signed_legacy_create_identity_key = 2; -} - -// RecoverableEcdsaSignature -message RecoverableEcdsaSignature { - // 65-bytes [ R || S || V ], with recovery id as the last byte - bytes bytes = 1; -} - -// EdDSA signature bytes matching RFC 8032 -message EdDsaSignature { - bytes bytes = 1; -} diff --git a/proto/mls/message_contents/credential.proto b/proto/mls/message_contents/credential.proto deleted file mode 100644 index 69cee17..0000000 --- a/proto/mls/message_contents/credential.proto +++ /dev/null @@ -1,31 +0,0 @@ -// Credentials and revocations -syntax = "proto3"; - -package xmtp.mls.message_contents; - -import "mls/message_contents/association.proto"; - -option go_package = "github.com/xmtp/proto/v3/go/mls/message_contents"; -option java_package = "org.xmtp.proto.mls.message.contents"; - -// A credential that can be used in MLS leaf nodes -message MlsCredential { - bytes installation_public_key = 1; - oneof association { - GrantMessagingAccessAssociation messaging_access = 2; - LegacyCreateIdentityAssociation legacy_create_identity = 3; - } -} - -// A declaration and proof that a credential is no longer valid -message CredentialRevocation { - oneof public_key { - // The 'installation_public_key' field of the MlsCredential proto - bytes installation_key = 1; - // The 'key_bytes' field of the legacy SignedPublicKey proto - bytes unsigned_legacy_create_identity_key = 2; - } - oneof association { - RevokeMessagingAccessAssociation messaging_access = 3; - } -}