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
This commit is contained in:
Hubert Chathi 2024-01-18 11:11:33 -05:00
parent 650e691a22
commit 62323be749
2 changed files with 2 additions and 5 deletions

View file

@ -1776,9 +1776,9 @@ Example response:
], ],
}, },
"device_one_time_keys_count": { "device_one_time_keys_count": {
"curve25519": 10,
"signed_curve25519": 20 "signed_curve25519": 20
} },
"device_unused_fallback_key_types": ["signed_curve25519"]
} }
``` ```

View file

@ -52,7 +52,6 @@ paths:
May be absent if no new one-time keys are required. May be absent if no new one-time keys are required.
example: example:
curve25519:AAAAAQ: /qyvZvwjiTxGdGU0RCguDCLeR+nmsb3FfNG3/Ve4vU8
signed_curve25519:AAAAHg: signed_curve25519:AAAAHg:
key: zKbLg+NrIjpnagy+pIY6uPL4ZwEG2v+8F9lmgsnlZzs key: zKbLg+NrIjpnagy+pIY6uPL4ZwEG2v+8F9lmgsnlZzs
signatures: signatures:
@ -84,7 +83,6 @@ paths:
May be absent if a new fallback key is not required. May be absent if a new fallback key is not required.
example: example:
curve25519:AAAAAG: /qyvZvwjiTxGdGU0RCguDCLeR+nmsb3FfNG3/Ve4vU8
signed_curve25519:AAAAGj: signed_curve25519:AAAAGj:
key: zKbLg+NrIjpnagy+pIY6uPL4ZwEG2v+8F9lmgsnlZzs key: zKbLg+NrIjpnagy+pIY6uPL4ZwEG2v+8F9lmgsnlZzs
fallback: true fallback: true
@ -111,7 +109,6 @@ paths:
If an algorithm is not listed, the count for that algorithm If an algorithm is not listed, the count for that algorithm
is to be assumed zero. is to be assumed zero.
example: example:
curve25519: 10
signed_curve25519: 20 signed_curve25519: 20
required: required:
- one_time_key_counts - one_time_key_counts