Information on a user's device, as returned by Crypto.CryptoApi.getUserDeviceInfo.

Constructors

Properties

algorithms: string[]

list of algorithms supported by this device

dehydrated: boolean = false

whether the device is a dehydrated device

deviceId: string

id of the device

displayName?: string

display name of the device

keys: Map<string, string>

a map from <key type>:<id> -> <base64-encoded key>

signatures: Map<string, Map<string, string>>

a map <userId, map<algorithm:device_id, signature>>

userId: string

id of the user that owns the device

whether the device has been verified/blocked by the user

Methods

  • Get the fingerprint for this device (ie, the Ed25519 key)

    Returns undefined | string

    base64-encoded fingerprint of this device

  • Get the identity key for this device (ie, the Curve25519 key)

    Returns undefined | string

    base64-encoded identity key of this device