1
0
mirror of https://github.com/moparisthebest/xeps synced 2024-11-21 16:55:07 -05:00

Protobuf structures improved

This commit is contained in:
Tim Henkes 2020-03-08 14:12:10 +01:00
parent f60fdbec98
commit 94c8f01e53

View File

@ -564,23 +564,23 @@
<section1 topic='Protobuf Schema' anchor='protobuf-schema'>
<code><![CDATA[
message OMEMOMessage {
bytes dh_pub;
uint32 n;
uint32 pn;
optional bytes ciphertext;
required uint32 n = 1;
required uint32 pn = 2;
required bytes dh_pub = 3;
optional bytes ciphertext = 4;
}
message OMEMOAuthenticatedMessage {
bytes mac;
bytes omemo_message;
required bytes mac = 1;
required OMEMOMessage message = 2;
}
message OMEMOKeyExchange {
uint32 pk_id;
uint32 spk_id;
bytes ik;
bytes ek;
bytes omemo_authenticated_message;
required uint32 pk_id = 1;
required uint32 spk_id = 2;
required bytes ik = 3;
required bytes ek = 4;
required OMEMOAuthenticatedMessage message = 5;
}
]]></code>
</section1>