Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: yan33 on November 07, 2016, 11:09:42 AM



Title: Using Bitcoin Core wallet to sign tx offline
Post by: yan33 on November 07, 2016, 11:09:42 AM
Hi,
I am using a Bitcoin Core wallet. I would like to migrate to a scheme where I can sign a tx offline on some setup and then use the online wallet to send it.
Of course I know there are wallets that allow this, and I don't mind using them, but I would very much prefer that the wallet file itself remain the one I'm using in core.
Is there a way to do this?
Thanks!


Title: Re: Using Bitcoin Core wallet to sign tx offline
Post by: steven0021 on November 07, 2016, 11:21:42 AM
You can already do it using signrawtransaction. If you're wondering how they should look like, check this page (https://en.bitcoin.it/wiki/Raw_Transactions#createrawtransaction_.5B.7B.22txid.22:txid.2C.22vout.22:n.7D.2C....5D_.7Baddress:amount.2C....7D). Or just enter either code in the console (Help > Debug window > Console).


Title: Re: Using Bitcoin Core wallet to sign tx offline
Post by: yan33 on November 07, 2016, 12:51:22 PM
Thanks! Now I remember I saw this command mentioned around, just didn't connect the dots.
It led me thinking of another question: If I want to generate a new change address, can that address be imported to a wallet running in pruned mode? (Or do I need to sync from scratch).


Title: Re: Using Bitcoin Core wallet to sign tx offline
Post by: achow101 on November 07, 2016, 01:17:44 PM
Thanks! Now I remember I saw this command mentioned around, just didn't connect the dots.
It led me thinking of another question: If I want to generate a new change address, can that address be imported to a wallet running in pruned mode? (Or do I need to sync from scratch).
When you are pruned, you cannot import any private keys or addresses.


Title: Re: Using Bitcoin Core wallet to sign tx offline
Post by: yan33 on November 07, 2016, 02:07:35 PM
Thanks! Now I remember I saw this command mentioned around, just didn't connect the dots.
It led me thinking of another question: If I want to generate a new change address, can that address be imported to a wallet running in pruned mode? (Or do I need to sync from scratch).
When you are pruned, you cannot import any private keys or addresses.

Okay, thanks a bunch!


Title: Re: Using Bitcoin Core wallet to sign tx offline
Post by: shorena on November 07, 2016, 02:12:41 PM
Thanks! Now I remember I saw this command mentioned around, just didn't connect the dots.
It led me thinking of another question: If I want to generate a new change address, can that address be imported to a wallet running in pruned mode? (Or do I need to sync from scratch).
When you are pruned, you cannot import any private keys or addresses.

Okay, thanks a bunch!

Its also defeats the purpose if you move a wallet that was online to an offline system. The idea behind offline wallets is that they have never been online.