mirror of
https://github.com/moparisthebest/xeps
synced 2024-11-21 16:55:07 -05:00
Protobuf structures improved
This commit is contained in:
parent
f60fdbec98
commit
94c8f01e53
22
xep-0384.xml
22
xep-0384.xml
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user