Skip to content

Commit 356d1fe

Browse files
committed
add example
1 parent d9edb3f commit 356d1fe

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

proposals/2874-single-ssss.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ a user and a given key does not have a `name` field, the client may use a
2626
default name as the key's name, such as "Unnamed key", or "Default key" if the
2727
key is marked as default.
2828

29+
For example, when a client creates a key with ID `abcdefg`, it will create an
30+
`m.secret_storage.key.abcdefg` account data event to store information about
31+
the key. It will then mark it as the default key by setting the
32+
`m.secret_storage.default_key` account data to `{"key": "abcdefg"}`. When
33+
another client logs in after this, it will see that the default key has been
34+
set, and will know to use that key as the SSSS key.
35+
2936
## Potential issues
3037

3138
If secrets are encrypted using a key that is not marked as default, a client

0 commit comments

Comments
 (0)