This commit is contained in:
N
2022-09-02 12:07:21 +02:00
parent 3966299a91
commit 6d183d2b59
21 changed files with 524 additions and 289 deletions

View File

@ -2,12 +2,14 @@ syntax = "proto3";
package meowlib;
option go_package = "forge.redroom.link/yves/meowlib";
// structure for sending a message intended for server use in protobuf format
message PackedServerMessage {
string From = 1;
bytes Payload = 2;
string Signature = 3;
bytes Signature = 3;
}
// structure for sending a message to be forwarded to another user in protobuf format
message PackedUserMessage {
string From = 1;
string Destination=2;
@ -15,6 +17,7 @@ message PackedUserMessage {
bytes Signature=4;
}
// structure defining a message to be forwarded encrypted, then sent in a "packedmessage"
message ServerMessage {
string Type = 1;
string ServerPubKey = 2 ;
@ -72,10 +75,12 @@ message UserMessage {
uint64 Sent = 3 ;
uint64 Received = 4;
uint64 Processed = 5;
string NextCcid = 6;
bool NextCcidAck = 7; // false when proposing a new id, true for accepting it
string NextCcpkey = 8;
bool NextKeyCcpkeyAck = 9; // false when proposing a new key, true for accpeting it
string NextCkey = 6; // contact key
bool NextCkeyAck = 7; // false when proposing a new id, true for accepting it
string NextEkey = 8; // encryption key
bool NextKeyEkeyAck = 9; // false when proposing a new key, true for accpeting it
string NextLkey = 10; // lookup key
bool NextLkeyAck = 11; // false when proposing a new id, true for accepting it
}
ConversationStatus Status = 5;