0

This is just to verify my understanding of Bitcoin double spend detection.

1) Use of UTXO indexes : This ensures that there as been no spend from that output (transferred to recipient in Block of height N) in any of the subsequent transactions, up till last confirmed Block in chain (from N till current height). So the binary search if UTXO indexes is necessarily done for all transactions, right?

2) A con could theoretically double spend by garnering enough (51%) computing power to generate longer blocks that don't include his first (legit) spend', and pay himself or partner with from same output (since smaller length with legit transaction would be rejected). But this is only a theoretical possibility. right?

2) A wait of 6 confirmed blocks is recommended for high value transactions, as it is less likely for your confirmed transaction to get dropped from chain after that, even if con has upto 10% computing power. right ?

1

1 Answer 1

1
  1. The Unspent Transaction Output (UTXO) set only includes valid transaction outputs that have not been spent yet. Once a TXO is used, it is removed from the UTXO set. So, to check if an output exists and is spendable, you see whether it is in the UTXO set.
    This actually makes discovering a double-spend attempt of "aged transactions" much easier than finding double-spend attempts in unconfirmed transactions.

  2. A majority attack is not only theoretical, unless you deem someone acquiring 51% of the hashing power a theoretical possibility. But it's really expensive and would probably disintegrate Bitcoin value, so one could argue that it is unlikely to happen.

  3. It puts the risk of reversal below 0.1% with an attacker that has 10% of the hashing power. Why is 6 the number of confirms that is considered secure?

7
  • thanks. Just a follow-up Q. In fork/longer length scenarios how far back can back-tracking be done, to discard shorter blocks? Is there a limit (imposed or settled to) ?
    – RajCherla
    Commented Sep 2, 2016 at 11:54
  • I don't think that there is a formal limit, but according to What is the longest blockchain fork that has been orphaned to date?, the longest natural reorganization was 4 blocks long (although the answer might be outdated now). There was a reorganization of 31 depth due to a bug that split the network once.
    – Murch
    Commented Sep 2, 2016 at 12:03
  • 51-attack is not extraordinary expensive. And it will happen when the profit (in fiat currency) will be more than expenses. Nobody would care about desintegrating crypto performing it :)
    – amaclin
    Commented Sep 2, 2016 at 14:51
  • 1
    amaclin: I disagree because it's against the interest of the major mining pools, so you'd have to compete with their hashpower.
    – Murch
    Commented Sep 2, 2016 at 15:00
  • 1
    @RajCherla: What you're describing is called "Pruning mode"
    – Murch
    Commented Sep 2, 2016 at 17:57

Your Answer

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

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