From 356d1fe3e3b8f5200bd5accd84fed29a424ca822 Mon Sep 17 00:00:00 2001 From: Hubert Chathi Date: Thu, 11 Feb 2021 16:48:32 -0500 Subject: [PATCH] add example --- proposals/2874-single-ssss.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proposals/2874-single-ssss.md b/proposals/2874-single-ssss.md index 631fa156..d7d31288 100644 --- a/proposals/2874-single-ssss.md +++ b/proposals/2874-single-ssss.md @@ -26,6 +26,13 @@ a user and a given key does not have a `name` field, the client may use a default name as the key's name, such as "Unnamed key", or "Default key" if the key is marked as default. +For example, when a client creates a key with ID `abcdefg`, it will create an +`m.secret_storage.key.abcdefg` account data event to store information about +the key. It will then mark it as the default key by setting the +`m.secret_storage.default_key` account data to `{"key": "abcdefg"}`. When +another client logs in after this, it will see that the default key has been +set, and will know to use that key as the SSSS key. + ## Potential issues If secrets are encrypted using a key that is not marked as default, a client