Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
madogss
on 13/03/2025, 17:19:17 UTC

you could convert binary keys to hex easily and then run keyhunt

Hmmm, I am not sure if Keyhunt can do that. Just to be clear. I want to check .txt file of eg. 1 000 000 hypothetic 256bit private keys (not consecutive, more like random) against list of addreses. Keyhunt can't do that I think.

Best
Regards
Damian

if the list is that small then
Code:
import secp256k1 as ice

keys = []
addresses = []

with open("keys.txt", 'r') as vf:
    for line in vf:
        for word in line.split():
            keys.append(word)

with open("addresses.txt", 'r') as vf:
    for line in vf:
        for word in line.split():
            addresses.append(word)

for i in range(len(addresses)):
    for k in range(len(keys)):
        if ice.privatekey_to_address(0, True, keys[k]) == addresses[i]:
            with open("Found.txt", "w") as file:
                file.write(f"Found: {keys[k]} Address: {addresses[i]}")
                file.close()
        print("FOUND")
        exit()