ol.trixnity.key

Encryption-key state, backup state, and trust-level queries.

Upstream Mapping

This namespace maps to Trixnity’s KeyService and KeyBackupService.

The public wrappers here cover:

  • current and flow-based backup bootstrap state

  • current and flow-based backup-version observation

  • trust-level queries for users, devices, and timeline events

  • device-key and cross-signing-key lookup

Use ol.trixnity.verification for active verification workflows and ol.trixnity.room when you need room timeline events to pair with trust-level checks.

current-bootstrap-running

(current-bootstrap-running client)

Returns whether cross-signing bootstrap is currently running.


bootstrap-running

(bootstrap-running client)

Returns a Missionary flow of cross-signing bootstrap state.


current-backup-version

(current-backup-version client)

Returns the current active room-key-backup version, or nil when unavailable.


backup-version

(backup-version client)

Returns a Missionary flow of the active room-key-backup version.


get-trust-level

(get-trust-level client user-id)
(get-trust-level client user-id-or-room-id device-id-or-event-id)

Returns a Missionary flow of trust information.

With two arguments, user-id resolves to the trust level of that user.

With three arguments, the meaning depends on the first id:

  • a @user:server value resolves device trust for device-id

  • a !room:server value resolves the trust level for the device that sent the timeline event-id


get-device-keys

(get-device-keys client user-id)

Returns a Missionary flow of device keys for user-id.


get-cross-signing-keys

(get-cross-signing-keys client user-id)

Returns a Missionary flow of cross-signing keys for user-id.