Repository navigation
1.0.0-alpha.7: recover an account with its 12-word phrase - #25
Merged
Merged
Conversation
SecretSpace 3, phase 5 (needs SecretSpace Server 2.0.0-alpha.4 for an account on a server). - "Forgot your master password?" on the login screen: the account name and its 12 words, a new master password, a new Emergency Kit when this PC cannot keep the old Secret Key (a new PC; Linux), and the new phrase, written down and checked. The same keyset opens again, so every vault, share and signature still works; the old phrase stops working. - On a PC without the account it comes from its server, with its vaults. - An account on a server is changed there first (POST /v2/recovery with a proof derived from the keyset); unreachable server = nothing changed. - Settings -> Recovery phrase -> New phrase...: the server's copy first, then this PC's; other devices take it at their next sync. - Sign-up sends the recovery proof; older accounts send it once at sync. recovery.py (no widgets), recovery_ui.py (screens; the kit and phrase windows of dialogs.py are reused). Tests: test_account_recovery.py. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011ojnyVg7ccsR3pZ64s7aRH
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
SecretSpace 3, phase 5, client side: a forgotten master password is no longer the end. A test version (pre-release); it needs SecretSpace Server 2.0.0-alpha.4 for an account on a server.
Recovery
Code
recovery.py(no widgets): open with the phrase, prepare, save;NewPhrase.recovery_ui.py: the screens. The kit and phrase windows ofdialogs.pyare reused.account_crypto.seal_recovery,account_crypto.recovery_proof,accounts.replace_keys,Account.set_recovery.Tests
test_account_recovery.py: 27 tests, on a PC alone and through the test copy of the server.flows_recovery.py, three devices): 83/83, twice.tests/sync_server/passman_server.pyis server 2.0.0-alpha.4 (Server PRs #13), byte for byte.🤖 Generated with Claude Code
https://claude.ai/code/session_011ojnyVg7ccsR3pZ64s7aRH