tane/apps/app_seeds/lib
vjrj a109a84714 feat(identity): switch social identity, all from the one backup
Adds pseudonymous, switchable social identities derived from the SAME root
seed via an account index (NostrKeyDerivation.deriveFromSeed(seed, account)).
HKDF is one-way so accounts are unlinkable to the Ğ1 key; account 0 is the
original identity, byte-for-byte unchanged (no rotation for current users),
and every account regenerates from the single seed — so switching adds
nothing to back up.

- SocialAccountStore: keystore-backed active account + max created.
- Per-identity stores (chats, profile, name cache) namespaced by account
  scope (account 0 = legacy keys, no migration) so identities never mix.
- switchSocialAccount() re-derives the identity, re-scopes the stores and
  restarts the inbox listener; RestartWidget rebuilds the tree to pick up
  the new social singletons. DB/inventory untouched.
- Profile 'Your identities' switcher: list, create, switch (with a note
  that messages/contacts are kept separate per identity). i18n en/es/pt/ast.

Tests: account-indexed derivation (legacy 0 unchanged, accounts distinct
yet deterministic, negatives rejected); SocialAccountStore; per-identity
store scope isolation. Resolves the flagged 'change identity' decision
(open-decisions §B).

Known: switching resets navigation to home (full tree rebuild).
2026-07-10 20:22:24 +02:00
..
data feat(labels): choose copies per label, prefilled from container count 2026-07-10 20:12:36 +02:00
db feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
di feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
domain Solve lint issue 2026-07-10 10:34:43 +02:00
i18n feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
security feat(backup): sealed backups + printable recovery sheet 2026-07-09 22:32:13 +02:00
services feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
state Merge branch 'worktree-print-labels': print seed labels with QR 2026-07-10 19:20:33 +02:00
ui feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
app.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
bootstrap.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
main.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00