Bitcoin Forum
May 07, 2024, 09:32:28 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: 51 percent attack and blocktime  (Read 221 times)
Yougu (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 4


View Profile
December 18, 2018, 03:48:14 AM
Merited by o_e_l_e_o (1), xtraelv (1)
 #1

Hey everyone,

I've been looking into 51 percent attacks recently and was wondering about the limitations. In a 51 percent attack an attacker tries to generate an alternate chain faster than the honest chain. To convince the network that his chain is the correct, he must ultimately have the longest chain.

The blocktime for each chain is 10 min per block. If blocks are created too fast, the difficulty is adjusted.

Given these limitations how is it possible to build an alternate chain that grows much faster than the honest chain? If my understanding is correct, nodes also check whether the difficulty target has been adjusted correctly. So if the block time is too short in the long run, the newly mined blocks might not been recognized by the network.

Is that correct or do I miss something? Thanks!

1715074348
Hero Member
*
Offline Offline

Posts: 1715074348

View Profile Personal Message (Offline)

Ignore
1715074348
Reply with quote  #2

1715074348
Report to moderator
Unlike traditional banking where clients have only a few account numbers, with Bitcoin people can create an unlimited number of accounts (addresses). This can be used to easily track payments, and it improves anonymity.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715074348
Hero Member
*
Offline Offline

Posts: 1715074348

View Profile Personal Message (Offline)

Ignore
1715074348
Reply with quote  #2

1715074348
Report to moderator
1715074348
Hero Member
*
Offline Offline

Posts: 1715074348

View Profile Personal Message (Offline)

Ignore
1715074348
Reply with quote  #2

1715074348
Report to moderator
BrewMaster
Legendary
*
Offline Offline

Activity: 2114
Merit: 1292


There is trouble abrewing


View Profile
December 18, 2018, 04:46:29 AM
Merited by o_e_l_e_o (1)
 #2

The blocktime for each chain is 10 min per block. If blocks are created too fast, the difficulty is adjusted.

there is no such thing as "blocktime" and "10 min per block". the only time related variable that we have is 2016 blocks in 2 weeks and that is what is checked to adjust the difficulty.

Quote
Given these limitations how is it possible to build an alternate chain that grows much faster than the honest chain?

you perform 51% attack by having >51% of hashrate!
in other words you should have more than half of the hashing power of the whole network so that you can find more blocks compared to the rest (the <49%), and that way you create the longest chain.
remember that 51% is the bare minimum, it is not possible to actually do it with 51%, you need a lot more than that to successfully pull that off.

There is a FOMO brewing...
Yougu (OP)
Newbie
*
Offline Offline

Activity: 6
Merit: 4


View Profile
December 18, 2018, 05:28:22 AM
 #3

Thanks BreMaster, but I guess I still don't get it completely. For newly mined blocks I understand why the aggregation of 51 percent of hashing power helps the attacker.

If the attacker decides to fork much earlier, let's say 2,500 blocks earlier, he has to catch up and eventually overtake the main chain. The attacker cannot do so however, because the difficulty must be adjusted if he mines blocks too fast. So, even if 2016 blocks are mined every 2 weeks on average, this applies to both chains. So rather than catching up with the main chain, the attacker will fight a loosing battle, since the other chain eventually grows as fast as his.

I know this is only a theoretical problem, but I was wondering whether the blocktime itself (or how you want to call it) imposes limitations to the 51 percent attack. Thanks!


xtraelv
Legendary
*
Offline Offline

Activity: 1274
Merit: 1924


฿ear ride on the rainbow slide


View Profile
January 05, 2019, 09:07:18 AM
Merited by DdmrDdmr (2)
 #4

Thanks BreMaster, but I guess I still don't get it completely. For newly mined blocks I understand why the aggregation of 51 percent of hashing power helps the attacker.

If the attacker decides to fork much earlier, let's say 2,500 blocks earlier, he has to catch up and eventually overtake the main chain. The attacker cannot do so however, because the difficulty must be adjusted if he mines blocks too fast. So, even if 2016 blocks are mined every 2 weeks on average, this applies to both chains. So rather than catching up with the main chain, the attacker will fight a loosing battle, since the other chain eventually grows as fast as his.

I know this is only a theoretical problem, but I was wondering whether the blocktime itself (or how you want to call it) imposes limitations to the 51 percent attack. Thanks!




I wrote a basic explaination about how 51% attacks work: How does a double spend 51% attack work ? Explanation and examples.


Article by Vitalik Buterin that covers some of what you are interested in: https://blog.ethereum.org/2014/07/11/toward-a-12-second-block-time/


The blockchain follows the heaviest chain. This means the chain with the highest difficulty which is usually longer as well.

This means that the difficulty plays an important role in which chain is accepted as the "winning chain". The difficulty is adjusted (depending on the code) every block or x number of blocks. This means that a higher difficulty chain has preference over a lower difficulty chain. Over a space of time a higher difficulty chain will be longer than a lower difficulty chain provided that the hashrate remains constant (or increases on the higher difficulty chain).

If you followed the progress of the BCH versus BSV you can see how that worked out publicly.  https://cash.coin.dance/



The BCH & BSV fork was effectively a lot of the characteristics of a very public version of a 51% attack. (Ignoring the differences in code) and has provided a lot of interesting data.

Despite the increase in difficulty due to higher hashrate - in general a higher hashrate blockchain adds blocks to the blockchain faster than a lower hashrate chain ( longest / heaviest chain is accepted as the majority)










We are surrounded by legends on this forum. Phenomenal successes and catastrophic failures. Then there are the scams. This forum is a digital museum.  
* The most iconic historic bitcointalk threads.* Satoshi * Cypherpunks*MtGox*Bitcointalk hacks*pHiShInG* Silk Road*Pirateat40*Knightmb*Miner shams*Forum scandals*BBCode*
Troll spotting*Thank you to madnessteat for my custom avatar hat.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!