From eba962b271a30d8b5cbcfcd3ff80c27b50d8875d Mon Sep 17 00:00:00 2001 From: user Date: Sat, 28 Feb 2026 08:35:54 -0800 Subject: [PATCH] feat: add xprv wallet import support Add the ability to import an existing HD wallet using an extended private key (xprv) instead of a mnemonic phrase. - New 'xprv' wallet type with full HD derivation and address scanning - New importXprv view with password encryption - Updated getSignerForAddress to handle xprv wallet type - Added xprv link to the add-wallet view - Allow adding derived addresses for xprv wallets Closes #20 --- src/popup/index.html | 58 +++++++++++++++++++ src/popup/index.js | 3 + src/popup/views/addWallet.js | 5 ++ src/popup/views/home.js | 2 +- src/popup/views/importXprv.js | 106 ++++++++++++++++++++++++++++++++++ src/shared/wallet.js | 25 ++++++++ 6 files changed, 198 insertions(+), 1 deletion(-) create mode 100644 src/popup/views/importXprv.js diff --git a/src/popup/index.html b/src/popup/index.html index d5bbf90..0f39d15 100644 --- a/src/popup/index.html +++ b/src/popup/index.html @@ -119,6 +119,15 @@ Import private key +
+ Have an extended private key (xprv)? + +
@@ -170,6 +179,55 @@ + + +