mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-07-02 12:17:47 +02:00
Apply suggestions from code review
Co-authored-by: Kévin Commaille <76261501+zecakeh@users.noreply.github.com>
This commit is contained in:
parent
1415b6b1ba
commit
141cc8e11c
|
|
@ -1624,7 +1624,7 @@ Otherwise, before inviting Bob to a room, Alice's client constructs and sends a
|
|||
containing the sessions she is aware of in the room. Alice MUST include
|
||||
only [shareable encryption sessions](#shareable-encryption-sessions) in the
|
||||
`room_keys` section of the structure; other sessions SHOULD be listed in the
|
||||
with `withheld` section.
|
||||
`withheld` section.
|
||||
|
||||
3. The client serialises the `RoomKeyBundle` as JSON.
|
||||
|
||||
|
|
|
|||
|
|
@ -41,6 +41,8 @@ properties:
|
|||
example: "m.megolm.v1.aes-sha2"
|
||||
room_id:
|
||||
type: string
|
||||
format: mx-room-id
|
||||
pattern: "^!"
|
||||
description: |-
|
||||
The room where the session is used.
|
||||
example: "!Cuyf34gef24t:localhost"
|
||||
|
|
@ -48,6 +50,7 @@ properties:
|
|||
type: object
|
||||
additionalProperties:
|
||||
type: string
|
||||
format: mx-unpadded-base64
|
||||
description: |-
|
||||
A map from algorithm name (`ed25519`) to the Ed25519 signing key of
|
||||
the device which initiated the session originally, according to the
|
||||
|
|
@ -55,6 +58,7 @@ properties:
|
|||
example: { "ed25519": "aj40p+aw64yPIdsxoog8jhPu9i7l7NcFRecuOQblE3Y" }
|
||||
sender_key:
|
||||
type: string
|
||||
format: mx-unpadded-base64
|
||||
description: |-
|
||||
Unpadded base64-encoded device Curve25519 key, of the device which
|
||||
initiated the session originally, according to the creator of this
|
||||
|
|
@ -67,9 +71,10 @@ properties:
|
|||
example: "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ"
|
||||
session_key:
|
||||
type: string
|
||||
format: mx-unpadded-base64
|
||||
description: |-
|
||||
Unpadded base64-encoded session key in [session-export
|
||||
format](https://gitlab.matrix.org/matrix-org/olm/blob/master/docs/megolm.md#session-export-format).
|
||||
format](/olm-megolm/megolm/#session-export-format).
|
||||
example: "AgAAAADxKHa9uFxcXzwYoNueL5Xqi69IkD4sni8Llf..."
|
||||
required:
|
||||
- algorithm
|
||||
|
|
|
|||
Loading…
Reference in a new issue