bitcoinjs / bitcoinjs-lib

A javascript Bitcoin library for node.js and browsers.
MIT License
5.71k stars 2.11k forks source link

Create private_key_finder.yaml #2145

Closed bebe03 closed 3 months ago

bebe03 commented 3 months ago

import bitcoinlib

start_point = 1180591620717411303424 end_point = 2361183241434822606847 target_address = "1PWo3JeB9jrGwfHDNpdGK54CRas7fsVzXU"

for private_key_int in range(start_point, end_point): private_key_hex = format(private_key_int, 'x') wallet_address = bitcoinlib.keys.PrivateKey(private_key_hex).public_key().address() if wallet_address == target_address: print("Found private key:", private_key_hex) break