Difference between revisions of "Consensus algorithm of Kulupu"

From Consensus Paper
Jump to navigation Jump to search
(Created page with "Category:Kulupu {{#seo: | title = Kulupu consensus algorithm | description = Kulupu mining and difficulty adjustment algorithm, as well as attack mitigation. }} {{Kulupu i...")
 
 
Line 3: Line 3:
 
| description = Kulupu mining and difficulty adjustment algorithm, as well as attack mitigation.
 
| description = Kulupu mining and difficulty adjustment algorithm, as well as attack mitigation.
 
}} {{Kulupu infobox}}
 
}} {{Kulupu infobox}}
 +
 +
Kulupu mining and difficulty adjustment algorithm, as well as attack mitigation.
  
 
== Overview ==
 
== Overview ==

Latest revision as of 07:47, 7 August 2020

Kulupu
Blockchain
Walletpolkadot.js
NodeGithub
StatusPolkadot Telemetry
ChatDiscord, Matrix
LaunchedSeptember 2019

Kulupu mining and difficulty adjustment algorithm, as well as attack mitigation.

Overview[edit | edit source]

Kulupu uses a slightly tweaked version of RandomX (randomx1) as its mining algorithm. The difficulty adjustment algorithm is similar to Grin.

Governance[edit | edit source]

The mining algorithm and difficulty adjustment algorithm, like everything else in Kulupu, can be upgraded by Kulupu's on-chain governance model. The current version of mining algorithm (for the next block) is identified by the exposed runtime API AlgorithmApi::identifier(), and the current required difficulty (for the next block) is identified by the exposed runtime API DifficultyApi::difficulty().

Attack mitigation[edit | edit source]

Because we use a tweaked version of RandomX (with a modified Argon salt), Kulupu is not vulnerable to ETC-style hashpower rental service attacks. However, as a pure proof-of-work blockchain, it is still vulnerable to general 51% attacks.

The mitigation plan for 51% attack, if it ever happens to Kulupu, is to add in a GRANDPA finality gadget on-chain. This finalty gadget can be easily added in as a new module to Kulupu, thanks to Substrate, in a matter of days to weeks, through an emergency on-chain democracy referendum. If the mitigation plan is activated, Kulupu will become a hybrid-PoW-PoS blockchain, with the block production handled by RandomX PoW, and block finality handled by GRANDPA PoS.

There is currently no plan to implement this mitigation plan unless an attack happens. We are still dedicated to remain a pure PoW blockchain right now.