2

Newbie alert ! Please let me know if this is not the right forum.

So I have spent time reading up on Bitcoin. I think, I understand now; but, would love to have it confirmed.

To start with, we have a transaction, t1 as below.

t1 : {a1, 50.00 BTC, a2}

Where, t1 is the transaction that goes to the block-chain (ledger) for confirmation. a1 is the input, for example, Mt Gox from whom 50.00 BTC were purchased. a2 is the output address who purchased the bitcoins from Mt Gox.

After t1 is confirmed, the unspent amount of a2 is 50.00 BTC.

Let us say, a2 wants to send 40.00 BTC to a3 for some service. Then, a new transaction t2 is created as below.

t2 : {a1, 40.00 BTC, a3}

As before, t2 goes to block-chain awaiting confirmation. The input to t2 is a1, amount 40.00 BTC and the addressee (or recipient) is a3.

Are the following correct ?

  1. t2 has input address as a1 as described here - What does a transaction look like?
  2. Because t2 does not mention a2, the anonymity of a2 is preserved.
  3. t2 is confirmed because unspent balance of a2 at this point is 50.00 BTC. (Not sure how, but sounds like it.)
  4. After t2 is confirmed, unspent balance of a2 is 10.00 BTC.

For reference, I used the following.

t1 : eac977ae6ee885b62c4756230f6bdd27ccfa7de215836e6f5fc379c66f4c6a81
a1 : 1LNWw6yCxkUmkhArb2Nf2MPw6vG7u5WG7q
a2 : 16fKtcRS2P57pH6dF5stJ4wF1SC4SzaMJK

and,

t2 : c8a8db01733a4300ad14e1fd78ff776ec21260e7081dd48c7b2f5ad1a9a1da46
a3 : 1Cmerw473xaaNpR6T9Lo5DA6d99uXLe3gc
3
  • What is your question exactly. You've stated your points, but it is not clear what you are asking. I think you are mistaking Unspent Transaction Outputs (UTXOs), with addresses, because in your example a1 would have to have to have previously received money to pay both transactions.
    – T9b
    Nov 10, 2014 at 9:33
  • I just want to understand a transaction completely. I think, I know the dots, but am unable to connect them. :( How do the t1, t2, a1, a2 and a3 all work out ? Nov 10, 2014 at 9:54
  • I'm not sure you do 'know the dots'. I found the following explanation very helpful, it is a specific piece of software, but the README breaks down all the steps in a transaction. github.com/spesmilo/sx
    – T9b
    Nov 10, 2014 at 9:58

1 Answer 1

1

Transacions don't have input and output addresses, they have input and output scripts. Addresses are just short-hand notation for particular scripts.

When making a transaction, you don't just say what the input and output scripts are. You have to explicitly reference which UTXO (unspent transaction outputs) a transaction spends, and then you also make a set of new UTXOs. Each UTXO has an amount associated with it.

t2 has input address as a1 as described here - What does a transaction look like?

If t2 is trying to spend the coins that were sent to it in t1, then it would need to reference t1 (not a1 or a2). Specifically, it would need to reference the UTXO in t1 that credited the a2 script.

Because t2 does not mention a2, the anonymity of a2 is preserved.

Not really. Anonymity is only preserved by not linking your address to your name, such as by posting on a social media website.

t2 is confirmed because unspent balance of a2 at this point is 50.00 BTC. (Not sure how, but sounds like it.)

If t2 were confirmed, spending the UTXO made in t1, then, yes, it would be successful because the total inputs is more than the total outputs. Actually, it's total inputs are 10 BTC more than it's total outputs, so that 10 BTC would just go to the miners (and not be left on the 'address balance').

After t2 is confirmed, unspent balance of a2 is 10.00 BTC.

Not actually, like mentioned above, it doesn't really work like that. Transaction outputs are either completely spent or are unspent. So after t2, the output is completely spent. If the 10 BTC is not sent to another output in t2, then it is just assumed to be a very generous miner fee.

1
  • "Transacions don't have input and output addresses, they have input and output scripts. Addresses are just short-hand notation for particular scripts. " Thanks for that ! My intention is to co-relate the debit/credit and its confirmation in the block-chain. I will do some more reading. Nov 10, 2014 at 15:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.