Bring inline with inbox.md spec

This commit is contained in:
Jazz Turner-Baggs 2025-07-10 18:14:16 -07:00
parent c8f754bcd0
commit e7b9b4a7b5
No known key found for this signature in database
2 changed files with 4 additions and 13 deletions

View File

@ -3,22 +3,13 @@ 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;
NoiseKN noise_KN = 3;
}
}
message Plaintext {
bytes payload=1;
}
message Ecies {
bytes encrypted_bytes=1;
message NoiseKN {
bytes encrypted_bytes = 1;
bytes ephemeral_pubkey = 2;
bytes tag = 3;
}

View File

@ -7,7 +7,7 @@ package umbra.envelope;
// Payload Framing Messages
///////////////////////////////////////////////////////////////////////////////
message UmbraEnvelopeV1 {
message WapEnvelopeV1 {
string conversation_hint = 1;
uint64 salt = 2;