How I can calculate smart contact address from deployer wallet? E.g. I want to brute force smart contract address to make in starts from 0xdead
Feb 12, 2023, 9:19 PM
good luck😁
you can use one of those tools to generate vanity addresses
but I hope you have a good gpu
but I hope you have a good gpu
Feb 12, 2023, 9:25 PM
https://etherscan.io/address/0x3330BFb7332cA23cd071631837dC289B09C33333
They did it somehow
Feb 12, 2023, 9:25 PM
last digits are easier btw
and yes never told that is impossible
you need time, and computing power
Feb 12, 2023, 9:26 PM
It would require brute force for keccak256 ?
Feb 12, 2023, 9:26 PM
you can use cast from foundry too
don't reinvernt the wheel
use already existent tools
Feb 12, 2023, 9:26 PM
is there any for smart contracts?
not like profanity tool😁
Feb 12, 2023, 9:27 PM
you want to compute it onchain?😳
check it
or this
https://github.com/1inch/profanity2
https://github.com/1inch/profanity2
Feb 12, 2023, 9:29 PM
No, I mean sc address is computed from deployment address and number of txs
Feb 12, 2023, 9:29 PM
cast can do it
Feb 12, 2023, 9:30 PM
so you can brute the sc address to make it nicer
Feb 12, 2023, 9:30 PM
this too
please open the resources I am giving you😂
Feb 12, 2023, 9:30 PM
isn't cast just tool to make hex bytes?
Feb 12, 2023, 9:30 PM
he want to find the pk that will deploy the contract starting with 0xdead at nonce 0
no
you are not looking to it🤔
btw go with this and good luck with it
Feb 12, 2023, 9:32 PM
btw generation of sc address is safe ;D
hmmm
nonce can be not 0 in mainnet because you need money for deploy
Feb 12, 2023, 9:37 PM
if you receive nonce is still 0
this is cast
https://book.getfoundry.sh/reference/cast/cast-wallet-vanity
https://book.getfoundry.sh/reference/cast/cast-wallet-vanity
Feb 12, 2023, 9:38 PM
I feel like I am being dumb...but how do I actually run this? Do I have to compile it or something? I am on windows
Feb 13, 2023, 1:15 AM