So, I’m trying to generate a Peercoin Address. The steps seem quite simple, since Peercoin uses basically the same recipe from Bitcoin (which can be found here).
However my problem starts on step 2, where one must generate a SHA-256 hash from a public ECDSA key in order to continue.
My issue is that the generated hash is always different from those seen in examples.
You can open this website: http://gobittest.appspot.com/Address to check the steps of generating an address.
On step 2 - SHA-256 hash of 1, the hash generated doesn’t match the public key.
If you run a SHA-256 online hash tool on the public key provided in the website above, you will see the hash generated and the hash this website prints are different. How could that be?
The same issue is happening on my code. My SHA-256 hash from the public ECDSA key is somewhat not what bitcoin/peercoin “expects” and thus leads to a broken address in the end.
Is there something obvious I’m missing out? How can hashes from a public key get different since the step only asks me to run a simple
sha256(pubKey)? Should I be adding any extra step to the recipe?