Author

Topic: Splitting one bitcoin between two people (Read 584 times)

newbie
Activity: 18
Merit: 8
April 21, 2016, 05:49:41 AM
#6
Thanks again for the detailed answer. I understand how it works now.
newbie
Activity: 7
Merit: 0
April 20, 2016, 11:26:34 PM
#5
I'm new to bitcoin, but I feels its possible to split the coin for 2 persons.
legendary
Activity: 3472
Merit: 4801
April 20, 2016, 08:24:47 AM
#4
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:

  • He can just give you the one lump of gold that he has that is worth 0.5 BTC.  This is the one he received from me, and is therefore "from the same source" as the 0.5 BTC lump that you already have.
  • He can melt the lump of gold that is worth 0.6 BTC and pour out a 0.5 BTC lump and a 0.1 BTC lump.  Then he can give you that 0.5 BTC lump and keep the 0.1 BTC lump for himself.  This 0.5 BTC lump is not received from me and therefore is NOT "from the same source" as the 0.5 BTC lump that you already have.
  • Now here is where it can get messy, and difficult to answer your question...  He can melt the 0.5 BTC lump and the 0.6 BTC lump into a bowl of 1.1 BTC worth of liquid gold.  Then he can pour out 0.5 BTC worth of that into a lump of gold and pour the remaining 0.6 BTC worth into another new lump of gold.  If he gives you the 0.5 BTC lump, how much of it is "from the same source" as the 0.5 BTC lump that you already have?  All 0.5 BTC worth?  None of it?  45.5% of it?

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).
newbie
Activity: 18
Merit: 8
April 20, 2016, 06:43:33 AM
#3
Thanks  Smiley
hero member
Activity: 675
Merit: 504
April 20, 2016, 06:35:47 AM
#2
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
newbie
Activity: 18
Merit: 8
April 20, 2016, 06:30:59 AM
#1
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 ?
Jump to: