Proof of work - 51% attackProof of work scheme with one and only one correct answerProof of work for standard computersSimple proof of work example?Is there an “additive” proof-of-work?Stateless proof-of-work system with 0-roundtrip timeCan “Approximate Hashing” work in a Proof-of-Work context?Prove that you have $K$ bytes of memoryIs there a proof-of-work scheme vulnerable to length extension attack?Are there Guaranteed Proof-of-work Systems?What Proof of Work does IOTA use?

Contradiction proof for inequality of P and NP?

"The cow" OR "a cow" OR "cows" in this context

Is it idiomatic to construct against `this`

What are the characteristics of a typeless programming language?

How to not starve gigantic beasts

Relationship between strut and baselineskip

Dynamic SOQL query relationship with field visibility for Users

Alignment of various blocks in tikz

Why does Mind Blank stop the Feeblemind spell?

How can I practically buy stocks?

Do I have an "anti-research" personality?

Re-entry to Germany after vacation using blue card

Philosophical question on logistic regression: why isn't the optimal threshold value trained?

Why did C use the -> operator instead of reusing the . operator?

How does Captain America channel this power?

How to denote matrix elements succinctly?

A ​Note ​on ​N!

Pulling the rope with one hand is as heavy as with two hands?

Critique of timeline aesthetic

How did Captain America manage to do this?

Multiple options vs single option UI

Was there a Viking Exchange as well as a Columbian one?

Is there really no use for MD5 anymore?

Is there any official lore on the Far Realm?



Proof of work - 51% attack


Proof of work scheme with one and only one correct answerProof of work for standard computersSimple proof of work example?Is there an “additive” proof-of-work?Stateless proof-of-work system with 0-roundtrip timeCan “Approximate Hashing” work in a Proof-of-Work context?Prove that you have $K$ bytes of memoryIs there a proof-of-work scheme vulnerable to length extension attack?Are there Guaranteed Proof-of-work Systems?What Proof of Work does IOTA use?













2












$begingroup$


In the 51% attack on the Proof Of Work Consensus Mechanism, it's often said that you need more hashing power than the rest of the network combined. Though I can't understand why you need that much.



If we break the blockchain network down in Alice, Bob, Charlie and Eve, and they all currently are honest. They all have 1/4 of the total hashing power. From what I understand, they all compete against eachother to calculate the right hash of a block, and the one winning the race gets its block on the blockchain. This happens one time each 10 minutes. Since they're all competing, the hash-power used to create a block in 10 minutes, is 1/4 of the total hashing power.



Now eve decides to go rogue, and builds her own blockchain. The difference is now, that she don't compete with anyone. That means that she can generate a block every 10 minutes (ish) on her private blockchain, keeping up to speed with the rest of the network. Having just a bit more power, she can then build blocks faster than Alice, Bob and Charlie combined, since they are "competing". At some point Eve's blockchain grows larger than the others, and she broadcasts it, and Alice, Bob and Charlie will per the rules switch to Eve's blockchain.



In this scenario the network was compromised by only using 25%(+1) of the hashing power. So why would Eve need 51%? Doesn't she just need to be faster than the fastest honest miner?



Hope you can tell me why I'm wrong.










share|improve this question











$endgroup$
















    2












    $begingroup$


    In the 51% attack on the Proof Of Work Consensus Mechanism, it's often said that you need more hashing power than the rest of the network combined. Though I can't understand why you need that much.



    If we break the blockchain network down in Alice, Bob, Charlie and Eve, and they all currently are honest. They all have 1/4 of the total hashing power. From what I understand, they all compete against eachother to calculate the right hash of a block, and the one winning the race gets its block on the blockchain. This happens one time each 10 minutes. Since they're all competing, the hash-power used to create a block in 10 minutes, is 1/4 of the total hashing power.



    Now eve decides to go rogue, and builds her own blockchain. The difference is now, that she don't compete with anyone. That means that she can generate a block every 10 minutes (ish) on her private blockchain, keeping up to speed with the rest of the network. Having just a bit more power, she can then build blocks faster than Alice, Bob and Charlie combined, since they are "competing". At some point Eve's blockchain grows larger than the others, and she broadcasts it, and Alice, Bob and Charlie will per the rules switch to Eve's blockchain.



    In this scenario the network was compromised by only using 25%(+1) of the hashing power. So why would Eve need 51%? Doesn't she just need to be faster than the fastest honest miner?



    Hope you can tell me why I'm wrong.










    share|improve this question











    $endgroup$














      2












      2








      2





      $begingroup$


      In the 51% attack on the Proof Of Work Consensus Mechanism, it's often said that you need more hashing power than the rest of the network combined. Though I can't understand why you need that much.



      If we break the blockchain network down in Alice, Bob, Charlie and Eve, and they all currently are honest. They all have 1/4 of the total hashing power. From what I understand, they all compete against eachother to calculate the right hash of a block, and the one winning the race gets its block on the blockchain. This happens one time each 10 minutes. Since they're all competing, the hash-power used to create a block in 10 minutes, is 1/4 of the total hashing power.



      Now eve decides to go rogue, and builds her own blockchain. The difference is now, that she don't compete with anyone. That means that she can generate a block every 10 minutes (ish) on her private blockchain, keeping up to speed with the rest of the network. Having just a bit more power, she can then build blocks faster than Alice, Bob and Charlie combined, since they are "competing". At some point Eve's blockchain grows larger than the others, and she broadcasts it, and Alice, Bob and Charlie will per the rules switch to Eve's blockchain.



      In this scenario the network was compromised by only using 25%(+1) of the hashing power. So why would Eve need 51%? Doesn't she just need to be faster than the fastest honest miner?



      Hope you can tell me why I'm wrong.










      share|improve this question











      $endgroup$




      In the 51% attack on the Proof Of Work Consensus Mechanism, it's often said that you need more hashing power than the rest of the network combined. Though I can't understand why you need that much.



      If we break the blockchain network down in Alice, Bob, Charlie and Eve, and they all currently are honest. They all have 1/4 of the total hashing power. From what I understand, they all compete against eachother to calculate the right hash of a block, and the one winning the race gets its block on the blockchain. This happens one time each 10 minutes. Since they're all competing, the hash-power used to create a block in 10 minutes, is 1/4 of the total hashing power.



      Now eve decides to go rogue, and builds her own blockchain. The difference is now, that she don't compete with anyone. That means that she can generate a block every 10 minutes (ish) on her private blockchain, keeping up to speed with the rest of the network. Having just a bit more power, she can then build blocks faster than Alice, Bob and Charlie combined, since they are "competing". At some point Eve's blockchain grows larger than the others, and she broadcasts it, and Alice, Bob and Charlie will per the rules switch to Eve's blockchain.



      In this scenario the network was compromised by only using 25%(+1) of the hashing power. So why would Eve need 51%? Doesn't she just need to be faster than the fastest honest miner?



      Hope you can tell me why I'm wrong.







      proof-of-work






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 19 at 21:24









      Wossname

      1033




      1033










      asked Apr 19 at 10:27









      Benjamin LarsenBenjamin Larsen

      232




      232




















          1 Answer
          1






          active

          oldest

          votes


















          3












          $begingroup$


          Since they're all competing, the hash-power used to create a block in 10 minutes, is 1/4 of the total hashing power.




          That's not correct.



          If the work effort is set to $n$, that is, it takes an expected $2^n$ hashes before someone finds a valid preimage. If Alice, Bob, Charlie and Eve are all working equally hard, then we would expect that each one would end up computing an average of $2^n / 4$ hashes before someone finds a preimage. It might be Alice, who has computed only $2^n / 4$ hashes, but still a total of $2^n$ hashes were computed.



          So, if Eve goes off on her own, she'll need to compute her own $2^n$ hashes herself before she finds a preimage; in that time, Alice, Bob and Charlie will end up computing $3 cdot 2^n$ hashes, enough to find an expected 3 links in the hash chain, before Eve can compute one - Eve cannot win this race in the long term.



          (Note: this analysis rather assumes that when Alice finds the preimage, she instantly announces it, and the others immediately start searching based for the next preimage. This isn't precisely true; however that isn't nearly a large enough effect to give Eve an advantage when she has only 1/4 of the computing power)






          share|improve this answer









          $endgroup$












          • $begingroup$
            That is a really good explanation, thank you :)
            $endgroup$
            – Benjamin Larsen
            Apr 19 at 11:48










          • $begingroup$
            But what if Eve decides to go rogue not necessarily now, but simlpe the next time she is able to find a valid preimage unusually fast (say, within $frac11002^n$ hashes)? This is expected to happen within about 100 rounds, so may be worth waiting for
            $endgroup$
            – Hagen von Eitzen
            Apr 19 at 14:58










          • $begingroup$
            @HagenvonEitzen: however, that doesn't buy her much in the long term - she would get an early start initially, and might be able to find another hash quicker than Alice et al finds two, however in the long term, the greater resources of the honest miners will outrun Eve
            $endgroup$
            – poncho
            Apr 19 at 16:13











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "281"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcrypto.stackexchange.com%2fquestions%2f68895%2fproof-of-work-51-attack%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3












          $begingroup$


          Since they're all competing, the hash-power used to create a block in 10 minutes, is 1/4 of the total hashing power.




          That's not correct.



          If the work effort is set to $n$, that is, it takes an expected $2^n$ hashes before someone finds a valid preimage. If Alice, Bob, Charlie and Eve are all working equally hard, then we would expect that each one would end up computing an average of $2^n / 4$ hashes before someone finds a preimage. It might be Alice, who has computed only $2^n / 4$ hashes, but still a total of $2^n$ hashes were computed.



          So, if Eve goes off on her own, she'll need to compute her own $2^n$ hashes herself before she finds a preimage; in that time, Alice, Bob and Charlie will end up computing $3 cdot 2^n$ hashes, enough to find an expected 3 links in the hash chain, before Eve can compute one - Eve cannot win this race in the long term.



          (Note: this analysis rather assumes that when Alice finds the preimage, she instantly announces it, and the others immediately start searching based for the next preimage. This isn't precisely true; however that isn't nearly a large enough effect to give Eve an advantage when she has only 1/4 of the computing power)






          share|improve this answer









          $endgroup$












          • $begingroup$
            That is a really good explanation, thank you :)
            $endgroup$
            – Benjamin Larsen
            Apr 19 at 11:48










          • $begingroup$
            But what if Eve decides to go rogue not necessarily now, but simlpe the next time she is able to find a valid preimage unusually fast (say, within $frac11002^n$ hashes)? This is expected to happen within about 100 rounds, so may be worth waiting for
            $endgroup$
            – Hagen von Eitzen
            Apr 19 at 14:58










          • $begingroup$
            @HagenvonEitzen: however, that doesn't buy her much in the long term - she would get an early start initially, and might be able to find another hash quicker than Alice et al finds two, however in the long term, the greater resources of the honest miners will outrun Eve
            $endgroup$
            – poncho
            Apr 19 at 16:13















          3












          $begingroup$


          Since they're all competing, the hash-power used to create a block in 10 minutes, is 1/4 of the total hashing power.




          That's not correct.



          If the work effort is set to $n$, that is, it takes an expected $2^n$ hashes before someone finds a valid preimage. If Alice, Bob, Charlie and Eve are all working equally hard, then we would expect that each one would end up computing an average of $2^n / 4$ hashes before someone finds a preimage. It might be Alice, who has computed only $2^n / 4$ hashes, but still a total of $2^n$ hashes were computed.



          So, if Eve goes off on her own, she'll need to compute her own $2^n$ hashes herself before she finds a preimage; in that time, Alice, Bob and Charlie will end up computing $3 cdot 2^n$ hashes, enough to find an expected 3 links in the hash chain, before Eve can compute one - Eve cannot win this race in the long term.



          (Note: this analysis rather assumes that when Alice finds the preimage, she instantly announces it, and the others immediately start searching based for the next preimage. This isn't precisely true; however that isn't nearly a large enough effect to give Eve an advantage when she has only 1/4 of the computing power)






          share|improve this answer









          $endgroup$












          • $begingroup$
            That is a really good explanation, thank you :)
            $endgroup$
            – Benjamin Larsen
            Apr 19 at 11:48










          • $begingroup$
            But what if Eve decides to go rogue not necessarily now, but simlpe the next time she is able to find a valid preimage unusually fast (say, within $frac11002^n$ hashes)? This is expected to happen within about 100 rounds, so may be worth waiting for
            $endgroup$
            – Hagen von Eitzen
            Apr 19 at 14:58










          • $begingroup$
            @HagenvonEitzen: however, that doesn't buy her much in the long term - she would get an early start initially, and might be able to find another hash quicker than Alice et al finds two, however in the long term, the greater resources of the honest miners will outrun Eve
            $endgroup$
            – poncho
            Apr 19 at 16:13













          3












          3








          3





          $begingroup$


          Since they're all competing, the hash-power used to create a block in 10 minutes, is 1/4 of the total hashing power.




          That's not correct.



          If the work effort is set to $n$, that is, it takes an expected $2^n$ hashes before someone finds a valid preimage. If Alice, Bob, Charlie and Eve are all working equally hard, then we would expect that each one would end up computing an average of $2^n / 4$ hashes before someone finds a preimage. It might be Alice, who has computed only $2^n / 4$ hashes, but still a total of $2^n$ hashes were computed.



          So, if Eve goes off on her own, she'll need to compute her own $2^n$ hashes herself before she finds a preimage; in that time, Alice, Bob and Charlie will end up computing $3 cdot 2^n$ hashes, enough to find an expected 3 links in the hash chain, before Eve can compute one - Eve cannot win this race in the long term.



          (Note: this analysis rather assumes that when Alice finds the preimage, she instantly announces it, and the others immediately start searching based for the next preimage. This isn't precisely true; however that isn't nearly a large enough effect to give Eve an advantage when she has only 1/4 of the computing power)






          share|improve this answer









          $endgroup$




          Since they're all competing, the hash-power used to create a block in 10 minutes, is 1/4 of the total hashing power.




          That's not correct.



          If the work effort is set to $n$, that is, it takes an expected $2^n$ hashes before someone finds a valid preimage. If Alice, Bob, Charlie and Eve are all working equally hard, then we would expect that each one would end up computing an average of $2^n / 4$ hashes before someone finds a preimage. It might be Alice, who has computed only $2^n / 4$ hashes, but still a total of $2^n$ hashes were computed.



          So, if Eve goes off on her own, she'll need to compute her own $2^n$ hashes herself before she finds a preimage; in that time, Alice, Bob and Charlie will end up computing $3 cdot 2^n$ hashes, enough to find an expected 3 links in the hash chain, before Eve can compute one - Eve cannot win this race in the long term.



          (Note: this analysis rather assumes that when Alice finds the preimage, she instantly announces it, and the others immediately start searching based for the next preimage. This isn't precisely true; however that isn't nearly a large enough effect to give Eve an advantage when she has only 1/4 of the computing power)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 19 at 11:39









          ponchoponcho

          94.8k2151248




          94.8k2151248











          • $begingroup$
            That is a really good explanation, thank you :)
            $endgroup$
            – Benjamin Larsen
            Apr 19 at 11:48










          • $begingroup$
            But what if Eve decides to go rogue not necessarily now, but simlpe the next time she is able to find a valid preimage unusually fast (say, within $frac11002^n$ hashes)? This is expected to happen within about 100 rounds, so may be worth waiting for
            $endgroup$
            – Hagen von Eitzen
            Apr 19 at 14:58










          • $begingroup$
            @HagenvonEitzen: however, that doesn't buy her much in the long term - she would get an early start initially, and might be able to find another hash quicker than Alice et al finds two, however in the long term, the greater resources of the honest miners will outrun Eve
            $endgroup$
            – poncho
            Apr 19 at 16:13
















          • $begingroup$
            That is a really good explanation, thank you :)
            $endgroup$
            – Benjamin Larsen
            Apr 19 at 11:48










          • $begingroup$
            But what if Eve decides to go rogue not necessarily now, but simlpe the next time she is able to find a valid preimage unusually fast (say, within $frac11002^n$ hashes)? This is expected to happen within about 100 rounds, so may be worth waiting for
            $endgroup$
            – Hagen von Eitzen
            Apr 19 at 14:58










          • $begingroup$
            @HagenvonEitzen: however, that doesn't buy her much in the long term - she would get an early start initially, and might be able to find another hash quicker than Alice et al finds two, however in the long term, the greater resources of the honest miners will outrun Eve
            $endgroup$
            – poncho
            Apr 19 at 16:13















          $begingroup$
          That is a really good explanation, thank you :)
          $endgroup$
          – Benjamin Larsen
          Apr 19 at 11:48




          $begingroup$
          That is a really good explanation, thank you :)
          $endgroup$
          – Benjamin Larsen
          Apr 19 at 11:48












          $begingroup$
          But what if Eve decides to go rogue not necessarily now, but simlpe the next time she is able to find a valid preimage unusually fast (say, within $frac11002^n$ hashes)? This is expected to happen within about 100 rounds, so may be worth waiting for
          $endgroup$
          – Hagen von Eitzen
          Apr 19 at 14:58




          $begingroup$
          But what if Eve decides to go rogue not necessarily now, but simlpe the next time she is able to find a valid preimage unusually fast (say, within $frac11002^n$ hashes)? This is expected to happen within about 100 rounds, so may be worth waiting for
          $endgroup$
          – Hagen von Eitzen
          Apr 19 at 14:58












          $begingroup$
          @HagenvonEitzen: however, that doesn't buy her much in the long term - she would get an early start initially, and might be able to find another hash quicker than Alice et al finds two, however in the long term, the greater resources of the honest miners will outrun Eve
          $endgroup$
          – poncho
          Apr 19 at 16:13




          $begingroup$
          @HagenvonEitzen: however, that doesn't buy her much in the long term - she would get an early start initially, and might be able to find another hash quicker than Alice et al finds two, however in the long term, the greater resources of the honest miners will outrun Eve
          $endgroup$
          – poncho
          Apr 19 at 16:13

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Cryptography Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcrypto.stackexchange.com%2fquestions%2f68895%2fproof-of-work-51-attack%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

          Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

          What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company