Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
nomachine
on 21/10/2023, 16:05:51 UTC
Get rid of them.

You can make Puzzle 66 script in 11 lines

Quote
import sys, os, secp256k1 as ice
while True:
    random_bytes=os.urandom(9);initial_bytes=b'\x00'*23;full_bytes=initial_bytes+random_bytes
    wif = ice.btc_pvk_to_wif(full_bytes);pvk_int = int(ice.btc_wif_to_pvk_hex(wif), 16)
    h160 = ice.privatekey_to_h160(1, True, pvk_int).hex()
    message = "\r{}".format(h160);messages = []
    messages.append(message);output = "\033[01;33m" + ''.join(messages) + "\r"
    sys.stdout.write(output);sys.stdout.flush()
    if h160 == "20d45a6a762535700ce9e0b216e31994335db8a5":
        print(wif)
        break