Open k06a opened 5 years ago
Neat! Thanks for the info. :)
@k06a, your tool generates the address, but does it also generate contract addresses?
@lorenzb, can you share the code you used to generate your contract addresses? I think it would be useful to other projects. I've seen having as many 0 bytes as possible mentioned a few places but have never seen the actual code for doing it. I'm curious to know at what scale doing this address generation is worthwhile.
EDIT: Oh I see now that profanity
has a --contract option. It sounds like the code used by gastoken checked the first few nonces and not just the first though. How did the gas token team know what was economical? Did you publish dummy contracts for the first couple nonces if they didn't give the address you wanted?
@WyseNynja they recently added this function: Issue: https://github.com/johguse/profanity/issues/12 PR: https://github.com/johguse/profanity/pull/15
@WyseNynja profanity
founds address which the first transaction will deploy at the desired address.
If you know of even "rarer" addresses in Ethereum (that is, with an over 5 byte recognizable pattern), let us know!
I have mined 6 11-zero addresses so far, but not yet one with 6 bytes.
Here are two of them: https://etherscan.io/address/0x0000000000013949f288172bd7e36837bddc7211 https://etherscan.io/address/0x0000000000075efbee23fe2de1bd0b7690883cc9 A third is the announced new address for TrueUSD: 0x0000000000085d4780B73119b644AE5ecd22b376
These were the first contracts with eleven zeros. I would be interested to know of any that get to 6 bytes.
I have mined a contract with thirteen leading zeroes.
0x000000000000072be7aD159fD9281f3723aD5624, from 0x45FAA0AB518F40e2c33a7c1308DA8F4C514486ad, nonce 0
How long did that take and with what hardware? 13 is a lot!
^the above is incorrect :( I believe there is a bug in my code. I'm hoping it's a race condition, and that the private key is nearby in the search space.
Check out https://github.com/0age/HomeWork - deployed to an address with six zero bytes at the start, 0x0000000000001b84b1cb32787b0d64758d019317
(and the contract itself actually facilitates finding and deploying contracts with “rare” addresses).
As you asked:
Here is the project: https://github.com/johguse/profanity As I may see author donation address is 5-byte length: