Skip to content

Device

Defined in: src/models/device.ts:32

Information on a user’s device, as returned by crypto-api!CryptoApi.getUserDeviceInfo.

new Device(opts): Device

Defined in: src/models/device.ts:57

DeviceParameters

Device

readonly algorithms: string[]

Defined in: src/models/device.ts:40

list of algorithms supported by this device


readonly dehydrated: boolean = false

Defined in: src/models/device.ts:55

whether the device is a dehydrated device


readonly deviceId: string

Defined in: src/models/device.ts:34

id of the device


readonly optional displayName?: string

Defined in: src/models/device.ts:52

display name of the device


readonly keys: Map<string, string>

Defined in: src/models/device.ts:43

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


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

Defined in: src/models/device.ts:49

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


readonly userId: string

Defined in: src/models/device.ts:37

id of the user that owns the device


readonly verified: DeviceVerification

Defined in: src/models/device.ts:46

whether the device has been verified/blocked by the user

getFingerprint(): string | undefined

Defined in: src/models/device.ts:73

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

string | undefined

base64-encoded fingerprint of this device


getIdentityKey(): string | undefined

Defined in: src/models/device.ts:82

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

string | undefined

base64-encoded identity key of this device