5

I am thinking to create my own miner for Monero just for research purpose and understand how is the mining process.

First of all, I red the cn008 document and I understand almost everything but I don't know what should I put in the input string.

In the other hand, I also red the cn010 document but I don't know how is related with cn008 document. I think that DiffCut is (or is related with) the maturity which can be see in every single pool.

Please, can someone help me to understand all of this that apparently is unrelated? Thank you in advance

bipe15
  • 51
  • 1
  • 1
  • 3

1 Answers1

4

There's already some answer here: Where can I find a description of the CryptoNight hash algorithm?

Here's a schematic of CryptoNight algorithm:CryptoNight Source

In the node software, the hash function is called cn_slow_hash, see here. Also, there's a JavaScript implementation as well which may be easier to study.

Looking into code of some existing miners should help you as well:

https://github.com/OhGodAPet/wolf-xmr-miner/releases

https://github.com/fireice-uk/xmr-stak-cpu/releases

https://github.com/xmrig/xmrig/releases

JollyMort
  • 20,004
  • 3
  • 49
  • 105