forked from BITCOINDIGGER/bitcoindigger
-
Notifications
You must be signed in to change notification settings - Fork 18
/
BitcoinDigger.py
30 lines (21 loc) · 878 Bytes
/
BitcoinDigger.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# https://en.wikipedia.org/wiki/Bloom_filter
# Bloom filter module for private key search accelerator for Bitcoin Addresses
import Chmod
import SpeedUP
import BloomFilter
from bitcoin import *
import os
counter = 0
while counter < 1:
priv = random_key()
pub = privtopub(priv)
addr = pubtoaddr(pub)
#searches file for address match if the priv key generated matchs any address in the Address.txt it will print it and auto save it
searchfile = open("Address.txt","r")
for line in searchfile:
if addr in line:
print("PrivKey = "+priv+" - Address = " + addr + "\n")
# Autosave Private Key to file "KeyFound.txt"
f = open("KeyFound.txt", 'a')
f.write("PrivKey = " + priv + " - Address = " + addr + "\n")
f.close()