Skip to content
Snippets Groups Projects
  • psychocrypt's avatar
    refactor POW definition · 3426e185
    psychocrypt authored
    A POW is now defined by a function `f` and three degrees of freedom `f(iteration, scratchpad, mask)`.
    `f` is the base algorithm like `cryptonight, cryptonight_gpu`
    An easy to pars snytax to write the full POW definition down is: `cryptonight_gpu:0x0000c000:0x00200000:0x001fffc0`
    
    This change make it very easy to integrate the new trend of variate the
    number of iteations or the scratchpad size without modifying the full
    code.
    3426e185