Skip to content

Instantly share code, notes, and snippets.

@xd4rker
Created April 14, 2018 18:29
Show Gist options
  • Save xd4rker/ee1657d3fd4581ed647a4c7fa64b92a8 to your computer and use it in GitHub Desktop.
Save xd4rker/ee1657d3fd4581ed647a4c7fa64b92a8 to your computer and use it in GitHub Desktop.
var answerHash = '0xdb81b4d58595fbbbb592d3661a34cdca14d7ab379441400cbfa1b78bc447c365';
for(var i=0; i<2000; i++) {
if(web3.sha3(i.toString(16), {encoding: 'hex'}) == answerHash) {
console.log('Answer Found: ' + i);
break;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment