Post
Topic
Board Proje Geliştirme
Re: Bitcoin; Algoritma Üzerine Yöntemler
by
vincetcm
on 12/12/2019, 14:05:04 UTC
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")


bu kodu çalıştıramadım, sorun nedir acaba?

Quote
PS D:\BTC\test> py aks.py
  File "aks.py", line 20
    print 'ADDR: ' + addr
                 ^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print('ADDR: ' + addr)?


edit: kütüphane ile ilgili sorun vardı, halloldu.
benim belirlediğim adreslerde eşleme yapsa daha iyi olurdu, hedef 3 tane adresim var mesela..