aboutsummaryrefslogtreecommitdiffstats
path: root/dev.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-06-26 11:29:24 -0700
committerAdam Soltys <[email protected]>2026-06-26 11:29:24 -0700
commit92626d18830c34d223b2174e0b81ced6a24ec91f (patch)
tree6dd81297525f22422c7a247dac3b957317717d89 /dev.js
parentf090a29e9a208e67716cd61e43443ec7e095002f (diff)
downloadcoinosv3-92626d18830c34d223b2174e0b81ced6a24ec91f.tar.gz
coinosv3-92626d18830c34d223b2174e0b81ced6a24ec91f.zip
Persist wallets as watch-only across sessions; re-enter seed to spend
Closing the browser without 'Save to device' used to wipe the wallet entirely. Now every wallet's account xpub is mirrored to a durable localStorage directory (never the seed), so it survives a session wipe as a watch-only entry — you keep seeing balance and history, and re-enter the seed to spend again. - Durable account directory: saveDirectory() mirrors {id,label,xpub} for every account; restore falls back to it as watch-only when there's no session/vault. - Instant view: a full wallet also caches under its xpub key, so the downgraded watch-only shows balance/history immediately (no rescan). Verified round-trip. - Re-enter seed to spend: the Send tab (now shown for watch-only) and Settings prompt for the recovery phrase / xprv; it must derive to this wallet's xpub (verified via accountXpubFor — wrong seed/passphrase rejected), with an option to Save to device at the same time. Upgrade is in place (id/label/cache kept). - Vault merge now dedupes by xpub so saved + non-saved wallets coexist without duplicates. Privacy note: the xpub now persists by default (someone with device access can see balance/history without the seed); 'Remove' clears it. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Diffstat (limited to 'dev.js')
0 files changed, 0 insertions, 0 deletions