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.
current-backup-version
(current-backup-version client)
Returns the current active room-key-backup version, or nil when unavailable.
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:servervalue resolves device trust fordevice-id -
a
!room:servervalue resolves the trust level for the device that sent the timelineevent-id