yukardaki koddaki sıkıntı uncompressed adresleri veriyor compressed adresleri de aynı çıktıda almak gerekiyor . Sizde bir bakabilirseniz arkadaşlar aynı dec değeri için compressed adres ve uncompressed adres nasıl çıkartırız... Bitcoin modülü ile çözemedim
https://pypi.org/project/bitcoin/Edit: (bir aşama ilerleme)
compressed ve uncompressed wif üretimi ni yaptım bundan sonrasında wif lerden adrese geçmek gerekiyor
from bitcoin import *
import bitcoin
nDecimal = 8993229949524469768
def generar_HEX(nDecimal):
aHex = hex(nDecimal)
aHex = aHex[2:].upper()
aHex = ((64-len(aHex)) * '0') + aHex
return aHex
private_key = generar_HEX(nDecimal)
decoded_private_key = bitcoin.decode_privkey(private_key, 'hex')
wif = bitcoin.encode_privkey(decoded_private_key, 'wif')
compressed_private_key = private_key + '01'
wif1 = bitcoin.encode_privkey(bitcoin.decode_privkey(private_key, 'hex'), \
'wif_compressed')
print wif1
print wif