Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
nomachine
on 28/04/2025, 14:40:35 UTC

What does similar mean? Same random seed + "something"? Some algorithm? Tongue

I don't know exactly what it is. It could be something very simple, and I might be overcomplicating things with complex byte variants — for example, it could just be the Satoshipuzzle plus the puzzle number, or something like that. Anything. Grin That's why this is a brute-force puzzle Wink

How could this be reconstructed, if it is even possible? How would you create a puzzle if you were the creator?   Tongue

Code:
import random
import hashlib
import base58

for puzzle in range(1, 160):
      lower = 2 ** (puzzle - 1)
      upper = (2 ** puzzle) - 1
      seed = "SatoshiNakamotoPuzzle" + str(puzzle)
      random.seed(seed)
      dec = random.randint(lower, upper)
      private_key_hex = "%064x" %  dec
      private_key_bytes = bytes.fromhex(private_key_hex)
      extended_key = b'\x80' + private_key_bytes
      extended_key += b'\x01'
      checksum = hashlib.sha256(hashlib.sha256(extended_key).digest()).digest()[:4]
      wif_bytes = extended_key + checksum
      wif_compressed = base58.b58encode(wif_bytes).decode()
      print(f"Puzzle = {puzzle} seed = {seed} wif = {wif_compressed}")

I don't need anything else. Not even a deterministic wallet.  Grin