As an identity holder, I want to be sure my keys are kept safely and never disappear because of a fault, so that I can use Seed on my phone without fearing for my identities.
Situation
My identities are worth more than this phone. I use the app where the connection drops halfway through things. I expect a failure to cost me a retry and never a key.
What I do
Create or import identities and use them.
Connect my vault and let it sync, on good and bad connections.
Remove an identity only when I mean to, through "Remove".
Reveal a key only when I mean to, through "Export key file" and "Reveal".
What I should see
With one identity, Me says "Keys stay on this device, in the Keychain."
A private key appears on screen only after I tap "Reveal" on the alert "Reveal the private key?", only on that identity's page, and it goes away when I tap "Hide" or switch identity.
The recovery words I type to import are not kept if the app restarts.
A connection to my vault that is cut short, at any point, leaves every identity where it was, on the phone and in the vault.
A sync that fails shows its reason in red on Vault and changes nothing on the phone.
An identity is removed from my devices only after I confirm "Remove this identity?" somewhere. It never vanishes because a device was behind or offline.
If the vault no longer accepts this phone, I see an error and keep all my identities here.
When something goes wrong
If the vault file cannot be opened, Vault shows "Failed to open the vault:" and the reason, for example "Vault key is missing from this device’s Keychain.", with "Retry". The app refuses to continue instead of starting an empty vault over my data.
If the stored keys cannot be read, Me shows "Couldn’t read the identities on this device." with "Retry", and saving an identity is refused with "Identity storage is unreadable. Restore it from a backup before making changes." Nothing is overwritten.
Not included
The app has no passcode or Face ID of its own, and the vault has no master password. Protection is the phone's lock and its Keychain. See Current limits and known gaps.
Exported key files are not encrypted, and password-protected ones cannot be imported.
These guarantees are proven by unit tests and by a suite against the real vault server, not on a physical phone on every change. See Real vault compatibility suite.
Trace
Story US-VAULT-04, status Shipped. These links are kept in step with the traceability matrix and with the "User stories" section of every page listed here.
Design
Page | Part it plays |
|---|---|
The Keychain footer and the unreadable-identities failure row | |
Reveal only after an alert, only on its own screen; removal asks first | |
Failure with Retry, sync error in place, identities kept | |
An interrupted connection that retries or stops without loss | |
The import field whose content is never remembered | |
The error and sync error lines in the Storage panel | |
Warnings that do not end the wait | |
The reveal and remove confirmations | |
Every destructive or revealing action asks first | |
Failure with Retry that keeps what is there | |
Failure states of Me and Vault | |
A failure is shown as a failure, never as empty | |
The principles this promise rests on | |
The exact safety wording |
Implementation
Page | Part it plays |
|---|---|
One Keychain secret, fail-closed loading, the removal marker | |
The two copies of the identities and the 2026-11-26 incident | |
What is stored where; the removal rule; failing closed; a failed sync leaves state untouched | |
A deletion is only ever propagated, never invented; re-creation survives | |
Transport failures reuse the approval; refusals fail closed; cancel suppresses late replies | |
Sync runs against a candidate state so a failure changes nothing | |
The encrypted envelope: nothing but ciphertext outside the Keychain | |
Signing and encryption primitives | |
Requests are signed on the device | |
No answer carries a key except the explicit export | |
The export shows only on its own screen; import text is never persisted | |
The server only ever stores ciphertext | |
The two Keychain secrets and one file the app may touch | |
The connect failure and the two separate fixes | |
No master password; password-protected key files refused | |
Fail-closed behaviour against the real server | |
The regression tests for the removal rule and storage |
Code
File | What |
|---|---|
file header: one Keychain secret and the removal marker rule | |
IdentityStorageError and loadKeys: corruption is never read as empty | |
loadRemovedKeys, write, saveKeys, clearRemovedKeys | |
removeKey: key and marker change in one write | |
load: fail closed | |
reconcile and rebaseKeys: only a marker deletes | |
sync on a candidate state; a failure only records the error | |
retryableConnectionError | |
grants: secret.keep seed-keys, secret.keep seed-vault-kek, vault file read and write | |
meImportText is never persisted | |
the Keychain footer on Me |
Tests
File | What it checks |
|---|---|
a connection cut short before identities reach the Keychain never deletes them from the remote vault | |
a Keychain map that lost its entries is refilled from the vault, not treated as deletions | |
only a removal made in Me leaves a marker, and the marker is spent once the vault records it | |
local ciphertext uses a Keychain KEK, survives reopen, and never contains a private seed; wrong Keychain key fails closed without overwriting ciphertext | |
a failed remote upload does not turn newly downloaded identities into local deletions; wrong wrapped remote key shows error and preserves the local encrypted vault; wrong mailbox key is a one-time refusal and keeps local identities | |
saving never silently overwrites an unreadable secret bundle; malformed stored seeds are refused without echoing key material; export never returns another account key from a mismatched record | |
corrupt secret fails safely instead of appearing empty | |
a revoked or wrong credential fails closed and keeps every identity | |
me: an exported key shows only on its own identity's screen |
Delivery
Delivered by #1470.
Do you like what you are reading? Subscribe to receive updates.
Unsubscribe anytime