We ar elooking for the preimage of the old registrar names. We can’t find it in the myriad of repos on github or with search engines. Where can we get the preimage?
You can find a 18mb preimage here: https://github.com/ethereum/ens-registrar-dapp/blob/master/app/public/preimages.js
That file is ordered by hash, so in order to find a given name, do a binary search on the hash of the given name and compare it with the element on the array. You should be able to find the right name with just a few hashes.
Thank you. This should be pinned somewhere. I went through every repo manually and still didn’t find it. Never would have guessed the dapp directory.
Thank you for the kind advice. We are trying to audit PrePunk names. And to anyone finding this in the future, for the Old Registrar, you hash the string of the name with sha3 from the web3.js library. Namehash from the the ethers.js library is for the new registrar.
//For use in the new: (https://eips.ethereum.org/EIPS/eip-162) console.log(ethers.utils.namehash('')) console.log(ethers.utils.namehash('eth')) console.log(ethers.utils.namehash('foo')) //For use in the old: (https://eips.ethereum.org/EIPS/eip-137) console.log(web3.utils.sha3('1231231'))
@Mods Not sure why this is in slow mode. It is annoying to have to wait to post relevant info that is vital.
Edit: This link is to the new preimage. There aren’t 2017 names in here it seems
I believe the preimage was made from popular .com domains and dictionary words, before the registrations happened. So by definition we did not have a list of the registered names.
We found 40+ OGDigits names with brute forcing, but more importantly, we solidified the <10 digits circulation.