Hello,
If I have the below script, is possible to add a line like addr2 = ... for uncompressed addresses?
I have little experience with python and that's why I ask for help.
Thanks!
import random
from bit import *
#from PyRandLib import *
#rand = FastRand63()
#random.seed(rand())
c1 = str (random.choice("1"))
b1 = "01111111111111111111111111111111111111111111111111111111"
b2 = "00111111111111111111111111111111111111111111111111111111"
b3 = "00011111111111111111111111111111111111111111111111111111"
b4 = "00001111111111111111111111111111111111111111111111111111"
b5 = "00000111111111111111111111111111111111111111111111111111"
b6 = "00000011111111111111111111111111111111111111111111111111"
b7 = "00000001111111111111111111111111111111111111111111111111"
b8 = "00000000111111111111111111111111111111111111111111111111"
b9 = "00000000011111111111111111111111111111111111111111111111"
b10 = "00000000001111111111111111111111111111111111111111111111"
b11 = "00000000000111111111111111111111111111111111111111111111"
b12 = "00000000000011111111111111111111111111111111111111111111"
b13 = "00000000000001111111111111111111111111111111111111111111"
b14 = "00000000000000111111111111111111111111111111111111111111"
b15 = "00000000000000011111111111111111111111111111111111111111"
b16 = "00000000000000001111111111111111111111111111111111111111"
b17 = "00000000000000000111111111111111111111111111111111111111"
b18 = "00000000000000000011111111111111111111111111111111111111"
b19 = "00000000000000000001111111111111111111111111111111111111"
b20 = "00000000000000000000111111111111111111111111111111111111"
b21 = "00000000000000000000011111111111111111111111111111111111"
b22 = "00000000000000000000001111111111111111111111111111111111"
b23 = "00000000000000000000000111111111111111111111111111111111"
b24 = "00000000000000000000000011111111111111111111111111111111"
b25 = "00000000000000000000000001111111111111111111111111111111"
b26 = "00000000000000000000000000111111111111111111111111111111"
b27 = "00000000000000000000000000011111111111111111111111111111"
b28 = "00000000000000000000000000001111111111111111111111111111"
b29 = "00000000000000000000000000000111111111111111111111111111"
b30 = "00000000000000000000000000000011111111111111111111111111"
b31 = "00000000000000000000000000000001111111111111111111111111"
b32 = "00000000000000000000000000000000111111111111111111111111"
b33 = "00000000000000000000000000000000011111111111111111111111"
b34 = "00000000000000000000000000000000001111111111111111111111"
b35 = "00000000000000000000000000000000000111111111111111111111"
b36 = "00000000000000000000000000000000000011111111111111111111"
b37 = "00000000000000000000000000000000000001111111111111111111"
b38 = "00000000000000000000000000000000000000111111111111111111"
b39 = "00000000000000000000000000000000000000011111111111111111"
b40 = "00000000000000000000000000000000000000001111111111111111"
b41 = "00000000000000000000000000000000000000000111111111111111"
b42 = "00000000000000000000000000000000000000000011111111111111"
b43 = "00000000000000000000000000000000000000000001111111111111"
b44 = "00000000000000000000000000000000000000000000111111111111"
b45 = "00000000000000000000000000000000000000000000011111111111"
b46 = "00000000000000000000000000000000000000000000001111111111"
b47 = "00000000000000000000000000000000000000000000000111111111"
b48 = "00000000000000000000000000000000000000000000000011111111"
b49 = "00000000000000000000000000000000000000000000000001111111"
b50 = "00000000000000000000000000000000000000000000000000111111"
b51 = "00000000000000000000000000000000000000000000000000011111"
b52 = "00000000000000000000000000000000000000000000000000001111"
b53 = "00000000000000000000000000000000000000000000000000000111"
b54 = "00000000000000000000000000000000000000000000000000000011"
b55 = "00000000000000000000000000000000000000000000000000000001"
#xx = "00000000000000000000000000000000000000000000000000000001"
while True:
spisok = [b1,b2,b3,b4,b5,b6,b7,b8,b9,b10,b11,b12,b13,b14,b15,b16,b17,b18,b19,b20,b21,b22,b23,b24,b25,b26,b27,b28,b29,b30,b31,b32,b33,b34,b35,b36,b37,b38,b39,b40,b41,b42,b43,b44,b45,b46,b47,b48,b49,b50,b51,b52,b53,b54,b55]
for element in (spisok):
for spisok in range(1000):
s = element
d = ''.join(random.sample(s,len(s)))
bina = (c1+d)
b = int(c1+d,2)
key = Key.from_int(b)
addr = key.address
if addr == "1LzhS3k3e9Ub8i2W1V8xQFdB8n2MYCHPCa":
print ("found!!!",b,addr)
s1 = str(b)
s2 = addr
f=open(u"C:/a.txt","a")
f.write(s1)
f.write(s2)
f.close()
pass
else:
print (s,bina,b,addr)
pass