Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: Scaccomatt0 on August 15, 2016, 04:38:13 PM



Title: Offline transaction - generate RAW transaction
Post by: Scaccomatt0 on August 15, 2016, 04:38:13 PM
Let have the following scenario:
1- wallet A online 
2- full synced wallet A
3- bring the wallet A offline
4- create a RAW transaction from wallet A
5- copy/share the raw transaction from wallet A
5- use another wallet B online
6- paste / spread the RAW transaction from the online wallet B

Questions:
1- is it possible to generate a RAW transaction even if the wallet is in offline mode and not synced? I think so.
2- Wallet B online can spread the RAW transaction provided by someone else? I think so.
3- while the wallet A is offline, if I spent some BTC from another online wallet and using output that I want to include in my RAW transaction, the RAW transaction is generated correctly, but will be invalidated (attempt of double spent?).
4- Security issues?

Is it possible to generate offline transaction with a mobile wallet (Ie. Android app)?

thanks


Title: Re: Offline transaction - generate RAW transaction
Post by: DannyHamilton on August 15, 2016, 05:56:25 PM
1- is it possible to generate a RAW transaction even if the wallet is in offline mode and not synced?

Yes, as long as you know which transaction outputs you want to spend.

2- Wallet B online can spread the RAW transaction provided by someone else?

Yes.

3- while the wallet A is offline, if I spent some BTC from another online wallet and using output that I want to include in my RAW transaction, the RAW transaction is generated correctly, but will be invalidated (attempt of double spent?).

Correct, if you have already spent the output in a transaction that is already confirmed then all peers will reject the new transaction as invalid due to the attempt of double spend.

4- Security issues?

Keep your keys safe and don't share signed transactions that you don't want broadcast.

Is it possible to generate offline transaction with a mobile wallet (Ie. Android app)?

I'm not aware of any mobile wallets that have that ability built into them.

thanks

You're welcome.


Title: Re: Offline transaction - generate RAW transaction
Post by: Scaccomatt0 on August 15, 2016, 06:36:07 PM
1- is it possible to generate a RAW transaction even if the wallet is in offline mode and not synced?

Yes, as long as you know which transaction outputs you want to spend.

2- Wallet B online can spread the RAW transaction provided by someone else?

Yes.

3- while the wallet A is offline, if I spent some BTC from another online wallet and using output that I want to include in my RAW transaction, the RAW transaction is generated correctly, but will be invalidated (attempt of double spent?).

Correct, if you have already spent the output in a transaction that is already confirmed then all peers will reject the new transaction as invalid due to the attempt of double spend.

4- Security issues?

Keep your keys safe and don't share signed transactions that you don't want broadcast.

Is it possible to generate offline transaction with a mobile wallet (Ie. Android app)?

I'm not aware of any mobile wallets that have that ability built into them.

thanks

You're welcome.
Thanks sir,
you just confirmed my knowledge.

I can keep brainstorming my idea.


Title: Re: Offline transaction - generate RAW transaction
Post by: MyBTT on August 19, 2016, 03:25:37 AM
I'm guessing you're trying to find a way too automate cold storage spending? Correct me if I'm wrong, but isn't that impossible?



Title: Re: Offline transaction - generate RAW transaction
Post by: vasigap on August 19, 2016, 07:45:24 PM
I'm guessing you're trying to find a way too automate cold storage spending? Correct me if I'm wrong, but isn't that impossible?



The off-line automation isn't exactly what the air-gaped usb/wallets and stuff do ?(Correct me if I'm wrong please :) )