I’m going to screw up a lot of the terminology here. I’m trying to understand the Bitcoin algortihm and wanted to use this JS miner — https://github.com/howardchung/jsminer . Specifically, I’m trying to understand how to build the that someone attempts to . They attempt to do this in the JS miner by the following

    var header = version + prevhash + merkle_root + ntime + nbits + '00000000' + '000000800000000000000000000000000000000000000000000000000000000000000000000000000000000080020000';
    curr_block.data = header;

I’m following most of this, using the Bitcoin wiki as a reference, but what I can’t figure out at all is what are these last two numerical constants — ‘00000000’ and the bigger one beginning with “0000008”. I have seen these come up in other examples but I can’t figure out why these are needed or if these are hard-coded values in the JS miner that shouldn’t be there in real life. Any help is appreciated.

Source link
Blockchain – Crypto – Currency infomation
thanks you RSS link
( https://bitcoin.stackexchange.com/questions/72261/when--the-hash-do-you-need-anything-after-the--of--bit)


Please enter your comment!
Please enter your name here