forked from BITCOINDIGGER/bitcoindigger
-
Notifications
You must be signed in to change notification settings - Fork 18
/
TestBitcoinDigger.py
31 lines (22 loc) · 972 Bytes
/
TestBitcoinDigger.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
31
# https://en.wikipedia.org/wiki/Bloom_filter
# Bloom filter module for private key search accelerator for Bitcoin Addresses
# To test the functionality of the script Bloom filter module is OFF !!!
#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)[:-31]
#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("TestAddress.txt","r")
for line in searchfile:
if addr in line:
print("PrivKey = "+priv+" - Address = " + addr + "\n")
# Autosave Private Key to file "TestKeyFound.txt"
f = open("TestKeyFound.txt", 'a')
f.write("PrivKey = " + priv + " - Address = " + addr + "\n")
f.close()