encryption + helpers + contact card compression + server routing start

This commit is contained in:
ycc
2022-10-22 14:41:48 +02:00
parent 2160babeae
commit fc3747a124
15 changed files with 350 additions and 24 deletions

View File

@ -5,8 +5,8 @@ option go_package = "forge.redroom.link/yves/meowlib";
// structure definnig a message as received by a server in protobuf format
message PackedServerMessage {
string from = 1; // The client public key for that server to get an answer
bytes payload = 2; // The ToServerMessage encrypted with the server public key
bytes signature = 3; // The message signature with the client public key
bytes payload = 2; // The ToServerMessage encrypted with the server public key |or| symetrical encryption as agreed earlier
bytes signature = 3; // The message signature with the client public key |eo| the reference to teh symetrical key used
}
// structure defining a message for a server, that will be encrypted, then sent in a "packedmessage" payload