fix: cross-wallet duplicate address detection on import #117

Closed
clawbot wants to merge 1 commits from fix/cross-wallet-duplicate-detection into main
Collaborator

Previously each import method (mnemonic, private key, xprv) only checked for duplicates among wallets of the same type. A private key import would not detect that the address already existed in an HD wallet, and vice versa.

Now all three import paths check the derived address against ALL existing wallet addresses regardless of type. Mnemonic and xprv imports also compare xpubs against existing HD/xprv wallets to catch the case where the same master key is imported via different methods.

Closes #111

Previously each import method (mnemonic, private key, xprv) only checked for duplicates among wallets of the same type. A private key import would not detect that the address already existed in an HD wallet, and vice versa. Now all three import paths check the derived address against ALL existing wallet addresses regardless of type. Mnemonic and xprv imports also compare xpubs against existing HD/xprv wallets to catch the case where the same master key is imported via different methods. Closes #111
clawbot added 1 commit 2026-03-01 01:01:49 +01:00
Previously each import method (mnemonic, private key, xprv) only checked
for duplicates among wallets of the same type. Now all three check the
derived address against ALL existing wallet addresses regardless of type,
and mnemonic/xprv imports also compare xpubs against existing HD/xprv
wallets.

Closes #111
clawbot added the needs-review label 2026-03-01 01:02:02 +01:00
Author
Collaborator

Closing as duplicate of #115 which already addresses issue #111.

Closing as duplicate of #115 which already addresses issue #111.
clawbot closed this pull request 2026-03-01 01:02:38 +01:00

Pull request closed

Please reopen this pull request to perform a merge.
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/AutistMask#117