crunchvanity icon indicating copy to clipboard operation
crunchvanity copied to clipboard

A cruncher for Vanity from Paradigm CTF 2022.

forge build
cargo run --release

Runs in less than 2 minutes on an "AMD Ryzen 9 5950X" machine with the following output.

i: 4899916394756173557
signature: 0x34383939393136333934373536313733353537
ABI encoding: "1626ba7e19bb34e293bba96bf0caeea54cdd3d2dad7fdf44cbea855173fa84534fcfb528000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000133438393939313633393437353631373335353700000000000000000000000000"
sha256: 1626ba7ee0b412a0906ef047f455a6b2a4116c0dbd20ac47caf350c913044e29

In a previous implementation, it produced the following:

i: 3530822108198443567
signature: 0x33353330383232313038313938343433353637
ABI encoding: "1626ba7e19bb34e293bba96bf0caeea54cdd3d2dad7fdf44cbea855173fa84534fcfb528000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000133335333038323231303831393834343335363700000000000000000000000000"
sha256: 1626ba7ee4d51fc0ebbbe277ee6a4093bafbeebd091f739897f29ebec25f476a

The branch in #2 by @shuklaayush is able to produce a shorter solution:

i: 2364647611
signature: 0x8cf1a8bb
ABI encoding: "1626ba7e19bb34e293bba96bf0caeea54cdd3d2dad7fdf44cbea855173fa84534fcfb528000000000000000000000000000000000000000000000000000000000000004000000000000000000000000000000000000000000000000000000000000000048cf1a8bb00000000000000000000000000000000000000000000000000000000"
sha256: 1626ba7e11c9fdc6c495f346beb65e2f712676389ec7733846f0457a36113dc1

Note: running the search from 0 to UINT32_MAX did not find the number--UINT64_MAX is really needed.

Thanks to @mattsse for speeding this from ~3 minutes to less than 2 minutes!