mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-11 13:44:10 +02:00
Key backup: Explain hash better
This commit is contained in:
parent
82ff866b58
commit
7cde3193e5
|
|
@ -172,7 +172,10 @@ On success, returns a JSON object with keys:
|
||||||
- `auth_data` (object): Required. Same as in the body parameters for
|
- `auth_data` (object): Required. Same as in the body parameters for
|
||||||
`POST /room_keys/version`.
|
`POST /room_keys/version`.
|
||||||
- `version` (string): Required. The backup version.
|
- `version` (string): Required. The backup version.
|
||||||
- `hash` (string): Required. A hash value representing stored keys.
|
- `hash` (string): Required. The hash value which is an opaque string
|
||||||
|
representing stored keys in the backup. Client can compare it with the `hash`
|
||||||
|
value they received in the response of their last key storage request.
|
||||||
|
If not equal, another matrix client pushed new keys to the backup.
|
||||||
- `count` (number): Required. The number of keys stored in the backup.
|
- `count` (number): Required. The number of keys stored in the backup.
|
||||||
|
|
||||||
Error codes:
|
Error codes:
|
||||||
|
|
@ -243,7 +246,8 @@ Body parameters:
|
||||||
|
|
||||||
On success, returns a JSON object with keys:
|
On success, returns a JSON object with keys:
|
||||||
|
|
||||||
- `hash` (string): Required. The new hash value representing stored keys.
|
- `hash` (string): Required. The new hash value representing stored keys. See
|
||||||
|
`GET /room_keys/version/{version}` for more details.
|
||||||
|
|
||||||
Error codes:
|
Error codes:
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue