mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-01-02 14:13:10 +00:00
27 lines
493 B
Protocol Buffer
27 lines
493 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package wap.encryption;
|
|
|
|
|
|
// TODO: This also encompasses plaintexts, is there a better name?
|
|
// Alternatives: ???
|
|
message EncryptedPayload {
|
|
|
|
oneof encryption {
|
|
encryption.Plaintext plaintext = 1;
|
|
encryption.Doubleratchet doubleratchet = 2;
|
|
}
|
|
}
|
|
|
|
message Plaintext {
|
|
bytes payload=1;
|
|
}
|
|
|
|
message Doubleratchet {
|
|
bytes dh = 1; // 32 byte array
|
|
uint32 msgNum = 2;
|
|
uint32 prevChainLen = 3;
|
|
bytes ciphertext = 4;
|
|
string aux = 5;
|
|
}
|