Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

How to import a private key? #4061

Open
FreekPaans opened this issue Nov 7, 2019 · 7 comments
Open

How to import a private key? #4061

FreekPaans opened this issue Nov 7, 2019 · 7 comments

Comments

@FreekPaans
Copy link

Hi,

I noticed the importprivkey bitcoin RPC call is not supported on this implementation, is there any other way to import a private key?

Cheers,

-Freek

@MithrilMan
Copy link
Contributor

Currently our wallet is an HD wallet, that can't import right now a private key that isn't generated by the HD wallet seed.

The only way to move funds on our wallet from a non-hd wallet, right now, is to create an HD wallet and send your funds to one of the new generated address

@FreekPaans
Copy link
Author

Thanks for that. Do you know of any non-HD wallets for Stratis that allow you to import a private key?

@MithrilMan
Copy link
Contributor

The only stratis implementation that should allow you to import priv key is the StratisX node but it's the legacy implementation (C++) that will be dismissed
I'm not sure about any plan to implement support for non HD wallet addresses, we discussed about it in the past but no decision were taken.

What's the use case?

@DemonRx
Copy link
Contributor

DemonRx commented Nov 7, 2019

@MithrilMan not to say it would happen but in the rare case it did... say a user lost their seed ? But has a backup of their private key (if the HD wallet allowed for it). This could happen if they keep their seed and privkeys in separate locations, and say just lost only the seed.

@FreekPaans
Copy link
Author

I'm using a Ledger to hold my coins, and want to verify that I can still use my coins if I hold only the BIP39 seed phrase.

Another use case might be that I find an old Stratis wallet.dat, and want to spend those coins but Stratisx cannot create transactions anymore (because of some future hard fork).

@DemonRx
Copy link
Contributor

DemonRx commented Nov 7, 2019

To add to this:

Another use case might be that I find an old Stratis wallet.dat, and want to spend those coins but Stratisx cannot create transactions anymore (because of some future hard fork).

StratisX is being deprecated as I was last aware ? Which in that case, users that might not be aware of it coming in later to use their coins would need this feature to import the privkeys.

@dev0tion
Copy link

dev0tion commented Dec 27, 2019

Private key sweeping functionality has to be build into our wallet, but it's not available at the moment.

If you're a developer there's already a way of doing this using NBitcoin, you just have to connect to a public (or your own) node to broadcast the transaction.

@stratisproject stratisproject deleted a comment Dec 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants