Author

Topic: Making a miner (Read 673 times)

newbie
Activity: 13
Merit: 0
April 13, 2013, 07:09:07 PM
#1
In an effort to understand what a miner is doing and what the data for the bitcoin mining actually is, Im going to make a miner.  The first step is research and im having some issues with what the information means.

It appears to me that the general idea is

1) RPC[GetWork] get the necessary data

2) take the first 80 bytes of the data field (640 bits), convert its endian-ness (dont remember if its big or little)

3) perform SHA256 on the data

4) perform SHA256 on the output of the SHA256

5) if it is less than the target send it to the server, otherwise add one (or some arbitrary value) to the nonce and return to step 3


Do I have a pretty good understanding of what is going on here?

Jump to: