2018-03-09 20:44:13 +00:00
|
|
|
syntax = "proto3";
|
|
|
|
package protocol;
|
|
|
|
|
|
|
|
message CwtchPeerPacket {
|
|
|
|
CwtchIdentity cwtch_identify = 1;
|
|
|
|
GroupChatInvite group_chat_invite = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
message CwtchIdentity {
|
|
|
|
string name = 1;
|
|
|
|
bytes ed25519_public_key = 2;
|
|
|
|
}
|
|
|
|
|
|
|
|
// [name] has invited you to join a group chat: [message]
|
|
|
|
message GroupChatInvite {
|
|
|
|
string group_name = 1;
|
|
|
|
bytes group_shared_key = 2;
|
|
|
|
string server_host = 3;
|
2018-03-15 20:53:22 +00:00
|
|
|
bytes signed_group_id = 4;
|
2018-09-21 18:02:46 +00:00
|
|
|
bytes initial_message = 5;
|
2018-03-09 20:44:13 +00:00
|
|
|
}
|