Refactor and comment

This commit is contained in:
ycc
2023-11-08 21:52:09 +01:00
parent 08ff9d58b8
commit 04a390d558
11 changed files with 271 additions and 294 deletions

View File

@ -51,7 +51,7 @@ message ToServerMessage {
repeated PackedUserMessage messages = 5;
repeated Server knownServers = 6;
repeated ServerCard knownServers = 6;
Matriochka matriochkaMessage = 7;
@ -75,7 +75,7 @@ message FromServerMessage {
repeated PackedUserMessage chat = 6;
repeated Server knownServers = 7;
repeated ServerCard knownServers = 7;
Invitation invitation = 8;
@ -96,7 +96,7 @@ message Matriochka {
}
// structure describing required server attributes
message Server {
message ServerCard {
string name = 1; // friendly server name
string description=2; // description : owner type (company/private/university...),
string publicKey = 3; // public key you must use to send encrypted messages to that server
@ -112,7 +112,7 @@ message ContactCard {
string contactPublicKey =2; // contact public key, will be used to authenticate her/his messages
string encryptionPublicKey= 3; // public key you must use to to write encrypted messages to that contact
string lookupPublicKey =4; // public key you will use as "destination identifier" for her/him to lookup for your messages on the servers
repeated Server pullServers =5; // list the servers where the contact will look for messages from you
repeated ServerCard pullServers =5; // list the servers where the contact will look for messages from you
uint32 version = 6;
string invitationId=7;
}
@ -151,7 +151,7 @@ message UserMessage {
ContactCard contact = 6;
Server knownServers = 7;
ServerCard knownServers = 7;
Group group = 8;