nim-chat-poc/protos/encryption.proto
Jazz Turner-Baggs db47ffd5a4 Initial commit
2025-09-03 14:43:54 -07:00

25 lines
412 B
Protocol Buffer

syntax = "proto3";
package umbra.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;
}