Link to problem area: https://spec.matrix.org/v1.18/client-server-api/#storage
Issue
It's not explicitly stated whether the key ID used to identify Secret Storage keys may be an empty string.
At least in the JS-SDK, an empty key ID is treated as an undefined key (source), which is reasonable. Nonetheless, the spec may as well take a stance on it, as technically speaking, there is nothing that prevents an empty string from being a usable key ID.
The Secret Storage key ID is used in the following places:
- The
m.secret_storage.key.[key ID] account data type
- The value of the
key parameter in the m.secret_storage.default_key account data object
- The keys of the
encrypted map in encrypted account data objects
Link to problem area: https://spec.matrix.org/v1.18/client-server-api/#storage
Issue
It's not explicitly stated whether the key ID used to identify Secret Storage keys may be an empty string.
At least in the JS-SDK, an empty key ID is treated as an undefined key (source), which is reasonable. Nonetheless, the spec may as well take a stance on it, as technically speaking, there is nothing that prevents an empty string from being a usable key ID.
The Secret Storage key ID is used in the following places:
m.secret_storage.key.[key ID]account data typekeyparameter in them.secret_storage.default_keyaccount data objectencryptedmap in encrypted account data objects