Write-up for AddressGame
Overview
This challenge was inspired by The Password Game.
For this challenge, you need to generate a vanity contract address that satisfies:
- The address contains
box(seed, 0) % 2vowel hexadecimal digits (0xAand0xE). - The address contains
box(seed, 1) % 3consonant hexadecimal digits (0xB,0xC,0xD, and0xF). - All number digits in the address (
[0x0, 0x9]) sum to25 + seed % 50.
Solving the puzzle
To generate the vanity address, you can write your own miner that satisfies the conditions above.
For example, we made the following changes to profanity2:
While box returns uint256, you can mine for uint64 instead since the modulo fits within 64 bits: .
Solve script
Check out our solve test below for more details.
The solution below is for our address.