I am learning about the mining process, but I am still very confused because RandomX is really complex.

It would help a lot to see a working script that would do the following:

  • Receive a block number as initial argument
  • Fetch that block from the network (external API, from the local copy of the blockchain, from the locally running node)
  • Extract whatever it needs to calculate the hash, the nonce etc.
  • Verify that the block hash is valid

Is there any simple script that does this? Because so far all the projects I found that do this are either Monero's official project (giant, complex, poorly documented), or outdated mining projects made in other languages, but also too complex to the point it is not easy to distinguish where a given concern starts and where it ends.



Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.