Skip to content

Commit

Permalink
clarify otk and fallback key types in examples (#1715)
Browse files Browse the repository at this point in the history
* 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

* add changelog
  • Loading branch information
uhoreg committed Feb 8, 2024
1 parent 650e691 commit 170626d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1715.clarification
@@ -0,0 +1 @@
Clarify one-time key and fallback key types in examples.
4 changes: 2 additions & 2 deletions content/client-server-api/modules/end_to_end_encryption.md
Expand Up @@ -1776,9 +1776,9 @@ Example response:
],
},
"device_one_time_keys_count": {
"curve25519": 10,
"signed_curve25519": 20
}
},
"device_unused_fallback_key_types": ["signed_curve25519"]
}
```

Expand Down
3 changes: 0 additions & 3 deletions data/api/client-server/keys.yaml
Expand Up @@ -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:
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 170626d

Please sign in to comment.