Update example to show keys wrapped by user ID

This commit is contained in:
J. Ryan Stinnett 2019-12-02 14:59:48 +00:00
parent c549bf201b
commit 71faffc9ed

View file

@ -432,7 +432,8 @@ response:
} }
} }
}, },
"master_key": { "master_keys": {
"@alice:example.com": {
"user_id": "@alice:example.com", "user_id": "@alice:example.com",
"usage": ["master"], "usage": ["master"],
"keys": { "keys": {
@ -443,8 +444,10 @@ response:
"ed25519:HIJKLMN": "base64+signature+of+master+key" "ed25519:HIJKLMN": "base64+signature+of+master+key"
} }
} }
}
}, },
"self_signing_key": { "self_signing_keys": {
"@alice:example.com": {
"user_id": "@alice:example.com", "user_id": "@alice:example.com",
"usage": ["self_signing"], "usage": ["self_signing"],
"keys": { "keys": {
@ -457,6 +460,7 @@ response:
} }
} }
} }
}
``` ```
Similarly, the federation endpoints `GET /user/keys/query` and `POST Similarly, the federation endpoints `GET /user/keys/query` and `POST