I'm trying to follow this wiki on bitcoin address creation, but I'm getting different results when I walk through it myself
Starting from step 4, we have the extended RIPEMD-160 hash
00010966776006953D5567439E5E39F86A0D273BEE. From this point we need to
- Double SHA-256 hash it
- Concatenate the the first 4 bytes of that double hash result to the end of the extended RIPEMD-160 result
- Convert that concatenation to Base58Check
I would expect the flow to be (using this SHA-256 online tool):
- First SHA-256:
- Second SHA-256:
- First 4 bytes:
- Concatenation result:
However there are 2 differences between my results and the wiki. First the wiki produces different SHA-256 results. Second, the 4 bytes selected in the SHA-256 result are 8 characters, but aren't strings 1 byte per character?
Why do I have these difference?