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