How to learn ETH Account Address knowing only Private key?

    1 answer 1

    We take a private key (32 bytes). Let it be:

    0x4040404040404040404040404040404040404040404040404040404040404040 

    Using the secp256k1 curve secp256k1 multiply the generator by our private key. In other words, we get the public key. We need the result ( uncompressed stop) in uncompressed format. We get:

     0x0450d1203e168650a52be58141df7b5be8e11f9c38e3ef76bffc9a8225039fcb97e9a96d2f85eddafdb1718ea1bbcc1795fb80a5bc0999e55fb50ae3089027744a 

    We exclude the first byte ( 0x04 , it will always be like this) and hash the resulting balance (64 bytes) with the Keccak256 function. This is SHA-3 , but with slightly different initial parameters. We get:

     dd7063143807da6c79aecb72ee7e767e049143712099f92bc8a3b6b7f1b40335 

    Delete the first 12 bytes, and get the address:

     0xee7e767e049143712099f92bc8a3b6b7f1b40335