2

I understand that a miner has a list of bitcoin transactions since the last time a a block was discovered. The first entry is the reward for who discovered the previous block. As more transactions gets added, they're appended to this list. This part is speculation, but I think there's also a nonce that the miners inject in order to produce a hash output that meets the difficulty.

Where can I find out the specifics about what exactly is hashed? I'm looking to understand the exact bytes and structure.

2
  • possible duplicate of What are bitcoin miners really solving?
    – Murch
    Commented Nov 7, 2015 at 11:54
  • The first entry is not the reward for who discovered the previous block. The first transaction is unique to each miner and causes the block reward of the upcoming block to be spend to the miner that discovers the block.
    – Murch
    Commented Nov 7, 2015 at 11:57

1 Answer 1

2

The data that's hashed is the block header. You can find a description of the format and layout at https://en.bitcoin.it/wiki/Block_hashing_algorithm

2
  • How does a Generation block differ? What goes in the hashPrevBlock section of the generation block? All zeros? Commented Sep 29, 2015 at 18:44
  • @CoreyOgburn: Do you mean the genesis block, the very first block in the block chain? Yes, the hashPrevBlock field is set to zero. Everything else is the same. Commented Sep 29, 2015 at 18:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.