Module local_identity
Expand description
Who sits at this device, as far as undo attribution and history authors are concerned.
This is the toolkit’s one identity seam. The toolkit reads the person’s
public identity only through the process’s LocalIdentitySource. The
native implementation reads the runtime identity the launcher bound
(TILO_USER_IDENTITY), then $XDG_CONFIG_HOME/tilo/identity/primary.json
(feature local-daemons). A browser page installs one derived from its
certified device (the relay peer’s DeviceCert names the user root) with
install_source once certification completes; the device key itself
stays in the page’s custody and signs through the relay client’s
DeviceSigner, never through the toolkit. Without either there is no
local identity, and callers fall back to their account-name ladders.
Structs§
- Fixed
Identity - A fixed identity, for hosts that learn it once (a certified browser device) and tests.
- Local
Identity - The public half of the local person’s identity.
- NoLocal
Identity - A source with no identity.
- Runtime
Identity - The runtime identity bound by the launcher, else the shell’s
primary.jsonfor its own unsandboxed in-process apps.
Traits§
- Local
Identity Source - Resolves the local person’s identity. Not memoised by callers: a process hosting more than one identity must not be frozen into the first one.
Functions§
- bound
- The identity bound to this process: the installed source, else the
runtime identity the launcher bound (feature
local-daemons), else none. Unlikeload, never the shell’s ownprimary.json: for callers that fall back to an identity of their own when the launcher bound none. - generation
- Changes whenever the host replaces or revokes this process’s identity.
- install_
source - Make
sourcethe identity of this process, or restore the default (the native runtime identity withlocal-daemons, else none) withNone. Readers see the change on their nextload. - load
- The local identity from the installed source, else the native runtime
identity (feature
local-daemons), else none.