Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
nomachine
on 03/11/2023, 18:42:30 UTC
I'm curious how many of these you've solved with this method of seeding the random with specific values; was it only #50?


I have tried all possible puzzles from 1 to 50 and iterate over possible seed values, set the seed, generate a random number, and check if it matches target number(WIF in decimal). Solved up to 50.

I tried the same method with #65 and I get a approximate number.

Quote
import random
min_number = 18446744073709551615
max_number = 36893488147419103231
random_bytes = b'r\xbd\x83\r\xec}\xfc\xbf\xde'
random.seed(random_bytes)
generated_number = random.randint(min_number, max_number)
print("Seed :", random_bytes)
print("Generated number:", generated_number)

Seed : b'r\xbd\x83\r\xec}\xfc\xbf\xde'
Generated number: 30568377314984161259

And need to be:
30568377312064202855


This approach may take a very long time to find the correct seed value, as it essentially involves brute-forcing all possible seeds. Depending on the range of possible seeds and the complexity of the random number generator, this process could be impractical.