4 ms·
A miner has the same likelihood of beating the rest of the network at N blocks no matter what the block duration is. An attacker in a 1-minute block network wi
by fragsworth 13y ago
A miner has the same likelihood of beating the rest of the network at N blocks no matter what the block duration is.
An attacker in a 1-minute block network will have the same likelihood of winning 10 blocks (in 10 minutes) as if they were running bitcoin and won 10 blocks (in 100 minutes).
However, in the 1-minute network, there are ten times as many opportunities in the same amount of time to attempt to perform this kind of attack.
If I wait for 2 confirmations in Bitcoin, is this more secure than, less secure than, or equally secure to waiting for 20 confirmations in Dogecoin?
The analysis is a bit tricky.
- dragontamer 13y agoIf an organization with 45% of the hashing power became malicious, it would be able to "double spend" 2 confirmations approximately 20.25% of the time. (the other 80% of the time, the 55% side of the network would "catch up"). For an organization with 45% hashing power to maliciously double-spend cross 20 confirmations, it'd have to win the coin flip 20 times, or 0.00001% of the time. Methinks the faster hash rate is strictly better from a security standpoint... especially when you consider players who can perform a near-50% double-spend on the network. (A large 30% player may go for a "double-spend" within 2 confirmations, and will be successful 9% of the time)
- drcode 13y agoWrong: All else being identical, a currency with 10 minute blocks will have a 10x mining difficulty than a currency with a 1 minute block. Lower mining difficulty = Easier to beat network. (Easier to beat PER BLOCK, no difference PER UNIT TIME)
- deleted 13y ago[deleted]
- tlrobinson 13y agoIn fact, if you take into account the time it takes to propagate a block across the network, shorter confirmation times may actually lead to less security. e.x. if the confirmation time is 60 seconds, and it takes 30 seconds to propagate a block across the network, the miner that just mined a block will have a huge advantage in computing the next block.
- drcode 13y agoWell, if we start getting pedantic :-) smaller blocks also mean more block headers, which also hampers performance. On the flip side, I don't think mined blocks typically take more than five seconds, due to the efficiency of the highly-branching network (though I haven't looked at the numbers to confirm this...) But I admit I hadn't thought about that extra detail, thank for pointing it out.
- makomk 13y agoThat's not true, there's a very big difference per unit time. The difficulty of attempting a double spend decreases linearly with the nominal length of the blocks, but it increases exponentially with the number of blocks required to confirm a transaction. So if for instance you decide you need an average confirmation time of 20 minutes, that'd be 2 blocks in Bitcoin and around 20 blocks in our hypothetical 1-minute Bitcoin. In general, for any given target confirmation time the 1-minute Bitcoin will be harder to attack than the 10-minute one - and this is especially true for the sub-10-minute and sub-20-minute confirmation times many merchants want. If you're targetting an average confirmation time of say 5 minutes, that's a solid 5 confirmations with 1-minute-coin but a risky zero confirmation transaction with Bitcoin - and in practice a lot of services do accept transactions with zero confirmations because it's the only way to get the level of convenience their customers expect.
- DennisP 13y agoGiven the same amount of hashing power on the network, a one-minute block takes a tenth as much computation as a ten-minutes block. The network adjusts the difficulty so blocks are produced close to the desired rate.
- oillio 13y agoYour first statement is true only if the difficulty on both chains are equal. Lets assume chain A and chain B have the same hash power across their respective networks. Chain A has a block every 10 minutes, and Chain B has a block every 1 minute. The difficulty of finding a block in Chain B will be 10x easier than Chain A. Therefore an attacker will be 10x as likely to find a block on Chain B than Chain A. On chain A, 6 confirmations provides a certain level of security against a double-spend. To get that same amount of security on chain B, you need 60 confirmations. Your security against double spend is equal to the total network hashing power multiplied by the time since your transaction was added to the chain. Increasing the block speed does not affect your security. Increasing the block speed only provides a smaller measure of your security. If you are OK with 3 minutes of security at the current network hashing power, you still have to wait for the first block on chain A (up to 10 minutes). On chain B, you would be satisfied after 3 blocks (max 3 minutes).
- dragontamer 13y agohttps://news.ycombinator.com/item?id=7117592 https://news.ycombinator.com/item?id=7117592 Lets take a hypothetical look at a coin that has a 1-hour confirmation time, and compare it against Doge, BTC. Lets call it HourCoin. If you have 30% control of the mining pool, you have a 30% chance to "double-spend" anyone who accepts HourCoin after 1-hour (aka: one confirmation) If you have 30% control of the BTC mining pool, you only have a 0.07% chance of double-spending any transaction after 1-hour. (aka: 6 confirmations) If you have 30% control of the DOGE mining pool, you have a 4.23e-32 chance of double-spending a transaction after 1-hour. If you're concerned with the 50% attack, then you should favor coins with faster confirmation times. It reduces the efficacy of "near 50%" attacks.
- fragsworth 13y ago> For an organization with 45% hashing power to maliciously double-spend cross 20 confirmations, it'd have to win the coin flip 20 times, or 0.00001% of the time. That's not right. If they want to maliciously double-spend, they'd just have to get 20 blocks in less time than the rest of the network got it in, and publish their result. This is not the same as beating the network at 20 individual blocks. For instance, you can double spend by getting your 20 blocks in 19 minutes, when the rest of the network took 21 minutes. This is not the same as beating the rest of the network at all 20 blocks - some of yours may have taken longer.