Everything you wanted to know about bitcoin but were afraid to ask

4 stars based on 62 reviews

One article I am reading said that proof of work system is used in Bitcoin to prevent double spending. Imagine we are protecting against double spending in following way.

When Bob receives transaction from Alice saying that "Alice transfers some BTC to Bob", bob would broadcast this to entire network to ask them to verify whether this is a legitimate transaction. In the mean time say if Alice had sent bitcoin double spend attempt crossword same message to Charlie saying that she is transfering same BTC to CharlieCharlie would have also broadcast this message and other nodes on the network would spot that Alice is trying to spend same BTC with two persons, and bitcoin double spend attempt crossword would let Bob or Charlie know that this is invalid transaction.

Or if all is ok Bob or Charlie would wait till some nodes send acknowledgment that this is valid transaction. Above scheme would work but Alice could cheat in the following way. She could create say one million fake identities on network, and they would lie to Bob and Charlie that the transactions was valid- making them accept payment. Now comes my question. It seems proof of work was introduced in Bitcoin to prevent exactly the above kind of sock poppet attack.

But I fail to see how proof of work helps protect against above sock puppet attack. Why would Alice not be able to introduce those fake identities on the network anymore? I know what proof of work is, this question is more related how and why it prevents above mentioned sock puppet attack. It is not really the Proof of Work which prevents double spends but rather the blockchain itself which prevents double spends. The Proof of Work is just one aspect of the blockchain.

For a transaction to be considered final, it must be in the blockchain. Otherwise it could disappear forever and everyone forgets about it. For a transaction to be added to the blockchain, it must be included in a block, and miners will do a Proof of Work for the block.

In order for the transaction to be included in a block, the outputs that it spends from must have not been spent by any other transaction in the blockchain nor by any other transaction in the block. If such an other transaction exists in the blockchain, then the block will be invalid.

It is this process of including transactions in blocks which avoids double spends. It essentially establishes an order and says "this transaction is the real transaction, all others which spends any of the outputs which this transaction spends are fake".

The proof of work mechanism exists in Bitcoin because that is what makes the blockchain immutable. A valid proof of work means that a miner is proving that they did a certain amount of work, on average, in order to produce a block. In order to replace that block, someone else must also do about the same amount of work for that block. If someone wanted to modify a block in the blockchain and have everyone accept it, that person must perform the same amount of work that went into creating the block, then do the same for every single block that follows it because those blocks would be invalid since a block in their history has changed.

This makes the blockchain immutable; the amount of work required to rewrite history is considered to be infeasible and much too costly to do practically. That is what the Proof of Work is for. For a transaction to be valid it is not enough to be broadcasted by the attacker or repeated by many nodes.

It must be added to the blockchain by some node in the network. Adding the transaction to the blockchain is not easy, as some node in the network must make PoW, which is time and processing power consuming. Inside single chain transactions cannot collide.

Each node accepts bitcoin double spend attempt crossword chain as valid one so for an attack to succede the attacker must maintain two equally long chains. Then some nodes will accept one chain and others other chain as valid, thus allowing an attacker to spend money twice - within one transaction on one chain and other 'colliding' transaction on other chain. Thus there will exist in long term: As said, inside single chain transactions cannot colide, thus you cannot double spend.

Since the amount of computation required do Hash Guessing to send rogue messages is so high, it becomes impractical to do 1M impersonation requests. One can steal private keys of other nodes to create transactions on their behalf, but still it would follow Blockchain consensus principles. If Alice owns majority of the Blockchain nodes, then she can authenticate a rogue transaction using the consensus.

Faking identities is quite difficult and the scenarios why it will bitcoin double spend attempt crossword fail has been explained in croraf's answer. By posting your answer, you agree to the privacy policy and bitcoin double spend attempt crossword of service.

Questions Tags Users Badges Unanswered. Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. Join them; it only takes a minute: Here's how it works: Anybody can ask a question Anybody can answer The best answers are voted up and rise to the top.

How proof of work prevents double spend. Can someone ealaborate and explain? Only block chain would not suffice. All nodes have blockchain locally. So as in question if alice simultaneously sends same transaction to bob and charlie in both users' blockchain it would seem that the transaction is valid because that coin has not been spent yet.

So you need a consesus protocol where bob and charlie would ask for example whole network if the transaction they receive is OK.

That's not how the blockchain works. The blockchain is the consensus protocol where Bob and Charlie asks the network whether the transaction they receive is ok. The blockchain is bitcoin double spend attempt crossword something that is added to locally when new transactions bitcoin double spend attempt crossword received. It is added to locally when new blocks are received, and new blocks can only be created by performing the proof of work.

Blocks and transactions must also conform to the consensus rules that the node is following. Those rules also include double spend protection. Here is article I referred to: And besides can you then explain maybe in answer WHY proof of work was added to bitcoin? The Bitcoin double spend attempt crossword Puppet reference Why would Alice not be able to introduce those fake identities on the network anymore?

She could create say one million bitcoin double spend attempt crossword identities on network Sign up or log in Bitcoin double spend attempt crossword up using Google. Sign up using Facebook. Sign up bitcoin double spend attempt crossword Email and Password. Post as a guest Name. Bitcoin Bitcoin double spend attempt crossword Exchange works best with JavaScript enabled.

Code civil 2015 litecoin

  • Bitcoin exchange rate app

    Bitcoin worth the investment

  • Does a bitcoin node need to scan through the whole

    Blackett review blockchain wallet

1310 uhrbitcoin erlebt im januar den schlimmsten absturz seit drei jahren

  • Litecoin price chart cad

    Eclipsemc bitcoin charts

  • Raccoon bot 1932 drill bits

    Earn 20 btc in just 15 minutes 100% working bitsler script download here httpwwwbitcoinaddercompbits

  • Bitcoin wallet india

    Auth proxy bitcoin minerals

Bitcoin price chart eurgbp

10 comments Bitcoin instructions how to tie

Bitcoin trading cryptocurrency trading ecn forex broker

The Bot will trade automatically on BTC and ETH compared to USD. 4h, How many fulltime devs are working on this project. Take care, Jonathan Check the website, you will understand if you haven't closely followed the news. Learn how to Choose the Best Forex Trading Platform. You can look up recent trends to make informed predictions and see what others have been trading and how much.