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
fix: cross-wallet duplicate address detection on import
All checks were successful
check / check (push) Successful in 22s
cd412209a7
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
bot
needs-review
labels 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
All checks were successful
check / check (push) Successful in 22s
Required
Details

Pull request closed

Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sneak/AutistMask#117
No description provided.