summary refs log tree commit diff
path: root/synapse/rest/client/v2_alpha/keys.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2015-07-10 13:26:18 +0100
committerMark Haines <mark.haines@matrix.org>2015-07-10 13:26:18 +0100
commita01097d60b9c711d71cd5d1c63cb4fb5b95a8a63 (patch)
treea05e8a886381651607f1470cc3137a43106a1089 /synapse/rest/client/v2_alpha/keys.py
parentDon't bother with a timeout for one time keys on the server. (diff)
downloadsynapse-a01097d60b9c711d71cd5d1c63cb4fb5b95a8a63.tar.xz
Assume that each device for a user has only one of each type of key
Diffstat (limited to 'synapse/rest/client/v2_alpha/keys.py')
-rw-r--r--synapse/rest/client/v2_alpha/keys.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/rest/client/v2_alpha/keys.py b/synapse/rest/client/v2_alpha/keys.py
index 4b617c2519..f031267751 100644
--- a/synapse/rest/client/v2_alpha/keys.py
+++ b/synapse/rest/client/v2_alpha/keys.py
@@ -41,11 +41,11 @@ class KeyUploadServlet(RestServlet):
           "m.olm.curve25519-aes-sha256",
         ]
         "keys": {
-          "<algorithm>:<key_id>": "<key_base64>",
+          "<algorithm>:<device_id>": "<key_base64>",
         },
         "signatures:" {
-          "<user_id>/<device_id>" {
-            "<algorithm>:<key_id>": "<signature_base64>"
+          "<user_id>" {
+            "<algorithm>:<device_id>": "<signature_base64>"
       } } },
       "one_time_keys": {
         "<algorithm>:<key_id>": "<key_base64>"