I am trying to write a miner for myself.
I understand I get the block template and then hash the block hashing blob. That gets me a hash.
Do I then append it to block hashing blob or something else in order to submit? Take this example: 070786a498d705f8dc58791266179087907a2ff4cd883615216749b97d2f12173171c725a6f84a00000000fc751ea4a94c2f840751eaa36138eee66dda15ef554e7d6594395827994e31da10
Or do I just need to replace the 8 zeroes?
Also is the difficulty returned by get block template the amount of zeroes at the start of the hash that need to be there in order for it to be solved? Or is there something else or am I misinterpreting it?