Information about a user's device

Superceded by Device.

Constructors

Properties

algorithms: string[] = []

list of algorithms supported by this device

deviceId: string

id of the device

keys: Record<string, string> = {}

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

known: boolean = false

whether the user knows of this device's existence (useful when warning the user that a user has added new devices)

signatures: ISignatures = {}
unsigned: Record<string, any> = {}

additional data from the homeserver

verified: DeviceVerification = DeviceVerification.Unverified

whether the device has been verified/blocked by the user

DeviceVerification: {
    BLOCKED: DeviceVerification;
    UNVERIFIED: DeviceVerification;
    VERIFIED: DeviceVerification;
} = ...

Methods

  • Get the configured display name for this device, if any

    Returns null | string

    displayname

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

    Returns string

    base64-encoded fingerprint of this device

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

    Returns string

    base64-encoded identity key of this device

  • Returns true if the user knows about this device's existence

    Returns boolean

    true if known