tane/apps/app_seeds/lib/services
vjrj 993f7b37ab 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
..
ocr style: dart format reflow (no behavior change) 2026-07-09 22:19:43 +02:00
auto_backup_service.dart feat(backup): tap automatic-backups to make a copy now 2026-07-10 11:05:36 +02:00
auto_backup_store.dart feat(backup): add automatic weekly encrypted backups 2026-07-10 10:17:36 +02:00
coarse_location.dart fix(block2): sharing config UX + discovery + labels (raw feedback batch) 2026-07-10 13:32:11 +02:00
discovery_area.dart fix(market): search your zone by a coarse prefix, not the exact cell 2026-07-10 16:12:38 +02:00
export_import_service.dart feat(backup): add automatic weekly encrypted backups 2026-07-10 10:17:36 +02:00
file_picker_file_service.dart feat(inventory): CSV/JSON export and JSON import with LWW reconciliation 2026-07-09 12:46:53 +02:00
file_service.dart feat(inventory): CSV/JSON export and JSON import with LWW reconciliation 2026-07-09 12:46:53 +02:00
inbox_service.dart feat(chat): app-wide inbox listener so messages arrive without opening the chat 2026-07-10 16:53:03 +02:00
label_sheet_service.dart feat(labels): print seed labels with QR from an inventory selection 2026-07-10 19:14:04 +02:00
locale_store.dart feat(i18n): add Asturian (asturianu) as a language 2026-07-10 15:43:33 +02:00
message_store.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
offer_mapper.dart feat(market): fix publish-duplicates, add offer detail page + filters 2026-07-10 19:10:40 +02:00
offer_outbox.dart feat(block2): offline outbox — share now, publish when connected 2026-07-10 10:45:53 +02:00
onboarding_store.dart feat(inventory): photo-first drafts + on-device OCR (digitization R2+R4) 2026-07-09 21:23:46 +02:00
profile_cache.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
profile_store.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
recovery_sheet_service.dart feat(backup): sealed backups + printable recovery sheet 2026-07-09 22:32:13 +02:00
share_catalog_service.dart feat(inventory): local sharing — per-lot share terms, filter and printable catalog 2026-07-09 22:19:55 +02:00
social_account_store.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
social_service.dart feat(identity): switch social identity, all from the one backup 2026-07-10 20:22:24 +02:00
social_settings.dart fix(market): search your zone by a coarse prefix, not the exact cell 2026-07-10 16:12:38 +02:00