matriochka start send and route + doc upt

This commit is contained in:
ycc
2022-12-27 16:59:52 +01:00
parent 1912f89cc6
commit 52ae52ca9f
7 changed files with 434 additions and 132 deletions

View File

@ -28,8 +28,10 @@ message ToServerMessage {
repeated PackedUserMessage messages = 5;
repeated Server knownServers = 6;
Matriochka matriochkaMessage = 7;
string uuid = 7;
string uuid = 8;
}
@ -45,13 +47,26 @@ message FromServerMessage {
repeated string messageUuids = 1;
}
repeated PackedUserMessage chat = 6;
repeated Server knownServers = 7;
}
message MatriochkaServer {
string url = 1; // Server Url
string publicKey = 2; // Server Public Key
string uuid = 3 ; // Optional, uuid for delivery confirmation
int32 delay = 4; // Max delay requested for message forwarding or delivery tracking
}
message Matriochka {
string lookupKey = 1; // Optional, only if you want delivery tracking, less stealth
MatriochkaServer prev = 2; // Optional, like above
MatriochkaServer next = 3; // Next server to deliver the message to
bytes data = 4; // Matriochka data
}
// structure describing required server attributes
message Server {
string name = 1;
@ -59,7 +74,7 @@ message Server {
string publicKey = 3;
string url = 4;
bool publish = 5; // publish this server when asked for a list by server
bytes signature = 6; // signature of all previous field by the server itself
bytes signature = 6; // signature of all previous fields by the server itself
int32 confidenceLevel = 7; // additional info from the user
}
@ -82,6 +97,7 @@ message PackedUserMessage {
repeated int64 serverTimestamp=4; // server time stamp, might be several in matriochka mode
}
// structure defining information that might be exchanged between two peers.
message UserMessage {
string destination = 1; // Lookupkey
@ -95,7 +111,7 @@ message UserMessage {
uint64 received = 4;
uint64 processed = 5;
ContactCard myNextIdentity = 6;
int32 peerNextIdentityAck = 7; // version of the new peed accepted id
int32 peerNextIdentityAck = 7; // version of the new peer accepted id
}
ConversationStatus Status = 5;