From 62323be7495b82782104ab1c4c82f0de0f5ebc43 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Thu, 18 Jan 2024 11:11:33 -0500 Subject: [PATCH] clarify otk and fallback key types in examples - remove unsigned curve25519 keys from examples because we don't use those for otks and fallback keys - add missing `device_unused_fallback_key_types` property, which is required --- content/client-server-api/modules/end_to_end_encryption.md | 4 ++-- data/api/client-server/keys.yaml | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) 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 a4131d05..880082bb 100644 --- a/content/client-server-api/modules/end_to_end_encryption.md +++ b/content/client-server-api/modules/end_to_end_encryption.md @@ -1776,9 +1776,9 @@ Example response: ], }, "device_one_time_keys_count": { - "curve25519": 10, "signed_curve25519": 20 - } + }, + "device_unused_fallback_key_types": ["signed_curve25519"] } ``` diff --git a/data/api/client-server/keys.yaml b/data/api/client-server/keys.yaml index 594d141d..3ec2a977 100644 --- a/data/api/client-server/keys.yaml +++ b/data/api/client-server/keys.yaml @@ -52,7 +52,6 @@ paths: May be absent if no new one-time keys are required. example: - curve25519:AAAAAQ: /qyvZvwjiTxGdGU0RCguDCLeR+nmsb3FfNG3/Ve4vU8 signed_curve25519:AAAAHg: key: zKbLg+NrIjpnagy+pIY6uPL4ZwEG2v+8F9lmgsnlZzs signatures: @@ -84,7 +83,6 @@ paths: May be absent if a new fallback key is not required. example: - curve25519:AAAAAG: /qyvZvwjiTxGdGU0RCguDCLeR+nmsb3FfNG3/Ve4vU8 signed_curve25519:AAAAGj: key: zKbLg+NrIjpnagy+pIY6uPL4ZwEG2v+8F9lmgsnlZzs fallback: true @@ -111,7 +109,6 @@ paths: If an algorithm is not listed, the count for that algorithm is to be assumed zero. example: - curve25519: 10 signed_curve25519: 20 required: - one_time_key_counts