Bitcoin Forum
May 21, 2024, 02:04:31 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bicoin Stratum decode data as wiki sais  (Read 655 times)
manzati93 (OP)
Newbie
*
Offline Offline

Activity: 4
Merit: 0


View Profile
November 20, 2013, 03:00:28 PM
 #1

i've written a bitcoin miner which, given as string the header_hex of [this example][1] returns the correct hash and check if it is lower than the current target. ([example here][2])
I've tryied to build a server in python (gist.github.com/anonymous/7549461 ) which connects to a pool using stratum and should then send data as hex strings (formatted and swapped as the bitcoin wiki example), but I am not sure about the swapping of the data and target and merkle in order to achieve data as the bitcoin wiki example. This data will be sent to the miner which will succefully works (miner is correct, i've tested it with wiki example and seems to work).

So have I swapped data right in Order to obtain hex strings as bitcoin wiki example?

  [1]: https://en.bitcoin.it/wiki/Block_hashing_algorithm
  [2]: http://matt93.altervista.org/miner3
  [3]: https://gist.github.com/anonymous/7549461
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!