stack_wallet icon indicating copy to clipboard operation
stack_wallet copied to clipboard

Import wallet by xPriv

Open sashapetrovska opened this issue 1 year ago • 4 comments

Hi, I fell in love with the project and I'm really looking forward to it, but I've got kinda dissapointed that I couldn't import some of my wallets which I don't know the pp and only have the xpriv. The app would be really complete if it had import by xpriv support, also if I have some free time I'd like to send a PR if needed.

kind regards.

sashapetrovska avatar Aug 20 '24 18:08 sashapetrovska

You're more than welcome to submit a PR @sashapetrovska and I or another dev will be happy to review it. We use a customized fork of peercoin/coinlib which can be found here:

https://github.com/cypherstack/coinlib

Using (and/or forking this to add any missing functionality) would be the preferred route to take to add this.

I think it would use either a MultiAddressInterface or something like a (but probably something similar to a PrivateKeyInterface). Unfortunately we can't generate a seed from an xpriv because xprivs imply a specific derivation path and are derived via mnemonic recovery phrase -> seed -> xpriv so they have to be handled, saved, backed up to and restored from Stack Wallet Backups separately/specially

sneurlax avatar Aug 20 '24 20:08 sneurlax

Related:

  • https://github.com/cypherstack/stack_wallet/issues/566
  • https://github.com/cypherstack/stack_wallet/issues/476

sneurlax avatar Aug 20 '24 20:08 sneurlax

@sneurlax Thanks, I'll look into, also maybe should I open a new issue but it's me or when I change the derivation path to /84, the balance of the funds isn't shown?

sashapetrovska avatar Aug 20 '24 22:08 sashapetrovska

Sorry, I don't understand

sneurlax avatar Sep 11 '24 05:09 sneurlax

Kind of a duplicate of the ideas in #476 so closing this for now

rehrar avatar Oct 21 '25 16:10 rehrar