1

I'm looking for resources to get me started on coding a mining pool from scratch. I know there are several mining pool implementations and it's reinventing the wheel, but I want to do it so I can learn and also it's kinda fun for me. I tried to reverse engineer some source code but I think I'll be better off having some sorta guide instead. What I'm looking for is :

  1. what information is exchanged between pool and miners
  2. Detailed explanation on what this information means
  3. If possible some pseudo code to generate that information

Any help is appreciated because I've been searching for a while and can't seem to find any good sources.

jtgrassie
  • 19,601
  • 4
  • 17
  • 54
Shiva T. Kota
  • 269
  • 2
  • 8

1 Answers1

1
  1. See this answer for the messages used.
  2. The same above linked answer should be self explanatory apart from maybe the job blob, which is a block hashing blob, e.g. the data to hash. This and this should help on that front.
  3. The same above linked answer also has a link to an example bare-bones Python miner using the stratum protocol.
jtgrassie
  • 19,601
  • 4
  • 17
  • 54