Bitcoin Forum
June 25, 2024, 08:46:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1]
1  Bitcoin / Bitcoin Technical Support / Re: How to use PSBT with online node and offline node for cold storage usage on: April 17, 2021, 02:49:44 AM
Next, go to your online Bitcoin Core and key in this:

Code:
importmulti '[{"desc" : "wpkh(026641b79d7ffa40ddf994f0277c2649f3ddcbd871194ba6ef87687daea22ca503)#zl4yt8hu","timestamp" : 0,"label" : "watch-address-test", "watchonly": true}]'

I can't get this importmulti command to work.

If I use the full desc string from the getaddressinfo output I get an error: "Error: Invalid command line".  That string is in the format: sh(wpkh([8-chars-here/0'/0'/3']very-long-string-here))#checksum.

All other variations give me: "success": false - with the error "Provided checksum 'string' does not match computed checksum 'string'".

Any ideas?
2  Bitcoin / Bitcoin Technical Support / Re: How to use PSBT with online node and offline node for cold storage usage on: April 02, 2021, 06:40:33 PM
Thanks for this information!  This is exactly what I'm looking for.  I will update this thread when I get back to my nodes to test this out, however I'm a little concerned it's not working on your testnet.

Quote
Personally, I don't think Bitcoin Core is designed for airgapped storage as it doesn't offer master public keys to easily create a watch-only wallet or is the UI that optimized for such a thing as well.

The reason I prefer Core for cold storage is needing the two pieces of the puzzle - the wallet.dat and encryption password.  This way I can confidently store these in separate location with no worries about theft, compared to a seed list.  Yes I realize you can split the seed sheet up into separate parts, but the Core route works for me.
3  Bitcoin / Bitcoin Technical Support / How to use PSBT with online node and offline node for cold storage usage on: April 02, 2021, 12:53:10 PM
My set up:

  • One online node running Core 0.21.0, sync'd
  • One offline node booting from an Ubuntu Live CD, no storage devices, unpacked Core 0.21.0 brought over via flash drive
  • One encrypted cold wallet.dat (created ~2013), that will be provided to the offline node via flash drive

My goal is to use PSBT to spend the cold storage coins without ever decrypting the cold wallet.dat on the online machine.

My question is how do I do this?  The online node knows nothing about the cold wallet, so what's the first step?  Do I have to set up a watch only wallet on the online node or is there another way?

Thanks!

4  Bitcoin / Bitcoin Technical Support / Re: Offline resync issues - Error: Failed to rescan the wallet during initialization on: April 02, 2021, 02:50:42 AM
you'd supposed to just create the unsigned transaction on your online machine creating the PSBT...

How exactly do you do this from the online machine with out the cold wallet?
5  Bitcoin / Bitcoin Technical Support / Re: Offline resync issues - Error: Failed to rescan the wallet during initialization on: April 02, 2021, 01:41:45 AM
Also, do you know if PSBT would work if the cold wallet is from ~2013, and the online machine creating the PSBT is current core?
Is the offline wallet running the same version of Bitcoin Core as the online machine? If so, then it should work fine with PSBT. If not... then the offline machine likely won't be able to understand what the PSBT is (depending on how old the offline version of Bitcoin Core is)

The age of the wallet.dat file itself likely won't matter... as it will be "upgraded" when it is loaded into the newer version of Bitcoin Core. It's the version of the Bitcoin Core application itself that is the important factor here.

Yes it will be the same version - my offline machine is just a live cd boot of ubuntu, then I unpack the latest core transferred via flash drive.
6  Bitcoin / Bitcoin Technical Support / Re: Offline resync issues - Error: Failed to rescan the wallet during initialization on: April 01, 2021, 11:51:21 PM
Why are you trying to use the blockchain data on the offline machine? Huh

My thought was to rescan the blockchain on my offline machine with my cold wallet so I could use qt to create the transaction, then transfer the transaction to my online node to broadcast.  However, I should look into PSBT - is it pretty easy to use in this fashion?  Also, do you know if PSBT would work if the cold wallet is from ~2013, and the online machine creating the PSBT is current core?
7  Bitcoin / Bitcoin Technical Support / Re: Offline resync issues - Error: Failed to rescan the wallet during initialization on: April 01, 2021, 10:43:56 PM
With the standard make a backup of the wallet.dat file.
Try starting with -salvagewallet see if that works.

If not take a look at pywallet: https://bitcointalk.org/index.php?topic=34028.0 and see if you can pull your private keys.

As always make several backups and never work with the original file.

-Dave

Thanks for the reply.  It looks like salvagewallet has been removed: https://bitcoincore.org/en/releases/0.21.0/:

Quote
The -salvagewallet startup option has been removed. A new salvage command has been added to the bitcoin-wallet tool which performs the salvage operations that -salvagewallet did. (#18918)

I guess  I'll have to use the bitcoin-wallet tool with that - after looking at that man page it states salvage is experimental :/

So you think this is most likely a corrupt wallet file?
8  Bitcoin / Bitcoin Technical Support / Offline resync issues - Error: Failed to rescan the wallet during initialization on: April 01, 2021, 08:35:24 PM
Bitcoin Client Software and Version Number:
Bitcoin Core version v0.21.0 (release build)

Operating System:
Live CD: Ubuntu 14.04.3 LTS, x86_64-little_endian-lp64

System Hardware Specs:
Intel Core i5-2520M 2.5GHz
8G ram
no internal storage
external ssd 500GB (with bitcoin data files)
external flash drive 8GB (with wallet.dat file)

Description of Problem:
I am trying to load a wallet.dat on an offline node using a copy of the blockchain I have on an external, and getting an error on rescan.  My goal is to use the offline node with my cold wallet to create a transaction using the blockchain data from the external that I will then bring to an online node to broadcast.

I start bitcoin-qt with a datadir and walletdir set, and also the --rescan flag.  Rescanning took ~4hours (tried twice with same result), then I get an error and it exits.

Log Files from the Bitcoin Client:
https://dpaste.org/pNpv

Error from the log:
Code:
2021-04-01T13:25:45Z [default wallet] Still rescanning. At block 675765. Progress=0.995148
2021-04-01T13:26:15Z [default wallet] AddToWallet <snip my tx id - it's the right txid for my coins> 
2021-04-01T13:26:45Z [default wallet] Still rescanning. At block 676606. Progress=0.997801
2021-04-01T13:27:25Z [default wallet] Rescan completed in        15039816ms
2021-04-01T13:27:25Z Error: Failed to rescan the wallet during initialization
2021-04-01T13:28:20Z Shutdown: In progress...

Any ideas?
Pages: [1]
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!