mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-07-28 08:37: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
|
containing the sessions she is aware of in the room. Alice MUST include
|
||||||
only [shareable encryption sessions](#shareable-encryption-sessions) in the
|
only [shareable encryption sessions](#shareable-encryption-sessions) in the
|
||||||
`room_keys` section of the structure; other sessions SHOULD be listed 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.
|
3. The client serialises the `RoomKeyBundle` as JSON.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,6 +41,8 @@ properties:
|
||||||
example: "m.megolm.v1.aes-sha2"
|
example: "m.megolm.v1.aes-sha2"
|
||||||
room_id:
|
room_id:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-room-id
|
||||||
|
pattern: "^!"
|
||||||
description: |-
|
description: |-
|
||||||
The room where the session is used.
|
The room where the session is used.
|
||||||
example: "!Cuyf34gef24t:localhost"
|
example: "!Cuyf34gef24t:localhost"
|
||||||
|
|
@ -48,6 +50,7 @@ properties:
|
||||||
type: object
|
type: object
|
||||||
additionalProperties:
|
additionalProperties:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-unpadded-base64
|
||||||
description: |-
|
description: |-
|
||||||
A map from algorithm name (`ed25519`) to the Ed25519 signing key of
|
A map from algorithm name (`ed25519`) to the Ed25519 signing key of
|
||||||
the device which initiated the session originally, according to the
|
the device which initiated the session originally, according to the
|
||||||
|
|
@ -55,6 +58,7 @@ properties:
|
||||||
example: { "ed25519": "aj40p+aw64yPIdsxoog8jhPu9i7l7NcFRecuOQblE3Y" }
|
example: { "ed25519": "aj40p+aw64yPIdsxoog8jhPu9i7l7NcFRecuOQblE3Y" }
|
||||||
sender_key:
|
sender_key:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-unpadded-base64
|
||||||
description: |-
|
description: |-
|
||||||
Unpadded base64-encoded device Curve25519 key, of the device which
|
Unpadded base64-encoded device Curve25519 key, of the device which
|
||||||
initiated the session originally, according to the creator of this
|
initiated the session originally, according to the creator of this
|
||||||
|
|
@ -67,9 +71,10 @@ properties:
|
||||||
example: "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ"
|
example: "X3lUlvLELLYxeTx4yOVu6UDpasGEVO0Jbu+QFnm0cKQ"
|
||||||
session_key:
|
session_key:
|
||||||
type: string
|
type: string
|
||||||
|
format: mx-unpadded-base64
|
||||||
description: |-
|
description: |-
|
||||||
Unpadded base64-encoded session key in [session-export
|
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..."
|
example: "AgAAAADxKHa9uFxcXzwYoNueL5Xqi69IkD4sni8Llf..."
|
||||||
required:
|
required:
|
||||||
- algorithm
|
- algorithm
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue