This page lists the last four decl blocks of the root contract. They all concern the identities held on the device.
Me (lines 208-238)
Name | Kind | Meaning |
|---|---|---|
| state | Create form: key name and the confirmation switch |
| state | Import field. Never persisted: "it may be a recovery phrase or key" |
| state, | Name drafts that survive a reload |
| state | Custom server field |
| state | The account a remove confirmation targets |
| state | Custom servers connected before. The two presets are never stored |
| state | The account the shown key export belongs to |
| resource | Keys on this device, without secrets |
| resource | Published names and icons |
| resource | Live validation of the import text |
| mutation, | A fresh 12 word mnemonic |
| mutation, | Create an identity |
| mutation, | Import an identity |
| mutation, | Remove a key |
| mutation, | Probe a server before selecting it |
| mutation, | Reveal a key export |
| mutation, | Rename a key |
| derive |
|
| derive | Unwrapped mutation values |
Sources are in Me: sources and import logic, storage in Identity.
Profile (lines 239-245)
Name | Kind | Meaning |
|---|---|---|
| derive | The |
| resource | The published name and summary. The visit id forces a fresh read per visit |
| mutation, | Publishes the profile |
| derive | The loaded page is for this account and server |
| derive | Reply error, only if account, server and visit all match |
See Profile.
Crypto (lines 246-248)
Name | Kind | Meaning |
|---|---|---|
| resource | A hidden runtime parity check of key derivation, signing, AEAD and gzip inside the data module runtime. No screen draws it. |
See Crypto.
Vault (lines 250-273)
Name | Kind | Meaning |
|---|---|---|
| state | Vault address field, default |
| state | Wall clock for the connect countdown |
| resource | Host page facts. Only |
| resource | Vault mode, lock, connection, ids |
| mutation, | Starts the connect ceremony |
| mutation, | Every vault command |
| mutation, | Local key edits, one at a time in order |
| derive | Any of the three mutations is pending |
| task, keyed on the identity list |
|
| task, |
|
| task, |
|
| task, |
|
| task, same gate |
|
| task, |
|
| task, |
|
User stories
The code described here exists to deliver these stories. Each story lists this page in its Trace (traceability).
US-DISC-05 Be guided to create an identity before commenting: meIds, meWords, meCreated and meAfterAdd
US-ID-01 Create an identity: meWords, meCreated and the create drafts in the root contract
US-ID-02 Import an identity I already have: meImportText (never persisted), meImportCheck and meImported
US-ID-03 Switch between my identities: meIds, meProfiles and the export reset on switch
US-ID-04 See and share my account ID, and name my key on this device: meRenameDraft, meRenamed and meRenameError
US-ID-05 Back up my key: meExported and meExportFor
US-ID-06 Remove an identity from this device: meAimed and meRemoved
US-ID-07 Edit my public profile: profileData, profileSaved, profileReady and profileError
US-ID-08 Choose which Seed server I read from: meServerDraft, meServers and meServerChecked
US-VAULT-01 Connect my vault to bring my identities to this phone: vaultStatus, vaultStarted, vaultChanged and the seven tasks
US-VAULT-02 Keep my identities in sync across devices: The sync tasks and the queued vaultEdited mutation
US-VAULT-03 Lock my vault, switch to local, or log out: vaultChanged and vaultBusy
US-APP-02 Move around the app without losing my place: Persisted server list and name drafts
US-APP-05 Always know what is happening: Error derives for create, import, server, profile and vault
US-TEAM-04 Understand how the app is built: Root declarations for Me, Profile, Crypto and Vault
Related
State, refresh and stale-reply patterns: visit checks, queue and visibility gated polling
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime