Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Btc #463

Open
Izaque2024 opened this issue Apr 29, 2024 · 1 comment
Open

Btc #463

Izaque2024 opened this issue Apr 29, 2024 · 1 comment

Comments

@Izaque2024
Copy link

var CoinKey = require('coinkey')

const min = 0x2126875fd00000000
const max = 0x3ffffffffffffffff

const wallets = ['13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so']

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

@liveseed
Copy link

liveseed commented Jul 8, 2024

const CoinKey = require('coinkey')

const min = BigInt('0x2126875fd00000000')
const max = BigInt('0x3ffffffffffffffff')

const wallets = ['13zb1hQbWVsc2S7ZTZnP2G4undNNpdh5so']

let key = min

console.log(key.toString(16))

while (key <= max) {
key = key BigInt(1)
let pkey = key.toString(16)
while (pkey.length < 64) {
pkey = '0' pkey
}

const public = generatePublic(pkey)
console.log(`Private Key: ${pkey}, Public Address: ${public}`)

for (let i = 0; i < wallets.length; i  ) {
    if (public === wallets[i]) {
        console.log('Found the address!!! 🎉🎉🎉🎉🎉')
        console.log(`Private Key: ${pkey}`)
        process.exit(0)
    }
}

}

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants