Name the key 'ciphertext' rather than 'ciphertexts'

pull/24/head
Mark Haines 9 years ago
parent 6f69707c71
commit 41d204e72c

@ -223,8 +223,7 @@ Encrypted messages are sent in the form.
"type": "m.room.encrypted" "type": "m.room.encrypted"
"content": { "content": {
"algorithm": "<algorithm_name>" "algorithm": "<algorithm_name>"
} } } }
} }
.. code:: json .. code:: json
@ -234,7 +233,7 @@ Encrypted messages are sent in the form.
"content": { "content": {
"algorithm": "m.olm.v1.curve25519-aes-sha2", "algorithm": "m.olm.v1.curve25519-aes-sha2",
"sender_key": <sender_curve25519_key>, "sender_key": <sender_curve25519_key>,
"ciphertexts": { "ciphertext": {
"<device_curve25519_key>: { "<device_curve25519_key>: {
"type": 0, "type": 0,
"body": "<base_64>" "body": "<base_64>"
@ -245,4 +244,5 @@ The plaintext payload is of the form:
.. code:: json .. code:: json
TODO: SPEC the JSON plaintext format {
}

Loading…
Cancel
Save