mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-08-05 07:27:52 +02:00
Compare commits
No commits in common. "19fbee984247d7053c89238d37fb2d02fa60ac6a" and "34c939204ed4dce6ccabf6d3c41a4d52822e8037" have entirely different histories.
19fbee9842
...
34c939204e
|
|
@ -1 +0,0 @@
|
||||||
Add links from the Client-Server spec to the Olm message definitions.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Disambiguate placeholder descriptions in OlmPayload example.
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
Replace "Olm message" with "event encrypted using Olm" where not referring to the Olm message format.
|
|
||||||
|
|
@ -1623,9 +1623,9 @@ An event encrypted using Olm has the following format:
|
||||||
```
|
```
|
||||||
|
|
||||||
`ciphertext` is a mapping from device Curve25519 key to an encrypted
|
`ciphertext` is a mapping from device Curve25519 key to an encrypted
|
||||||
payload for that device. `body` is a Base64-encoded [Olm message body](/olm-megolm/olm/#the-olm-message-format).
|
payload for that device. `body` is a Base64-encoded Olm message body.
|
||||||
`type` is an integer indicating the type of the message body: 0 for the
|
`type` is an integer indicating the type of the message body: 0 for the
|
||||||
initial [pre-key message](/olm-megolm/olm/#pre-key-messages), 1 for [normal messages](/olm-megolm/olm/#normal-messages).
|
initial pre-key message, 1 for ordinary 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
|
||||||
|
|
@ -1698,7 +1698,7 @@ Curve25519 key used to establish the Olm session does indeed belong
|
||||||
to the claimed `sender`. This requires a signed "device keys" structure
|
to the claimed `sender`. This requires a signed "device keys" structure
|
||||||
for that Curve25519 key, which can be obtained in one of two ways:
|
for that Curve25519 key, which can be obtained in one of two ways:
|
||||||
|
|
||||||
1. An event encrypted using Olm may be received with a `sender_device_keys` property
|
1. An Olm message may be received with a `sender_device_keys` property
|
||||||
in the decrypted content.
|
in the decrypted content.
|
||||||
2. The keys are returned via a [`/keys/query`](#post_matrixclientv3keysquery)
|
2. The keys are returned via a [`/keys/query`](#post_matrixclientv3keysquery)
|
||||||
request. Note that both the Curve25519 key **and** the Ed25519 key in
|
request. Note that both the Curve25519 key **and** the Ed25519 key in
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@
|
||||||
type: object
|
type: object
|
||||||
title: OlmPayload
|
title: OlmPayload
|
||||||
description: |-
|
description: |-
|
||||||
The plaintext payload of an event encrypted using Olm.
|
The plaintext payload of Olm message events.
|
||||||
properties:
|
properties:
|
||||||
type:
|
type:
|
||||||
type: string
|
type: string
|
||||||
|
|
@ -65,15 +65,15 @@ example: {
|
||||||
"sender": "<sender_user_id>",
|
"sender": "<sender_user_id>",
|
||||||
"recipient": "<recipient_user_id>",
|
"recipient": "<recipient_user_id>",
|
||||||
"recipient_keys": {
|
"recipient_keys": {
|
||||||
"ed25519": "<recipient_ed25519_key>"
|
"ed25519": "<our_ed25519_key>"
|
||||||
},
|
},
|
||||||
"keys": {
|
"keys": {
|
||||||
"ed25519": "<sender_ed25519_key>"
|
"ed25519": "<sender_ed25519_key>"
|
||||||
},
|
},
|
||||||
"sender_device_keys": {
|
"sender_device_keys": {
|
||||||
"algorithms": ["<supported>", "<algorithms>"],
|
"algorithms": ["<supported>", "<algorithms>"],
|
||||||
"user_id": "<sender_user_id>",
|
"user_id": "<user_id>",
|
||||||
"device_id": "<sender_device_id>",
|
"device_id": "<device_id>",
|
||||||
"keys": {
|
"keys": {
|
||||||
"ed25519:<device_id>": "<sender_ed25519_key>",
|
"ed25519:<device_id>": "<sender_ed25519_key>",
|
||||||
"curve25519:<device_id>": "<sender_curve25519_key>"
|
"curve25519:<device_id>": "<sender_curve25519_key>"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue