Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Load device / wallet from Specter Desktop #398

Closed
davewhiiite opened this issue Sep 18, 2020 · 8 comments · Fixed by #473
Closed

Load device / wallet from Specter Desktop #398

davewhiiite opened this issue Sep 18, 2020 · 8 comments · Fixed by #473
Labels
bug Something isn't working

Comments

@davewhiiite
Copy link

Importing from a saved Specter wallet or device doesn't seem to work in Specter Desktop on Ubuntu. Rebooted and tried several times. Workaround is to use the browser to upload the wallet file, which was successful.

Software: Specter Desktop 0.7.2 (binary)
OS: Ubuntu 20.04
Bitcoin Core 0.20.1

@k9ert
Copy link
Collaborator

k9ert commented Sep 30, 2020

We have several improvements for importing wallets, last was this one:
#463

However this is not yet released. On the other side it's not very clear what was the issue on your side and which way you imported the wallet (via "create wallet" or via "load wallets" from settings).

I'll close it for now and if it's still an issue for you after the release, feel free to reopen.

@k9ert k9ert closed this as completed Sep 30, 2020
@stepansnigirev
Copy link
Collaborator

stepansnigirev commented Sep 30, 2020

It's not solved. The problem is in the GUI that doesn't show a warning like normal browsers when you are trying to upload the whole folder. We need to support uploads of zip files for that or find a way to show folder upload confirmation in the GUI.

Reopened.

@davewhiiite
Copy link
Author

Adding some detail: I actually tried to import because I was moving to a fresh install of Ubuntu 20.04. So I moved the whole .bitcoin directory to the new system, re-installed Specter Desktop, and then imported the wallet files using Specter in browser. What I found is that I actually could watch the wallet--see balances and UTXOs--but could no longer send from it (presumably broke whatever references Specter uses). The resultant error was something like "wallet not loaded in Bitcoin Core." --> manually loading the wallet file ($ bitcoin-cli loadwallet "specterxxxx/walletname") didn't seem to help. No outstanding issue for me, because I recovered the funds using Electrum and the seed phrase created by Specter (which works, btw!).

A possible solution: does Specter Desktop have the ability to recover a wallet by seed phrase? Electrum does this nicely, and would avoid much of these interoperability issues, when migrating, upgrading software, or switching computers.

@kravens
Copy link

kravens commented Oct 8, 2020

I also tried to load the folder with the backup files, but failed on OS: Windows10 with the Specter Desktop app v0.8.1.
Selecting the individual device files using "Choose files" in "Setting up a new device" tab also fails to load in the corresponding device name/type/xpubs.
Would be nice to get the "Load backup.zip" button included in a Recovery option.

@k9ert
Copy link
Collaborator

k9ert commented Oct 12, 2020

I'm not sure why the zip-file is such a big deal. If you unzip it before uploading and then choose the folder (in the setting-tab), this is working seamlessly for me (on a raspiblitz).

So I moved the whole .bitcoin directory to the new system, re-installed Specter Desktop, and
then imported the wallet files using Specter in browser.

Depending on how you did import the wallet files (via folder upload in the settings?!) this should work assuming that you properly migrated the bitcoin-folder.
One thing to take care of is the specter-uid which you can find top-level in the config.json:

➜  .specter cat config.json | jq .uid
"8f48fad1ab847be5"
➜  .specter

This UID is used when creating wallets in bitcoin-core. Check the folders in .bitcoin-folder.

I also tried to load the folder with the backup files, but failed on OS: Windows10 with the
Specter Desktop app v0.8.1.

Can you elaborate how this is failing? It usually gives you a traceback in the UI.

Selecting the individual device files using "Choose files" in "Setting up a new device" tab
also fails to load in the corresponding device name/type/xpubs.

Can you open a new issue for that to not mix up things?

@k9ert k9ert added the bug Something isn't working label Oct 12, 2020
@kravens
Copy link

kravens commented Oct 12, 2020

@k9ert
About loading the folder or files, on the Windows 10 desktop app it does not accept selecting a whole folder.
The loading of individual wallet files gave following traceback:
image
This instance of Specter was connected to a different BitcoinCore (0.20.1) node, so perhaps it's the specter-uid that causes this failure.
Anyhow it was possible to recover the same wallet by manually creating the wallet with same xpub and derivation path again.

@k9ert
Copy link
Collaborator

k9ert commented Oct 13, 2020

Ah, ok, got it. Well that's nasty indeed. So this doesn't work with any browser on win10? It's worth testing with chrome and firefox.

@ben-kaufman
Copy link
Contributor

@kravens There are currently 2 file formats for wallets we support, the more generic one which is exportale for each wallet separately in its settings tab, and can be restored from the add wallet tab, and the full specter backup, which is in different format and is downloaded from the general settings tab and is restorable from there. Maybe you confused that format with the former?

I guess this difference is quite confusing, we probably should allow both formats at least also in the add wallet page...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants