mirror of
https://github.com/logos-messaging/chat_proto.git
synced 2026-01-03 05:23:08 +00:00
25 lines
388 B
Protocol Buffer
25 lines
388 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package umbra.encryption;
|
|
|
|
|
|
message Plaintext {
|
|
bytes payload=1;
|
|
}
|
|
|
|
message Ecies {
|
|
bytes encrypted_bytes=1;
|
|
bytes ephemeral_pubkey = 2;
|
|
bytes tag = 3;
|
|
}
|
|
|
|
// TODO: This also encompasses plaintexts, is there a better name?
|
|
// Alternatives: ???
|
|
message EncryptedBytes {
|
|
|
|
oneof encryption {
|
|
Plaintext plaintext = 1;
|
|
Ecies ecies = 2;
|
|
}
|
|
}
|