Bitcoin Forum
April 25, 2025, 02:52:48 AM *
News: ibminer is now selling real-world Merit Poker collectibles
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Making a miner  (Read 686 times)
epixam (OP)
Newbie
*
Offline Offline

Activity: 13
Merit: 0


View Profile
April 14, 2013, 12:09:07 AM
 #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?

Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!