the user that the information is about
Callbacks used to interact with the app Requires getCrossSigningKey and saveCrossSigningKeys
Callbacks used to interact with the cache
Readonly
userthe user that the information is about
Check whether a given device is trusted.
Cross signing info for user
The device to check
Whether the device is trusted locally
Whether we trust cross signed devices
Check whether a given user is trusted.
Cross signing info for user
Cache callbacks
Calls the app callback to ask for a private key
The key type ("master", "self_signing", or "user_signing")
Optional
expectedPubkey: stringThe matching public key or undefined to use the stored public key for the given key type.
An array with [ public key, Olm.PkSigning ]
Get cross-signing private keys from the local cache.
A map from key type (string) to private key (Uint8Array)
Get the ID used to identify the user. This can also be used to test for the existence of a given key type.
The type of key to get the ID of. One of "master", "self_signing", or "user_signing". Defaults to "master".
the ID
Check whether the private keys exist in the local key cache.
Optional
type: stringThe type of key to get. One of "master", "self_signing", or "user_signing". Optional, will check all by default.
True if all keys are stored in the local cache.
Check whether the private keys exist in secret storage. XXX: This could be static, be we often seem to have an instance when we want to know this anyway...
The secret store using account data
map of key name to key info the secret is encrypted with, or null if it is not present or not encrypted with a trusted key
Create new cross-signing keys for the given key types. The public keys
will be held in this class, while the private keys are passed off to the
saveCrossSigningKeys
application callback.
Optional
level: CrossSigningLevelThe key types to reset
Static
fromStatic
getGet private keys from secret storage created by some other device. This also passes the private keys to the app-specific callback.
The type of key to get. One of "master", "self_signing", or "user_signing".
The secret store using account data
The private key
Static
storeStore private keys in secret storage for use by other devices. This is typically called in conjunction with the creation of new cross-signing keys.
The keys to store
The secret store using account data
Information about a user's cross-signing keys