Add a key for encrypting secrets.
Optional
keyId: stringCheck whether a key matches what we expect based on the key info
Get a secret from storage.
Get the key information for a given ID.
Optional
keyId: null | stringCheck if a secret is stored on the server.
Request a secret from another device
Set the default key ID for encrypting secrets.
If keyId is null
, the default key id value in the account data will be set to an empty object.
This is considered as "disabling" the default key.
The new default key ID
Store an encrypted secret on the server
Optional
keys: null | string[]
Implements Secure Secret Storage and Sharing (MSC1946)
Deprecated
This is just a backwards-compatibility hack which will be removed soon. Use SecretStorage.ServerSideSecretStorageImpl from
../secret-storage
and/or SecretSharing from./SecretSharing
.