Block Explorer, which fields are reversed, and which are the same as in a raw block dump?

2

1

Recently I'm trying to properly recreate the genesis block in my low-level application. To do this, I use the Block Explorer to get the proper values for different fields, but at times it can be very confusing with its endianness. Which fields presented in the Block Explorer should be reversed before they are included in a raw block, and which should stay as they are?

ThePiachu

Posted 2011-11-25T20:13:10.790

Reputation: 41 594

Answers

2

Hashes are displayed in little-endian when they are actually big-endian on the network, and difficulty bits are displayed as big-endian when they are actually little-endian on the network.

All other integers are little-endian.

theymos

Posted 2011-11-25T20:13:10.790

Reputation: 8 228