8

AttackerAlice has a BTC Wallet with 0 BTC. AccompliceBob has a BTC Wallet.

Is it possible to transfer 100 BTC from AttackerAlice to AccompliceBob?

Suppose a BadMiner accepted this as a valid transaction, and puts this fake transaction into a block, how will it be detected and rejected?

  • to add to the question... Also if the BadMiner is able to create an additional block, will en.bitcoin.it/wiki/Protocol_rules be enough to keep the offending blocks out of the blockchain? – Smagula Jan 31 '14 at 11:47
12

You can create fake transactions and blocks including fake transactions all day long if you want. Your problem would be getting other people to accept those blocks and they won't because they can very easily see that it contains fake (better word: invalid) transaction(s) and simply disregard those blocks completely.

The first invalid block wil never be accepted by any non-accomplice so it doesn't matter how many blocks are put on top of that, they won't be accepted either.

  • 1
    got it.. since most of the network would have rejected the first block, the blockchain will not have the fake block.. other miners intending to add to the block chain will not see the fake block in majority of the cases... hence the honest block chain will grow faster and survive.. – Smagula Jan 31 '14 at 12:32
  • 3
    actually it's better to say that nodes won't relay the transactions, nor include them in their block in the first place. – Luca Matteis Jan 31 '14 at 14:05
5

This cannot happen because of the way each transaction is designed. Every single transaction must reference an output of another transaction. Essentially you can only spend the money that you already have. You cannot create BTC out of thin-air.

The consensus algorithm is programmed in all nodes to only create coins out of thin-air based on the coinbase transaction, and all the transaction fees available in that block.

You can't just transfer 100 BTC out of nowhere, because all the nodes in the network would invalidate your transaction and probably ban your IP if you try to do so.

  • what if the BadMiner was able to create two blocks very quickly.. one fake and a followup legal one.. and sent both of them to the network.. – Smagula Jan 31 '14 at 12:03
  • Even if badminer got two blocks in a row he wouldn't be able to create coins out of thin air, he would only be able to double-spend coins he already has: en.bitcoin.it/wiki/… – Luca Matteis Jan 31 '14 at 12:06
  • not very clear sir.. what happens to the second legal block after the first fake block is rejected - suppose other miners start accepting the second block and grow the blockchain further..? – Smagula Jan 31 '14 at 12:16
  • @Smagula it doesn't matter. You can write a cheque for $100000 to your bank account and you won't get the money for the same reason; throwing multiple bad cheques is going to 1) get you IDd as a fraud peddler, 2) writing on paper or in a block means nothing if the ledger doesn't back up the request. – Wizard Of Ozzie Sep 16 '14 at 7:37
  • maybe a dumb question but as im learning bitcoin at this point... where does the initial input come from then?? (obviously, bitcoin is mined but how did it all start from 0) – dtc Oct 24 '15 at 1:25

protected by Community Mar 21 at 22:34

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

Would you like to answer one of these unanswered questions instead?

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