mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-28 03:48:36 +01:00
Name the key 'ciphertext' rather than 'ciphertexts'
This commit is contained in:
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…
Reference in a new issue