Let's say I need to derive the address from a public key string.
According to this reply here I need to:
- hash it:
I used this online hash generator because the built in
Web3.sha3()function doesn't seem to return the same value for some reason and I don't know how to specify the input for the
So the hash is now:
>>> hash = a591d48139d1f97e701cc15cb42a35c0ba7abf1aa44cfc82cdba0033779719eb
- Cut the first 20 characters and add
hash = "0x" + hash[24:]
Unfortunately this is not the correct address. The address should be
So what's the correct way for dummies to derive the address from a public key string?