Bitcoin Forum
December 07, 2016, 02:34:50 PM *
News: Latest stable version of Bitcoin Core: 0.13.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
  Print  
Author Topic: Getwork protocol - what are the rules? Examples?  (Read 11410 times)
Schleicher
Hero Member
*****
Offline Offline

Activity: 630



View Profile
September 11, 2012, 10:40:25 PM
 #21

I *think* each group of 8 characters represents an unsigned 32 bit integer. But then I get lost.
Yes, SHA256 works with 32bit numbers.
If you are using a library function to convert the hex then you have to reverse the byte order first.
To get the midstate you have to hash sixteen 32bit numbers (the first part of the block data).

Bitcoin donations: 1H2BHSyuwLP9vqt2p3bK9G3mDJsAi7qChw
Pages: « 1 [2]  All
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!