There is a contract which source code tells that the contract address had been generated in advance (there is a comment there), before the contract was uploaded to the network.
The address beginning is quite unusual: 0x000000...
As you can see, it shows that address was specially generated to have these zeros. One can think that these zeros are the simple luck, but the contract uses two additional addresses to its purposes and they begin 0x100000... and 0x200000...
How is this possible to upload th contract to the specific address and do this mean that the author have a privat key for the contract as it have been generated in advance?
So it's possible to set the nonce to a specific value and go over a pile of random addresses checking if one of them gives the desired contract address. One will have to check really many addresses to find that one. Is there an app to do it?
– Jink Mar 01 '20 at 02:490x000000. If the address looks "more artificially-made" (than just starting with a few zeros), then please post the relevant code of that contract, and I might be able to refer to your question more specifically. – goodvibration Mar 01 '20 at 14:23keccak256, then you get the address of the contract that you will deploy with this account (if you deploy it before doing anything else with this account). So of course the author has generated this address beforehand - there is no problem doing that. – goodvibration Mar 03 '20 at 15:24