diff --git a/protos/encryption.proto b/protos/encryption.proto index a245369..b7eb6f7 100644 --- a/protos/encryption.proto +++ b/protos/encryption.proto @@ -10,6 +10,7 @@ message EncryptedPayload { oneof encryption { encryption.Plaintext plaintext = 1; encryption.Doubleratchet doubleratchet = 2; + encryption.XK0 xk0 = 3; } } @@ -24,3 +25,11 @@ message Doubleratchet { bytes ciphertext = 4; string aux = 5; } + +message XK0 { + bytes initiator_static = 1; + bytes initiator_ephemeral = 2; + bytes responder_static = 3; + bytes responder_ephemeral = 4; + bytes payload = 5; +} diff --git a/protos/invite.proto b/protos/invite.proto index 608f8d4..2121a9d 100644 --- a/protos/invite.proto +++ b/protos/invite.proto @@ -5,10 +5,6 @@ package logoschat.invite; import "encryption.proto"; message InvitePrivateV1 { - bytes initiator = 1; - bytes initiator_ephemeral = 2; - bytes participant = 3; - int32 participant_ephemeral_id= 4; string discriminator = 5; encryption.EncryptedPayload initial_message = 6; }