chat_proto/proto/umbra/encryption.proto

27 lines
414 B
Protocol Buffer
Raw Normal View History

2025-06-25 15:12:50 -07:00
syntax = "proto3";
package umbra.encryption;
2025-07-03 14:04:13 -07:00
// TODO: This also encompasses plaintexts, is there a better name?
// Alternatives: ???
message EncryptedPayload {
oneof encryption {
encryption.Plaintext plaintext = 1;
encryption.Ecies ecies = 2;
}
}
2025-06-25 15:12:50 -07:00
message Plaintext {
bytes payload=1;
}
message Ecies {
bytes encrypted_bytes=1;
bytes ephemeral_pubkey = 2;
bytes tag = 3;
}