mirror of
https://github.com/logos-messaging/chat_proto.git
synced 2026-01-07 07:23:07 +00:00
removed manditory encryption header
This commit is contained in:
parent
d51c500ce4
commit
5fd32881e4
@ -24,35 +24,10 @@ message ReliabilityInfo {
|
|||||||
///////////////////////////////////////////////////////////////////////////////
|
///////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
// TODO: This also encompasses plaintexts, is there a better name?
|
|
||||||
// Alternatives: ???
|
|
||||||
|
|
||||||
message EncryptedBytes {
|
|
||||||
|
|
||||||
oneof encryption {
|
|
||||||
bytes encrypted_bytes=1;
|
|
||||||
Plaintext plaintext = 2;
|
|
||||||
Ecies ecies = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
message Ecies {
|
|
||||||
bytes encrypted_bytes=1;
|
|
||||||
bytes ephemeral_pubkey = 2;
|
|
||||||
bytes tag = 3;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
message Plaintext {
|
|
||||||
bytes payload=1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
message UmbraEnvelopeV1 {
|
message UmbraEnvelopeV1 {
|
||||||
|
|
||||||
string conversation_hint = 1;
|
string conversation_hint = 1;
|
||||||
uint32 nonce = 2;
|
uint32 nonce = 2;
|
||||||
|
|
||||||
EncryptedBytes encrypted_bytes = 100;
|
bytes encrypted_bytes = 100;
|
||||||
}
|
}
|
||||||
24
proto/umbra/encryption.proto
Normal file
24
proto/umbra/encryption.proto
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
syntax = "proto3";
|
||||||
|
|
||||||
|
package umbra.encryption;
|
||||||
|
|
||||||
|
|
||||||
|
message Plaintext {
|
||||||
|
bytes payload=1;
|
||||||
|
}
|
||||||
|
|
||||||
|
message Ecies {
|
||||||
|
bytes encrypted_bytes=1;
|
||||||
|
bytes ephemeral_pubkey = 2;
|
||||||
|
bytes tag = 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
// TODO: This also encompasses plaintexts, is there a better name?
|
||||||
|
// Alternatives: ???
|
||||||
|
message EncryptedBytes {
|
||||||
|
|
||||||
|
oneof encryption {
|
||||||
|
Plaintext plaintext = 1;
|
||||||
|
Ecies ecies = 2;
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user