ethereum / wiki

The Ethereum Wiki
https://www.ethereum.org
14.75k stars 2.56k forks source link

Ethash- nonce representation #671

Closed BryceMindLab closed 4 years ago

BryceMindLab commented 5 years ago

Ethash - Main Loop

In the highlight below, the nonce is stated to be in big-endian format, yet after nonce[::-1] it states this is a little-endian representation.

nonce[::-1] is then used in the code example.

The text may need to be updated to: "nonce[::-1] is the eight-byte big-endian representation of that value."

Screen Shot 2019-08-07 at 11 38 53 PM

Screen Shot 2019-08-07 at 11 41 31 PM

hjlee9182 commented 4 years ago

I think nonce is represented big endian, so isn't it little endian right when nonce[::-1] ( show reverse order) .

ChrisChinchilla commented 4 years ago

@hjlee9182 and @BryceDoganer Does this seem reasonable to you? Does this need fixing, or is everything correct?