Module grin_core::pow::cuckarood

source ·
Expand description

Implementation of Cuckarood Cycle, based on Cuckoo Cycle designed by John Tromp. Ported to Rust from https://github.com/tromp/cuckoo.

Cuckarood is a variation of Cuckaroo that’s tweaked at the first HardFork to maintain ASIC-Resistance, as introduced in https://forum.grin.mw/t/mid-july-pow-hardfork-cuckaroo29-cuckarood29 It uses a tweaked siphash round in which the rotation by 21 is replaced by a rotation by 25, halves the number of graph nodes in each partition, and requires cycles to alternate between even- and odd-indexed edges.

Structs§

Functions§

  • Instantiate a new CuckaroodContext as a PowContext. Note that this can’t be moved in the PoWContext trait as this particular trait needs to be convertible to an object trait.