Bitcoin Forum
November 19, 2018, 04:00:12 AM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
   Home   Help Search Login Register More  
Pages: « 1 [2]  All
Author Topic: Getwork protocol - what are the rules? Examples?  (Read 13902 times)
Hero Member
Offline Offline

Activity: 674
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!