I have a part of an UNCOMPRESSED private key. Starts at 5, missing 10 characters at the end. I saw the code on this forum and used it in python. But when working with my key, it gives out 2 incorrect options. I think the thing is that the code is written for a compressed key, since I checked on a compressed private key and it worked. What can I do?
import base58, sys
partial = sys.argv[1]
if len(partial) != 45:
print("partial key should be 45 characters")
sys.exit(1)
results = {}
for c in '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz':
wif = base58.b58encode_check(base58.b58decode(partial + c*7)[:33] + b'\x01').decode('ascii')
if wif[:45] == partial: results[wif] = True
for k in results.keys(): print(k)