1

I would like to create a Python based Monero miner. I know that using Python for mining will likely be slow, but this is just for experimental purposes. Thanks.

  • I could swear someone did it. They did it just for grins & giggles, and said it was so slow you could time it on a sundial. – Dave Jan 20 at 20:28
  • Do you know who did it? – Crypthusiast Jan 22 at 18:39
2

It is certainly possible to make a miner using Python. There are several ways this can be accomplished and depends on what you want to achieve.

At it's bare minimum you would need to have the hashing algorithm, cn_slow_hash, implemented in Python. An example library that exposes this is here. The rest will boil down to what kind of miner you want to create. You could create a stratum based miner to work with a pool or you could create a solo miner talking directly with a Monero node via it's RPC interface.

I suggest first learning about the actual process of mining and then look at the source code of existing miner implementations.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.