Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
VinIVaderr
on 29/01/2024, 21:11:13 UTC
In the spirit of trying and testing new ideas I have created a gui slider bar with the min:max decimal representations of puzzle #66. You can slide the bar and it will print numbers to the terminal. I also created a simple code to read the input and convert it to key/address. This idea doesn't really work and I imagine it's because of memory and cpu limitations.

problem 1   every number printed to the terminal is a multiple of 2. ie 2,4,6,8,

problem 2   the only way to get a key/address output is when you close the slider window.
                  and you can see it seems to have a max limit.

usage:   python3 slider_code.py | python3 key_conversion.py


slider_code.py
Code:
import tkinter
import random
window = [Suspicious link removed]()
def change(val):
    print (str(val))
slider = tkinter.Scale(window, from_=(36893488147419103232), to=(73786976294838206463), orient=tkinter.VERTICAL, length=500, command=change)
slider.pack()
window.mainloop()

key_conversion.py
Code:
import sys
from bitcoin import privtopub, pubtoaddr

data_a = sys.stdin.readline()
data_b = data_a.strip()
data_c = hex(int(data_b))[2:]

priv_key = "00000000000000000000000000000000000000000000000" + data_c + "a0"
pubkey = privtopub(priv_key)
btc = pubtoaddr(pubkey)
print(priv_key)
print(pubkey)
print(btc)