Title: Splitting one bitcoin between two people Post by: jgmBitcoin on April 20, 2016, 11:30:59 AM I am quite new to Bitcoins. I have a doubt.
Lets say I person A, have 1 Bitcoin with me, I want to send .5 BTC to person B and .5 BTC to person C in a single transaction. Is it possible to do within one single transaction ? Later on if Person C sends the same Bitcoin to Person B, will it be possible for person B to verify that, the Bitcoin which it now received from Person B and the one which it already received from Person A, were from the same source ? Title: Re: Splitting one bitcoin between two people Post by: merelcoin on April 20, 2016, 11:35:47 AM I am quite new to Bitcoins. I have a doubt. Lets say I person A, have 1 Bitcoin with me, I want to send .5 BTC to person B and .5 BTC to person C in a single transaction. Is it possible to do within one single transaction ? Later on if Person C sends the same Bitcoin to Person B, will it be possible for person B to verify that, the Bitcoin which it now received from Person B and the one which it already received from Person A, were from the same source ? Yes, you can create multiple outputs*. Since all transactions are recorded on the blockchain, person B can verify where the 0.5BTC came from. *Depending on the wallet software you use... some wallet softwares make this hard/impossible to do, other wallet software makes this really easy... But theoretically, this is normal behaviour... In fact, when you have 1 BTC and only send 0.5BTC to somebody, most (if not all) wallets will create 2 outputs: 0.5BTC to the receiver, ~0.4999 BTC back to you (either a change address, or your main address) and a (very small) fee Title: Re: Splitting one bitcoin between two people Post by: jgmBitcoin on April 20, 2016, 11:43:33 AM Thanks :)
Title: Re: Splitting one bitcoin between two people Post by: DannyHamilton on April 20, 2016, 01:24:47 PM Is it possible to do within one single transaction? Absolutely. will it be possible ... to verify that, the Bitcoin which it now received ... and the one which it already received ... were from the same source ? Maybe. It depends on how the transactions are structured. Think of transaction outputs as lumps of gold. I have 1 lump of gold worth 1 BTC. I melt it and pour it into 2 equal lumps of gold each worth 0.5 BTC. Now I give 1 of those to you, and I give the other to your father. Now your father receives another lump of gold from someone else worth 0.6 BTC. If your father is going to send you 0.5 BTC worth of gold, there are 3 possibilities on how he can structure his transaction:
This is how bitcoin transactions work. Transactions accept distinct previous transaction outputs as inputs to provide value to the transaction. Then the transaction takes the combined value of all the inputs and creates NEW outputs such that the sum of the value of all the new outputs is less than or equal to the total value provided by all the inputs (when the value of the sum of the outputs is less than the value of the sum of the inputs, then the remaining "leftover" value is the transaction fee for the miners). There is nothing in the transaction that indicates which portion of each input is being used for any specific output. So, while you can see a chain of the specific inputs that are used to create outputs, and then where those specific outputs are used as inputs to create other outputs, and so on, it can be difficult in some situations to assign a specific input (or sub-set of inputs) to a specific output (or sub-set of outputs). Title: Re: Splitting one bitcoin between two people Post by: linber on April 21, 2016, 04:26:34 AM I'm new to bitcoin, but I feels its possible to split the coin for 2 persons.
Title: Re: Splitting one bitcoin between two people Post by: jgmBitcoin on April 21, 2016, 10:49:41 AM Thanks again for the detailed answer. I understand how it works now.
|