From 199325bfd6644776b35dc308a02825a54bde3fbb Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Mon, 26 Nov 2018 11:11:51 -0500 Subject: update comment on keys/query and copyright header --- synapse/rest/client/v2_alpha/keys.py | 31 ++++++++++++++++++------------- 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/synapse/rest/client/v2_alpha/keys.py b/synapse/rest/client/v2_alpha/keys.py index 47ca92ee3e..666ac9637f 100644 --- a/synapse/rest/client/v2_alpha/keys.py +++ b/synapse/rest/client/v2_alpha/keys.py @@ -1,5 +1,6 @@ # -*- coding: utf-8 -*- # Copyright 2015, 2016 OpenMarket Ltd +# Copyright 2018 New Vector Ltd # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. @@ -140,19 +141,23 @@ class KeyQueryServlet(RestServlet): // Must be signed by this server. "": { ":": "" - } } } } }, - "attestations": [ - "user_id": "", - "device_id": "", - "keys": { - "ed25519": "" - }, - "state": "", - "signatures": { - ":": "" - } - ] - } + }, + "unsigned": { + "device_display_name": "" + "attestations": [ // attestations on this device + { + "user_id": "", + "device_id": "", + "keys": { + ":": "" + }, + "state": "", + "signatures": { + "": { // user_id of the user making the attestation + ":": "" + } } } + ] + } } } } } } """ PATTERNS = client_v2_patterns("/keys/query$") -- cgit 1.5.1