Post
Topic
Board Beginners & Help
Re: ★☆ Get Help Here | The Ultimate Help Thread! | Free WoodWallet Giveaways! ★☆
by
JohnFromWIT
on 11/06/2014, 11:28:01 UTC
stay away from ponzi. Wink

Fonzie's evil twin.


There are two very common mistakes.  Make sure you aren't making either of these before you waste a lot of time trying to figure out what else you might be missing.

First common mistake:
SHA-256 is calculated on the header, then SHA-256 is calculated on that result.  If you are only calculating the hash of the header, and not calculating the hash of the hash result, then you aren't going to get the right result.


Second common mistake:
Frequently people will make the mistake of storing the result of the first SHA-256 of the header as a string representation of the hex value. Then try to calculate the second SHA-256 on this string instead of on the actual bytes.  A hex value of A is equivalent to a binary value of 1010, but the hex value of the string "A" (if represented in ASCII) is 01000001.

Check and check, still not getting it though.
Don't worry about it though I'll get back to it again.