mirror of
https://github.com/matrix-org/matrix-spec
synced 2025-12-28 03:48:36 +01:00
This was commented prior to the port to OpenAPI 3.1 for technical reasons (#1127). Now we can use it just fine. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
26 lines
849 B
YAML
26 lines
849 B
YAML
---
|
|
title: OneTimeKeys
|
|
type: object
|
|
description: |-
|
|
One-time public keys. The names of the properties should be in the format
|
|
`<algorithm>:<key_id>`. The format of the key is determined
|
|
by the [key algorithm](/client-server-api/#key-algorithms).
|
|
additionalProperties:
|
|
oneOf:
|
|
- type: string
|
|
- type: object
|
|
title: KeyObject
|
|
properties:
|
|
key:
|
|
type: string
|
|
description: The key, encoded using unpadded base64.
|
|
signatures:
|
|
type: object
|
|
description: |-
|
|
Signature for the device. Mapped from user ID to signature object,
|
|
containing mapping from _key signing identifier_ to the signature
|
|
(see also: [Signing JSON](/appendices/#signing-json))
|
|
additionalProperties:
|
|
type: object
|
|
required: ['key', 'signatures']
|