Skip to content

Conversation

@ovitrif
Copy link
Collaborator

@ovitrif ovitrif commented Jan 19, 2026

This PR fixes keystore cleanup during wallet wipe to prevent stale encryption keys from causing issues on subsequent wallet creation.

Description

When wiping a wallet, the keychain entries were cleared but the Android KeyStore encryption key remained. This could cause encryption/decryption failures if a new wallet reuses the same alias with different key material. The fix adds a deleteEncryptionKey() method to AndroidKeyStore and calls it during the wipe process.

Preview

Android.Studio.2026-01-21.002772.mp4

Note

Nothing changed visually, just showing that the flow still works as expected.

QA Notes

Tests:

1. Wallet wipe and restore

  1. Load a wallet (create or restore)
  2. Settings → Back up or Restore → Reset and Restore → Reset Wallet
  3. Create a new wallet or restore from seed
  4. ✔️ Verify the wallet loads without errors

@ovitrif ovitrif force-pushed the fix/wipe-keystore-reset branch from a087fd8 to d62217e Compare January 20, 2026 16:02
@ovitrif ovitrif force-pushed the fix/wipe-keystore-reset branch from d62217e to b735c6d Compare January 21, 2026 16:09
@ovitrif ovitrif marked this pull request as ready for review January 21, 2026 16:16
@ovitrif ovitrif self-assigned this Jan 21, 2026
@ovitrif ovitrif enabled auto-merge January 21, 2026 16:16
@ovitrif ovitrif changed the title fix: reset keystore entries on wallet wipe fix: reset encryption key on wipe Jan 21, 2026
@claude
Copy link

claude bot commented Jan 21, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@ovitrif ovitrif merged commit 9159351 into master Jan 21, 2026
13 checks passed
@ovitrif ovitrif deleted the fix/wipe-keystore-reset branch January 21, 2026 17:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants