Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

como vc resolveria esse intervalo 20000000000000000...3ffffffffffffffff (265...

266-
1) para acharmos a private key para o endereço biticoin
13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so usando esse codigo e aperfeçoando aonde possa
varrer rapido e consiguir obter sucesso e incluir que os nucleos permitir a
execusao mais rapido

var CoinKey = require('coinkey')


const min = 0x2aaaaaaaaaaaaaaaa
const max = 0x3ffffffffffffffff

const wallets = ['13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so',


'1BY8GQbnueYofwSuFAT3USAhGjPrkxDdW9', '1MVDYgVaSN6iKKEsbzRUAYFrYJadLYZvvZ',
'19vkiEajfhuZ8bs8Zu2jgmC6oqZbWqhxhG'];

let key = BigInt(min)

console.log(key)

while(true){

key = key + BigInt(parseInt(1))


pkey = key.toString(16)
while (pkey.length < 64){
pkey = '0' + pkey
}

public = generatePublic(pkey)
console.log(pkey)
console.log(public)
for (i=0;i<wallets.length;i++){
if (public == wallets[i]){
throw 'ACHEI!!!! 🎉🎉🎉🎉🎉'
}
}
}

function generatePublic(privateKey){
_key = new CoinKey(new Buffer(privateKey, 'hex'))
_key.compressed = true
return _key.publicAddress
}

You might also like