Post
Topic
Board Bitcoin Discussion
Re: Bitcoin puzzle transaction ~32 BTC prize to who solves it
by
algorithm32
on 27/04/2023, 18:58:46 UTC
Hi there guys,

Considering your experience, how many keys a pc can scan in 1 second?

No kangaroo, no BSGS, but only random combination.



Code:
import time

def calculate_pi(n):
    start_time = time.time()
    s = 0
    for i in range(n):
        s += 4.0 * (-1) ** i / (2 * i + 1)
    end_time = time.time()
    return s, end_time - start_time

n = 1000000
pi, elapsed_time = calculate_pi(n)
print("Pi: %f" % pi)
print("Elapsed time: %f seconds" % elapsed_time)
print("Digit production speed: %f rakam/saniye" % (n / elapsed_time))

In short, there is no universal calculation that answers that question.
is not the same:
Generate numbers of 1-1000000
Calculate pi, n times.
Calculate fibonacci
Generate public keys
Generate addresses
Generate wif
All are executed using distinct resources in different times.
There are even the variables of the libraries that are faster than others to obtain the same result.