Skip to content

Instantly share code, notes, and snippets.

@hashbender
Created January 19, 2018 06:49
Show Gist options
  • Select an option

  • Save hashbender/886d67aec7fedd493d8a32977d124368 to your computer and use it in GitHub Desktop.

Select an option

Save hashbender/886d67aec7fedd493d8a32977d124368 to your computer and use it in GitHub Desktop.
[10:21 PM] penfold: check the byte ordering on ripemd160
[10:22 PM] penfold: you will have to reverse it I think
[10:23 PM] penfold: I'm not able to look in detail right now but
[10:23 PM] penfold: I swap the byte order of the sha256d output before feeding into sha512
[10:24 PM] penfold: and then swap the two half outputs of sha512 before feeding into ripemd160
[10:24 PM] penfold: then swap the outputs of ripemd before feeding into 256
[10:24 PM] penfold: not sure if that sounds right lol but you get the idea
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment