Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
madogss
on 06/03/2025, 22:14:20 UTC

Just a big list of hex/binary/decimal numbers no ranges or anything like that, I cant go into anymore detail or will be out of pocket 6.7btc Smiley A python script would probably be fine but then that is CPU only then?. But that might work. Has anyone made a basic python script to check keys from a script.

I guess GPU is a non issue, ill just get basic code working first.

I have done quite a bit of coding, but nothing on the cryptography side. I take it it would only be a few 100 lines of code?

Is it just like take 256bit private key guess, then hash it to the wallet address and check that matches the wallet address?



with Iceland's secp256k1 library it's simple https://github.com/iceland2k14/secp256k1

Code:
import secp256k1 as ice

Target = "1BP7ByGjkekGpUPweRGjBVWWa6hagnnrnm" # change with address you want to find

n = 0
keys = []

with open("possibilities.txt", 'r') as vf:
    # here you would replace with getting each number from file and converting decimal if needed

while True:
    if ice.privatekey_to_address(0, True, keys[n]) == Target:
        with open("Found.txt", "w") as file:
            file.write(f"Found: {keys[n]}")
            file.close()
        print("FOUND")
        exit()
    n += 1

Since you have so many combinations you will either need a lot of ram or split into multiple files.