Post
Topic
Board Proje Geliştirme
Merits 1 from 1 user
Re: Bitcoin; Algoritma Üzerine Yöntemler
by
Jupiter_01
on 10/12/2019, 13:58:52 UTC
⭐ Merited by 2run (1)
sıralı adres üretme isteyen arkadaşlar kullanabilir....



from bitcoin import *
f = open("adres.txt", "w")
nDecimal = 1
for i in range(100000000):
    def generar_HEX(nDecimal):
            aHex = hex(nDecimal)
            aHex = aHex[2:].upper()
            aHex = ((64-len(aHex)) * '0') + aHex
            return aHex

    nDecimal = nDecimal + 1
    priv = generar_HEX(nDecimal)
    pub = privtopub(priv)
    addr = pubtoaddr(pub)
    wif = encode_privkey(priv, 'wif')

    #print 'NUMBER: ' + str(nDecimal)
    #print 'PRIV: ' + priv
    #print 'PUB: ' + pub
    print 'ADDR: ' + addr
    #print 'WIF: ' + wif
    f.write(addr  + "//" + wif + "\n")