Pre-Event Preparation
Last updated
Last updated
function findHashFromNonce(nonce) {
// Try computing the hash with the given nonce
let hash = crypto.createHash('sha256').update(nonce.toString()).digest('hex')
while (hash.substring(0, 5) !== "00000") {
++nonce
hash = crypto.createHash('sha256').update(nonce.toString()).digest('hex')
}
// console.log(hash)
return nonce
}