mirror of
https://github.com/logos-messaging/chat_proto.git
synced 2026-01-02 13:03:10 +00:00
Bring inline with inbox.md spec
This commit is contained in:
parent
c8f754bcd0
commit
e7b9b4a7b5
@ -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;
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@ package umbra.envelope;
|
||||
// Payload Framing Messages
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
message UmbraEnvelopeV1 {
|
||||
message WapEnvelopeV1 {
|
||||
|
||||
string conversation_hint = 1;
|
||||
uint64 salt = 2;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user