johguse / ERADICATE2

Vanity address generator for CREATE2 addresses
261 stars 59 forks source link

[Feature request] Prefix on the salt #14

Open ethermachine opened 2 years ago

ethermachine commented 2 years ago

Metamorphic is a popular complementary tool, with factories for multiple contracts deployed on mainnet.

To avoid front-running / stealing of selfdestructed addresses (because the functions on the deployed factories are public), they enforce that the first 20bytes of the salt must match the msg.sender.

This is a request to include another input flag, that when non-empty, would be the prefix of the calculated salts.

acegilz commented 2 years ago

To avoid front-running / stealing of selfdestructed addresses (because the functions on the deployed factories are public), they enforce that the first 20bytes of the salt must match the msg.sender.

This is achievable with https://github.com/0age/create2crunch