.. _sphx_glr_api_gallery_consensus_attacks:
Attacks and their probabilities
-------------------------------
Catching up from behind, double spending, and selfish mining.
.. raw:: html
.. thumbnail-parent-div-open
.. raw:: html
.. only:: html
.. image:: /api/gallery/consensus/attacks/images/thumb/sphx_glr_plot_01_gamblers_ruin_thumb.png
:alt:
:doc:`/api/gallery/consensus/attacks/plot_01_gamblers_ruin`
.. raw:: html
The gambler's ruin: catching up from behind (Pascal, Fermat and Huygens 1656)
.. raw:: html
.. only:: html
.. image:: /api/gallery/consensus/attacks/images/thumb/sphx_glr_plot_02_double_spend_thumb.png
:alt:
:doc:`/api/gallery/consensus/attacks/plot_02_double_spend`
.. raw:: html
How many confirmations? Nakamoto's double-spend calculation (2008)
.. raw:: html
.. only:: html
.. image:: /api/gallery/consensus/attacks/images/thumb/sphx_glr_plot_03_selfish_mining_thumb.png
:alt:
:doc:`/api/gallery/consensus/attacks/plot_03_selfish_mining`
.. raw:: html
Selfish mining: majority is not enough (Eyal and Sirer 2014)
.. thumbnail-parent-div-close
.. raw:: html
.. toctree::
:hidden:
/api/gallery/consensus/attacks/plot_01_gamblers_ruin
/api/gallery/consensus/attacks/plot_02_double_spend
/api/gallery/consensus/attacks/plot_03_selfish_mining