summary refs log tree commit diff
path: root/synapse/api/constants.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2021-07-27 14:36:38 +0100
committerGitHub <noreply@github.com>2021-07-27 14:36:38 +0100
commit74d09a43d9e0f65f1292aa51f58ea676e4aefc7f (patch)
tree3e16bb542297d2e2b6a68ed79d866afec9513207 /synapse/api/constants.py
parentChange release script to update debian changelog for RCs (#10465) (diff)
downloadsynapse-74d09a43d9e0f65f1292aa51f58ea676e4aefc7f.tar.xz
Always communicate device OTK counts to clients (#10485)
Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
Diffstat (limited to 'synapse/api/constants.py')
-rw-r--r--synapse/api/constants.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/api/constants.py b/synapse/api/constants.py
index 8363c2bb0f..8c7ad2a407 100644
--- a/synapse/api/constants.py
+++ b/synapse/api/constants.py
@@ -127,6 +127,14 @@ class ToDeviceEventTypes:
     RoomKeyRequest = "m.room_key_request"
 
 
+class DeviceKeyAlgorithms:
+    """Spec'd algorithms for the generation of per-device keys"""
+
+    ED25519 = "ed25519"
+    CURVE25519 = "curve25519"
+    SIGNED_CURVE25519 = "signed_curve25519"
+
+
 class EduTypes:
     Presence = "m.presence"