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
Private
cacheCallbacks used to interact with the cache
Private
callbacksCallbacks used to interact with the app Requires getCrossSigningKey and saveCrossSigningKeys
Private
crossReadonly
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
An array with [ public key, Olm.PkSigning ]
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.
Get the ID used to identify the user. This can also be used to test for the existence of a given key type.
the ID
The type of key to get the ID of. One of "master", "self_signing", or "user_signing". Defaults to "master".
Check whether the private keys exist in the local key cache.
True if all keys are stored in the local cache.
Optional
type: stringThe type of key to get. One of "master", "self_signing", or "user_signing". Optional, will check all by default.
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...
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
The secret store using account data
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 private key
The type of key to get. One of "master", "self_signing", or "user_signing".
The secret store using account data
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
Generated using TypeDoc
Information about a user's cross-signing keys