From start to finish. But it's not the speed,
it's the size of the DB, only 121kb Well I mean the speed is good for a single core. DB creation and search for the key and find it in
under 9 seconds, 100% of the time.
My results:
-------------------------------------------------------------------------------
2^32 range1 key each 2^20 (1 million)
time to generate the DB:
0.060 ssize of DB:
32kBmax time to find the private key :
less than 2 seconds.
-------------------------------------------------------------------------------
2^36 range1 key each 2^20 (1 million)
time to generate the DB:
0.5 ssize of DB:
512kBmax time to find the private key :
less than 2 seconds.
-------------------------------------------------------------------------------
2^40 range1 key each 2^20 (1 million)
time to generate the DB:
7.3 ssize of DB:
8 MBmax time to find the private key :
less than 2 seconds.
-------------------------------------------------------------------------------
2^44 interval1 key each 2^20 (1 million)
time to generate the DB:
2 msize of DB:
129 MBmax time to find the private key :
less than 4 seconds.
-------------------------------------------------------------------------------
2^44 range1 key each 2^24 (16 millions)
time to generate the DB:
7.3 ssize of DB:
8 MBmax time to find the private key :
30 seconds.
-------------------------------------------------------------------------------
The problem with my implementation is that
the time search goes up with the size of DB and
with the number of the keys I skip in the database creation.
The goal is to have a faster implementation for large intervals, not for small intervals
I updated my search_key script. Now it is a little faster.
Using a key in the 30 bit range: 3d94cd64
The result,
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This is the public key: 0d282cf2ff536d2c42f105d0b8588821a915dc3f9a05bd98bb23af67a2e92a5b
I need to find this private key: 0x3d94cd64
Private key found!!!
0x594cd64
a152cbd0f4fdb5caf73c1ef6469896a760461bb0d297075962b40b7f5e93d2fd
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
0x5 94cd64 the last 6 are correct but the 5 of course is wrong, so produces the wrong public key.
Not sure why
I thought it might be a false positive, but ran through the whole database, but no other string was found.
Are you sure you have changed the parameters in both scripts (same parameters in both): create_database and seach_pk ?
Anyway I updated the search_pk (it is in the same post)