mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-08-04 23:17:48 +02:00
Compare commits
4 commits
6027c04ea7
...
3685b912f9
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3685b912f9 | ||
|
|
3e6c1e35d9 | ||
|
|
409d052b79 | ||
|
|
22dfc249b6 |
|
|
@ -1742,11 +1742,11 @@ The content of an event encrypted using Olm has the following format:
|
||||||
Note that when the event is received from the server, it will have a `type`
|
Note that when the event is received from the server, it will have a `type`
|
||||||
(with a value of `m.room.encrypted`) and `sender` property alongside the
|
(with a value of `m.room.encrypted`) and `sender` property alongside the
|
||||||
`content` property. In `content`, `ciphertext` is a mapping from a device
|
`content` property. In `content`, `ciphertext` is a mapping from a device
|
||||||
Curve25519 key to an object with a `type` and a `body`. Here, `type` is an
|
Curve25519 key to an object with a `type` and a `body`. Here, `body` is a
|
||||||
integer indicating the type of the message body:
|
Base64-encoded [Olm message](/olm-megolm/olm/#the-olm-message-format), and
|
||||||
0 for the initial [pre-key message](/olm-megolm/olm/#pre-key-messages),
|
`type` is an integer indicating the type of the message:
|
||||||
1 for [normal messages](/olm-megolm/olm/#normal-messages);
|
0 for the initial [pre-key messages](/olm-megolm/olm/#pre-key-messages),
|
||||||
`body` is a Base64-encoded [Olm message body](/olm-megolm/olm/#the-olm-message-format).
|
1 for [normal messages](/olm-megolm/olm/#normal-messages).
|
||||||
|
|
||||||
Olm sessions will generate messages with a type of 0 until they receive
|
Olm sessions will generate messages with a type of 0 until they receive
|
||||||
a message. Once a session has decrypted a message it will produce
|
a message. Once a session has decrypted a message it will produce
|
||||||
|
|
@ -1912,7 +1912,7 @@ The content of an event encrypted using Megolm has the following format:
|
||||||
Note that when the event is received from the server, it will have additional
|
Note that when the event is received from the server, it will have additional
|
||||||
properties alongside the `content` property, including a `type` (with a value
|
properties alongside the `content` property, including a `type` (with a value
|
||||||
of `m.room.encrypted`) and a `sender` property. In `content`, `ciphertext`
|
of `m.room.encrypted`) and a `sender` property. In `content`, `ciphertext`
|
||||||
is a Base64-encoded [Megolm message body](/olm-megolm/megolm/#message-format),
|
is a Base64-encoded [Megolm message](/olm-megolm/megolm/#message-format),
|
||||||
whose plaintext body is of the form:
|
whose plaintext body is of the form:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue