Difference between revisions of "Confirmation"

Line 1: Line 1:
 +
'''Bitcoin transaction confirmation''' is needed to prevent double-spending of the same money. One of the main advantages of bitcoin is that it avoids the problem of [[Double-spending|double-spending]], i.e. the risk that a digital currency token may be copied and spent more than once. In spite of having no central authority to verify that its tokens are not being duplicated, bitcoin successfully avoids double-spending through a system of decentralized transaction confirmation, based on the [[Consensus|consensus]] of its users. Bitcoin transaction time is always changing and it depends on the miner's fee.
 +
 +
==How to confirm bitcoin transaction? ==
 +
A transaction is a transfer of value between Bitcoin wallets that gets included in the block chain<ref>n.d., [https://bitcoin.org/en/how-it-works How does Bitcoin work?], ''bitcoin.org'', n.d. Retrieved 02/03/18.</ref>. [[Bitcoin transaction|Bitcoin transactions]] are not immediate. When a user wishes to send bitcoins, information is broadcast from her [[Bitcoin wallet|wallet]] to the (users in the) network, who verify that she has enough coins, and that they have never been spent before. Once validated, [[Mining|miners]] will include this transaction – along with others – in a new [[Block|block]] in the blockchain. This is called a '''transaction confirmation'''. The transaction is now said to be "[https://bitcoinchain.com/mempool/  unconfirmed bitcoin transaction]".
 +
 +
Each time a new block is added to the chain (every ten minutes), the transaction is said to be confirmed again. As a consensus, many users wait for a transaction to be confirmed six times (after roughly sixty minutes) before accepting it as payment, to avoid double-spending. Users will usually show a transaction as "n/unconfirmed" until it is six blocks deep.
 +
 +
<br />
 +
[[File:TransactionConfirmationTimesExample.PNG|center|Example of the transaction confirmation time]]
 +
 +
== Bitcoin Confirmation Time ==
 +
To answer the question "'''How Long Does It Take To Transfer Bitcoin'''" it needs to understand that bitcoin transaction confirmation time depends on many factors. The deeper a transaction is buried, the harder it will be to manipulate. Although 0/unconfirmed transactions could be reversed via Finney attack, race attack, or [[51% attack]], small amounts of money will not be worth the trouble. Larger sums are worth protecting under more bitcoin confirmations. The number six is just an arbitrary limit, beyond which the feasibility of an attacker being able to amass more than 10% of the network's hashrate for purposes of a transaction falsification becomes negligible (a risk lower than 0.1%).
 +
 +
Having understood how transactions occur, you should find out what affects the speed of processing and verification of information. To speed up the process, you need to know that it can slow down. Usually at the final time is affected by:
 +
* network utilization;
 +
* sharp jumps in the course;
 +
* low commission.
 +
 +
The influence of the first factor is especially noticeable. When the system needs to process many requests, users have to wait. Especially long we have to wait in the days of peak activity, which is not often, but sometimes. Of great importance is the Commission paid to miners. The bigger it is, the higher the priority will be.
 +
 +
How long does bitcoin take to send? The size of the transaction has an influence on bitcoin confirmation time. It also has an additional impact: sending large amounts is much faster.
 +
 +
===How many confirmations in bitcoin needed?===
 +
Although six confirmations is the consensus, merchants and exchanges that accept bitcoin as payment for their products and services should set their own standard of confirmations they require before accepting payment.
 +
 +
 +
 +
==Number of Bitcoin Confirmations==
 +
A regular bitcoin client will show the transaction as “n / unconfirmed” until its size in the chain becomes 6 blocks. There is nothing special about the default, often-cited figure of 6 blocks. It was chosen based on the assumption that an attacker is unlikely to amass more than 10% of the hashrate, and that a negligible risk of less than 0.1% is acceptable.
 +
Both these figures are arbitrary, however;
 +
6 blocks are overkill for casual attackers, and at the same time powerless against more dedicated attackers with much more than 10% hashrate.<ref>[https://bitcoil.co.il/Doublespend.pdf Analysis of hashrate-based double-spending]</ref>.
 +
 +
Users and cryptocurrency exchanges that accept bitcoins as payment set their threshold in the number of required blocks until the payment is confirmed.
 +
 +
To find out how many checks are required to process the transaction and how long to wait for the receipt of funds, it is necessary to understand the features of cryptocurrency transfers. This process consists of several stages:
 +
* addressee sends money;
 +
* information about transactions is made in special blocks, each of which has a room and a hash (special data);
 +
* the blocks are sent for scanning to different computers;
 +
* if everything is done correctly, the received information replenishes various databases;
 +
* checked blocks complete the chain;
 +
* the money goes to the recipient.
 +
To make a transfer, the transaction must be verified in 6 blocks. If this does not happen, cryptogenic reach the final destination. Accordingly, the speed of bitcoin confirmations depends on the time of sending Finance.
 +
 +
 
=DISCLAIMER=
 
=DISCLAIMER=
 
This article is a direct copy of the original https://en.bitcoin.it/wiki/Confirmation and has not been checked for correctness or edited.
 
This article is a direct copy of the original https://en.bitcoin.it/wiki/Confirmation and has not been checked for correctness or edited.
Line 14: Line 58:
 
Note that unconfirmed transactions do not [[Transaction expiration|expire]].
 
Note that unconfirmed transactions do not [[Transaction expiration|expire]].
  
=Number of Confirmations=
 
 
The classic bitcoin client will show a transaction as "n/unconfirmed" until the transaction is 6 blocks deep.
 
Merchants and exchanges who accept [[trade|bitcoins as payment]] can and should set their own threshold as to how many blocks are required until funds are considered confirmed.
 
When potential loss due to double spending as nominal, as with very inexpensive or non-fungible items, people may choose not to wait for a transaction to be confirmed, and complete the exchange as soon as it is seen on the network.
 
Most [[:Category:Exchanges|exchanges]] and other merchants who bear the risk from double spending require 6 or more blocks.
 
 
There is nothing special about the default, often-cited figure of 6 blocks. It was chosen based on the assumption that an attacker is unlikely to amass more than 10% of the hashrate, and that a negligible risk of less than 0.1% is acceptable.
 
Both these figures are arbitrary, however;
 
6 blocks are overkill for casual attackers, and at the same time powerless against more dedicated attackers with much more than 10% hashrate.<ref>[https://bitcoil.co.il/Doublespend.pdf Analysis of hashrate-based double-spending]</ref>
 
  
 
Freshly-mined coins cannot be spent for 100 blocks.
 
Freshly-mined coins cannot be spent for 100 blocks.

Revision as of 11:49, 11 December 2019

Bitcoin transaction confirmation is needed to prevent double-spending of the same money. One of the main advantages of bitcoin is that it avoids the problem of double-spending, i.e. the risk that a digital currency token may be copied and spent more than once. In spite of having no central authority to verify that its tokens are not being duplicated, bitcoin successfully avoids double-spending through a system of decentralized transaction confirmation, based on the consensus of its users. Bitcoin transaction time is always changing and it depends on the miner's fee.

How to confirm bitcoin transaction?

A transaction is a transfer of value between Bitcoin wallets that gets included in the block chain<ref>n.d., How does Bitcoin work?, bitcoin.org, n.d. Retrieved 02/03/18.</ref>. Bitcoin transactions are not immediate. When a user wishes to send bitcoins, information is broadcast from her wallet to the (users in the) network, who verify that she has enough coins, and that they have never been spent before. Once validated, miners will include this transaction – along with others – in a new block in the blockchain. This is called a transaction confirmation. The transaction is now said to be "unconfirmed bitcoin transaction".

Each time a new block is added to the chain (every ten minutes), the transaction is said to be confirmed again. As a consensus, many users wait for a transaction to be confirmed six times (after roughly sixty minutes) before accepting it as payment, to avoid double-spending. Users will usually show a transaction as "n/unconfirmed" until it is six blocks deep.


Bitcoin Confirmation Time

To answer the question "How Long Does It Take To Transfer Bitcoin" it needs to understand that bitcoin transaction confirmation time depends on many factors. The deeper a transaction is buried, the harder it will be to manipulate. Although 0/unconfirmed transactions could be reversed via Finney attack, race attack, or 51% attack, small amounts of money will not be worth the trouble. Larger sums are worth protecting under more bitcoin confirmations. The number six is just an arbitrary limit, beyond which the feasibility of an attacker being able to amass more than 10% of the network's hashrate for purposes of a transaction falsification becomes negligible (a risk lower than 0.1%).

Having understood how transactions occur, you should find out what affects the speed of processing and verification of information. To speed up the process, you need to know that it can slow down. Usually at the final time is affected by:

  • network utilization;
  • sharp jumps in the course;
  • low commission.

The influence of the first factor is especially noticeable. When the system needs to process many requests, users have to wait. Especially long we have to wait in the days of peak activity, which is not often, but sometimes. Of great importance is the Commission paid to miners. The bigger it is, the higher the priority will be.

How long does bitcoin take to send? The size of the transaction has an influence on bitcoin confirmation time. It also has an additional impact: sending large amounts is much faster.

How many confirmations in bitcoin needed?

Although six confirmations is the consensus, merchants and exchanges that accept bitcoin as payment for their products and services should set their own standard of confirmations they require before accepting payment.


Number of Bitcoin Confirmations

A regular bitcoin client will show the transaction as “n / unconfirmed” until its size in the chain becomes 6 blocks. There is nothing special about the default, often-cited figure of 6 blocks. It was chosen based on the assumption that an attacker is unlikely to amass more than 10% of the hashrate, and that a negligible risk of less than 0.1% is acceptable. Both these figures are arbitrary, however; 6 blocks are overkill for casual attackers, and at the same time powerless against more dedicated attackers with much more than 10% hashrate.<ref>Analysis of hashrate-based double-spending</ref>.

Users and cryptocurrency exchanges that accept bitcoins as payment set their threshold in the number of required blocks until the payment is confirmed.

To find out how many checks are required to process the transaction and how long to wait for the receipt of funds, it is necessary to understand the features of cryptocurrency transfers. This process consists of several stages:

  • addressee sends money;
  • information about transactions is made in special blocks, each of which has a room and a hash (special data);
  • the blocks are sent for scanning to different computers;
  • if everything is done correctly, the received information replenishes various databases;
  • checked blocks complete the chain;
  • the money goes to the recipient.

To make a transfer, the transaction must be verified in 6 blocks. If this does not happen, cryptogenic reach the final destination. Accordingly, the speed of bitcoin confirmations depends on the time of sending Finance.


DISCLAIMER

This article is a direct copy of the original https://en.bitcoin.it/wiki/Confirmation and has not been checked for correctness or edited. 11th October 2019 Expected review by: 25 October 2019



After a transaction is broadcast to the Bitcoin network, it may be included in a block that is published to the network. When that happens it is said that the transaction has been mined at a depth of 1 block. With each subsequent block that is found, the number of blocks deep is increased by one. To be secure against double spending, a transaction should not be considered as confirmed until it is a certain number of blocks deep.

Note that unconfirmed transactions do not expire.


Freshly-mined coins cannot be spent for 100 blocks. It is advisable to wait some additional time for a better chance that the transaction will be propagated by all nodes. Some older bitcoin clients won't show generated coins as confirmed until they are 120 blocks deep.

How Many Confirmations Is Enough

Transactions with 0/unconfirmed can be reversed with not too much cost via Finney attack and race attack, but in some cases may still be acceptable especially for low-value goods and services, or ones which can be clawed back.

For transactions with confirmations, the website (https://people.xiph.org/~greg/attack_success.html) can be used to calculate the probability of a successful doublespend given a hashrate proportion and number of confirmations. Note that in the reality of bitcoin mining today, more than 6 confirmations are required. (60 confirmations to have <1% odds of succeeding against an entity with 40% hash power). See Section 11 of the (https://bitcoin.org/bitcoin.pdf bitcoin whitepaper) for the AttackerSuccessProbability formula.

Some mining enterprises may hide their hash power across several mining pools. Also mining ASICs can be temporarily overclocked to increase their hash power. This is less power-efficient but could be used for a brief burst of hashrate. For maximum safety, it is recommended that for the irreversible sale of items with value comparable to the block reward, a large number of confirmations (144 blocks = 1 day) is required before completing the exchange.

See also: Irreversible Transactions

Confirmation Times

Each additional confirmation is a new block being found and added to the end of the blockchain.

Miners create blocks by solving the proof of work for their proposed block. The block interval has an average of 10 minutes but not every block interval is exactly 10 minutes. It follows a statistical process known as a poisson process, where random events happen with the same probability in each time interval. Another way of expressing this is that the mining process has no memory, at every second a block has the same chance of being found. Poisson processes are well-understood but can be unintuative.

There are lots of block intervals with a time less than 10 minutes but then a few block intervals much longer which bump up the average to 10 minutes. So the bitcoin network can get unlucky and a block won't be found for a whole hour.

In a 10 minute interval, the probability of a block being found is about 63% (or 1 - e^(-1)). So approximately two-thirds of the time a block will be found in 10 minutes or less. In 30 minutes a block has a 95% chance of being found, which rises to 99.7% if the time interval is 60 minutes.

See Also

References

<references />