diff --git a/content/client-server-api/modules/end_to_end_encryption.md b/content/client-server-api/modules/end_to_end_encryption.md index 64563b6c..1ea8e33d 100644 --- a/content/client-server-api/modules/end_to_end_encryption.md +++ b/content/client-server-api/modules/end_to_end_encryption.md @@ -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. diff --git a/data/api/client-server/definitions/room_key_bundle.yaml b/data/api/client-server/definitions/room_key_bundle.yaml index 3d6b3bcb..634ffd8a 100644 --- a/data/api/client-server/definitions/room_key_bundle.yaml +++ b/data/api/client-server/definitions/room_key_bundle.yaml @@ -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