Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: puremage111 on July 21, 2017, 09:10:28 AM



Title: Is 1 Confirmation enough to prevent double spend?
Post by: puremage111 on July 21, 2017, 09:10:28 AM
As the blockchain growth time by time, which means the difficulty tend to become harder and harder.

Previously i've seen most casino only credits payment after 2 confirmation

Recently i've deposit into several site like casino, purchasing site. And most of it uses 0-1 Confirmation.

Therefore come to our main question, in the current state, is 1 confirmation enough to protect and prevent double spend?


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: ranochigo on July 21, 2017, 10:07:46 AM
As the blockchain growth time by time, which means the difficulty tend to become harder and harder.
The blockchain size really has absolutely nothing to do with the difficulty.
Previously i've seen most casino only credits payment after 2 confirmation

Recently i've deposit into several site like casino, purchasing site. And most of it uses 0-1 Confirmation.

Therefore come to our main question, in the current state, is 1 confirmation enough to protect and prevent double spend?
This does have something to do with difficulty. As the difficulty increases, it becomes harder to mine a block and will need a lot of hashpower to even get a block. In most of the attacks an user can execute, loads of hashpower is needed and it becomes unfeasible to double spend a transaction.

Most of the casinos allows for 1 confirmation deposit since a long time ago.

Just a small correction: It is impossible to prevent a double spend if the transaction is made after the checkpoint. The risk is insignificant if its for daily purchases with the assumption that the attackers are looking for profit.


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: amaclin1 on July 21, 2017, 02:44:45 PM
Quote
Is 1 Confirmation enough to prevent double spend?

Most of the casinos allows for 1 confirmation deposit since a long time ago.
This is not an answer to the question ;D

In fact the question is incorrect itself.
Is one umbrella enough protection against a meteorite?


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: puremage111 on July 21, 2017, 03:06:08 PM
The blockchain size really has absolutely nothing to do with the difficulty.

Ouh it doesn't? I see, i always thought that blockchain size does affect on the difficulty xd So amount of miners do affect it?

Previously i've seen most casino only credits payment after 2 confirmation

Recently i've deposit into several site like casino, purchasing site. And most of it uses 0-1 Confirmation.

Therefore come to our main question, in the current state, is 1 confirmation enough to protect and prevent double spend?

Quote
This does have something to do with difficulty. As the difficulty increases, it becomes harder to mine a block and will need a lot of hashpower to even get a block. In most of the attacks an user can execute, loads of hashpower is needed and it becomes unfeasible to double spend a transaction.

Most of the casinos allows for 1 confirmation deposit since a long time ago.

Just a small correction: It is impossible to prevent a double spend if the transaction is made after the checkpoint. The risk is insignificant if its for daily purchases with the assumption that the attackers are looking for profit.

For this point : Transaction is made after the checkpoint, is there something called as 0 confirmation? Is checkpoint mark when a coin sending command is execute or it only starts to check once 1 confirmation is done?

Thanks


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: HeRetiK on July 21, 2017, 03:07:31 PM
Therefore come to our main question, in the current state, is 1 confirmation enough to protect and prevent double spend?

To create a double spend on a transaction that as already 1 confirmation, you would need to have a non-trivial amount of hashpower to actively attack the network. So yes, for most use cases 1 confirmation is enough.

For more details, check these links out:

https://en.bitcoin.it/wiki/Confirmation

https://people.xiph.org/~greg/attack_success.html


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: ranochigo on July 21, 2017, 03:11:44 PM
Ouh it doesn't? I see, i always thought that blockchain size does affect on the difficulty xd So amount of miners do affect it?
Network hashrate is the main factor that affects the frequency of the block and hence the difficulty.

For this point : Transaction is made after the checkpoint, is there something called as 0 confirmation? Is checkpoint mark when a coin sending command is execute or it only starts to check once 1 confirmation is done?

Thanks
They are already included in the Blockchain when they are mined by a miner.

Checkpoints are hardcoded into clients and since double spending requires the miner to use their hashpower to rewrite the Blockchain, they cannot orphan blocks before that checkpoint. If you have transactions included before then, your transaction is pretty much irreversible unless the network changes their client's checkpoint.


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: amaclin1 on July 21, 2017, 03:16:03 PM
they cannot orphan blocks before that checkpoint.
they can


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: ranochigo on July 21, 2017, 03:29:47 PM
they cannot orphan blocks before that checkpoint.
they can
How so? If my client have a checkpoint at X, how could they still orphan blocks before that?
Edit: Don't get me wrong, I'm open to the fact that I may be wrong but I can't seem to find a good explanation on it.


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: BitcoinBallerina on July 21, 2017, 04:34:59 PM
As the blockchain growth time by time, which means the difficulty tend to become harder and harder.

Previously i've seen most casino only credits payment after 2 confirmation

Recently i've deposit into several site like casino, purchasing site. And most of it uses 0-1 Confirmation.

Therefore come to our main question, in the current state, is 1 confirmation enough to protect and prevent double spend?

The real question should be is double-spend a threat to Bitcoin becoming mainstream? The answer is no. It takes tons of hashing power after a few confirmations, or even one for that matter... which makes this a moot point.


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: Syke on July 21, 2017, 10:21:44 PM
Therefore come to our main question, in the current state, is 1 confirmation enough to protect and prevent double spend?

You need to assign a probability to the question. 1 confirmation is not a 100% absolute guarantee that a double spend won't happen.


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: amaclin1 on July 21, 2017, 10:29:23 PM
You need to assign a probability to the question. 1 confirmation is not a 100% absolute guarantee that a double spend won't happen.
... and transferred amount either matter ;D


Title: Re: Is 1 Confirmation enough to prevent double spend?
Post by: buwaytress on July 22, 2017, 04:08:53 PM
As the blockchain growth time by time, which means the difficulty tend to become harder and harder.

Previously i've seen most casino only credits payment after 2 confirmation

Recently i've deposit into several site like casino, purchasing site. And most of it uses 0-1 Confirmation.

Therefore come to our main question, in the current state, is 1 confirmation enough to protect and prevent double spend?

1. There are plenty of 1 and even 0 confirmation casinos, but they protect themselves anyway by requiring all deposits to have more confirmations when you request a withdraw.
2. Technically, no amount of confirmations can prevent double spends, but the likelihood of a double spend attempt becomes lower and lower with each additional confirmation. This likelihood becomes impractical to even attempt some time after 6 confirmations, if I remember, but for most cases, 1 confirmation is "safe enough" for insignificant amounts.