chat_proto/proto/umbra/encryption.proto
Jazz Turner-Baggs 90b3154c12
newline cleanup
2025-07-04 13:36:36 -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;
}