2

Attempting to follow the pseudo-code here -- What exactly has been changed in PoW algorithms in the v7 fork?, I was curious about this part of the Monero hashing algorithm ...

scratchpad = fill_scratchpad(state)

What is the scratchpad for? When you "fill" the scratchpad, are you simply taking the value (state) from teh step above and prepending zeroes to it until you have 2 MB worth of data?

Dave
  • 277
  • 3
  • 9

1 Answers1

2

The scratchpad is filled with pseudo-random data based on the state (using rounds of the AES block cipher).

Check https://cryptonote.org/cns/cns008.txt for a detailed description of the algorithm (without the modifications introduced in version 7 of the protocol).

glv
  • 3,364
  • 11
  • 15