messages structure simplfy + routing
This commit is contained in:
@ -45,13 +45,10 @@ message FromServerMessage {
|
||||
repeated string messageUuids = 1;
|
||||
}
|
||||
|
||||
map<string,ConversationResponse> pullResponse = 6;
|
||||
|
||||
message PostedMessage{
|
||||
string lookupKey= 1;
|
||||
repeated PackedUserMessage messages = 2;
|
||||
}
|
||||
repeated PostedMessage chat = 7;
|
||||
repeated PackedUserMessage chat = 6;
|
||||
|
||||
repeated Server knownServers = 7;
|
||||
|
||||
}
|
||||
|
||||
@ -76,10 +73,11 @@ message ContactCard {
|
||||
|
||||
// structure for sending a message to be forwarded to another user in protobuf format
|
||||
message PackedUserMessage {
|
||||
string from = 1; // the client identity public key as known by the destination peer
|
||||
string destination=2; // the peer's current conversation lookup public key
|
||||
bytes payload=3; // the message UserMessage encrypted with the destination peer's public key
|
||||
bytes signature=4; // the payload signature with the client identity private key
|
||||
//string from = 1; // the client identity public key as known by the destination peer // remove, limit server tracking
|
||||
string destination=1; // the peer's current conversation lookup public key
|
||||
bytes payload=2; // the message UserMessage encrypted with the destination peer's public key
|
||||
bytes signature=3; // the payload signature with the client identity private key
|
||||
repeated int64 serverTimestamp=4; // server time stamp, might be several in matriochka mode
|
||||
}
|
||||
|
||||
// structure defining information that might be exchanged between two peers.
|
||||
|
Reference in New Issue
Block a user