Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
nomachine
on 26/10/2023, 18:24:59 UTC
So 5 extra steps, 5 useless operations per key.

Code:
import os,hashlib
while True:
    random_bytes=os.urandom(9);initial_bytes=b'\x00'*23;full_bytes = initial_bytes + random_bytes
    h160 = hashlib.new('ripemd160', hashlib.sha256(full_bytes).digest()).hexdigest()
    if h160 == "20d45a6a762535700ce9e0b216e31994335db8a5":
        dec = int.from_bytes(full_bytes, byteorder='big')
        print(dec)
        break


It can't be simpler than this.. But even for this you have to wait 5000 years.  Grin