mirror of
https://github.com/logos-messaging/nim-chat-poc.git
synced 2026-01-02 14:13:10 +00:00
25 lines
410 B
Protocol Buffer
25 lines
410 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.Ecies ecies = 2;
|
|
}
|
|
}
|
|
|
|
message Plaintext {
|
|
bytes payload=1;
|
|
}
|
|
|
|
message Ecies {
|
|
bytes encrypted_bytes=1;
|
|
bytes ephemeral_pubkey = 2;
|
|
bytes tag = 3;
|
|
}
|