Bitcoin Forum
February 20, 2018, 12:08:48 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
   Home   Help Search Donate Login Register  
Pages: « 1 [2]  All
Author Topic: Getwork protocol - what are the rules? Examples?  (Read 13806 times)
Hero Member
Offline Offline

Activity: 658
Merit: 500

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

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).

Pages: « 1 [2]  All
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!