Bitcoin Forum
November 09, 2024, 10:28:59 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1] 2 »  All
  Print  
Author Topic: Generation of priv/pub in given range..  (Read 452 times)
MikeJ_NpC (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10

if you want to lie *cough*use your data; not mine.


View Profile
July 22, 2021, 06:07:46 AM
 #1

Hey guys i know to some this is "easy" but i merely want to get it correct. Can someone assist with this perhaps?

I need to generate pubkey/privkey only ... i dont need address i dont need balances etc... only those 2 results to a given range which is below.
Also to save the results into 100GB files..   If someone wants lunch i dont mind sending a tip  for helping.. the purpose is for a correlation study... 

Start of range: 04000000005ef4a74721e864761ea977768e5f518bb6891be80000000000000000                                     
End of range: 0400000002fe7f16c00762b915532410f81fa9220d30e5f8a6c38751c7c58df5d4

i can run this on multi-gpu or cpu doesn't matter to me .. just want to get it over with as i have had some disappointments hence why i am requesting for some help on the matter.
As i said dont need the other stuff.. just as stated above.

py might be too slow.. im not sure.. 

Thank you
Kind Regards..


If Karma is a bitch, then god is a woman. I ask to know, not to be screwed or hear trite excuses (after the fact) which a 3rd grader could do better on. If you give your word, keep it atleast..
Minase
Member
**
Offline Offline

Activity: 72
Merit: 43


View Profile
July 22, 2021, 06:34:26 AM
Merited by LoyceV (6), o_e_l_e_o (4), ABCbits (3), EFS (2), Pmalek (2), BlackHatCoiner (2), kaggie (1)
 #2

First of, what you posted are public keys ranges (at least they look like this, even if they start with 04 and contain only the "X" value). They are 66 chars long.
And second.... even if i remove the 04 from the beginning the difference is bigger than 2^225 which translates to = not enough time/space to generate/store all those points, not even with a mini farm.

//edit
Even with a speed of 1.000.000.000.000 keys/s you will still need 1709788601417468277185883757421336293355983284027 YEARS to complete this task.
odolvlobo
Legendary
*
Offline Offline

Activity: 4494
Merit: 3403



View Profile
July 22, 2021, 07:00:10 AM
Merited by ABCbits (1), BlackHatCoiner (1)
 #3

I need to generate pubkey/privkey only ... i dont need address i dont need balances etc... only those 2 results to a given range which is below.
Also to save the results into 100GB files..   If someone wants lunch i dont mind sending a tip  for helping.. the purpose is for a correlation study...  

Start of range: 04000000005ef4a74721e864761ea977768e5f518bb6891be80000000000000000                                      
End of range: 0400000002fe7f16c00762b915532410f81fa9220d30e5f8a6c38751c7c58df5d4

It's not clear what you are looking for. Do you want the private keys of all public keys in that range or just one? If you want only one, it should be easy to do. If you want all, then you will find that it is infeasible just because of the number of keys in that range.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
TheArchaeologist
Sr. Member
****
Offline Offline

Activity: 310
Merit: 727


---------> 1231006505


View Profile WWW
July 22, 2021, 09:51:30 AM
 #4

It's not clear what you are looking for. Do you want the private keys of all public keys in that range or just one? If you want only one, it should be easy to do. If you want all, then you will find that it is infeasible just because of the number of keys in that range.
Since OP states he want the results saved in 100GB files he clearly means all pirvate/public keys in range.

Sooner or later you're going to realize, just as I did, that there's a difference between knowing the path and walking the path
ABCbits
Legendary
*
Offline Offline

Activity: 3052
Merit: 8074


Crypto Swap Exchange


View Profile
July 22, 2021, 10:20:03 AM
Merited by Welsh (5), Pmalek (2), Jawhead999 (1), BlackHatCoiner (1)
 #5

Assuming you actually mean range of private key, here's a dumb Python script created by myself which generate compressed public key and using all CPU cores.

Code:
from fastecdsa import keys, curve
import multiprocessing

start = 0x1
end = 0xF

f = open('pubkey.txt', 'w')
def do(private):
    public = keys.get_public_key(int(private), curve.secp256k1)
    public_str = '02' + str(hex(public.x)).lstrip('0x') + '\n'
    f.write(public_str)
    f.flush()

p = multiprocessing.Pool(multiprocessing.cpu_count())
p.map(do, range(start, end))

I tried it with Python 3.8 and fastecdsa 2.1.5, here's the result

Code:
0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5
02f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9
022f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4
02fff97bd5755eeea420453a14355235d382f6472f8568a18b2f057a1460297556
02a0434d9e47f3c86235477c7b1ae6ae5d3442d49b1943c2b752a68e2a47e247c7
02e493dbf1c10d80f3581e4904930b1404cc6c13900ee0758474fa94abe8c4cd13
022f01e5e15cca351daff3843fb70f3c2f0a1bdd05e5af888a67784ef3e10a2a01
02f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8
02499fdf9e895e719cfd64e67f07d38e3226aa7b63678949e6e49b241a60e823e4
02774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb
025cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc
02acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe
02d01115d548e7561b15c38f004d734633687cf4419620095bc5b0f47070afe85a

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
Sterbens
Sr. Member
****
Offline Offline

Activity: 1848
Merit: 341


Duelbits.com


View Profile
July 22, 2021, 07:47:05 PM
 #6


i can run this on multi-gpu or cpu doesn't matter to me .. just want to get it over with as i have had some disappointments hence why i am requesting for some help on the matter.
As i said dont need the other stuff.. just as stated above.

if using Multi GPU you are trying to use there may be some like using Split/Tile method or by using alternative Frame method. That is if you keep a sizable workload.
As for I would suggest you better use the Alternative method, because this can simplify the work and will also be practical in every step you go through. But again, to finish everything from scratch, you'll have a hard time if you don't have the other elements.



As an example of a fairly simple Multi GPU configuration, namely GIGABYTE GV-N970WF2OC-2GD + GIGABYTE GV-XXXXXXX-2XD
then proceed with several additional configurations, namely GIGABYTE GV-R449G1 GA-4GD + GIGABYTE GV-R4545GX.

.
DuelbitsSPORTS
▄▄▄███████▄▄▄
▄▄█████████████████▄▄
▄██████████████████████▄
██████████████████████████
███████████████████████████
██████████████████████████████
██████████████████████████████
█████████████████████████████
███████████████████████████
█████████████████████████
▀████████████████████████
▀▀███████████████████
██████████████████████████████
██
██
██
██

██
██
██
██

██
██
██
████████▄▄▄▄██▄▄▄██
███▄█▀▄▄▀███▄█████
█████████████▀▀▀██
██▀ ▀██████████████████
███▄███████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
███████████████████████
▀█████████████████████▀
▀▀███████████████▀▀
▀▀▀▀█▀▀▀▀
OFFICIAL EUROPEAN
BETTING PARTNER OF
ASTON VILLA FC
██
██
██
██

██
██
██
██

██
██
██
10% CASHBACK
          100% MULTICHARGER
NotATether
Legendary
*
Offline Offline

Activity: 1778
Merit: 7372


Top Crypto Casino


View Profile WWW
July 23, 2021, 11:02:16 AM
Last edit: July 23, 2021, 05:51:02 PM by NotATether
 #7

Since OP states he want the results saved in 100GB files he clearly means all pirvate/public keys in range.

Here's the thing about getting all pubkeys in a range. We still don't know whether he wants the X part or the Y part (or both) in the specified range. If *most* keys in the range is sufficient, we could optimize the run time by inspecting only those pubkeys that are also a multiple or 2 or 4 or 8... depending on granularity required.

Obviously the algorithm will be different depending on which parts of pubkey should be in range.

Edit: spelling fudge

███████████████████████
████▐██▄█████████████████
████▐██████▄▄▄███████████
████▐████▄█████▄▄████████
████▐█████▀▀▀▀▀███▄██████
████▐███▀████████████████
████▐█████████▄█████▌████
████▐██▌█████▀██████▌████
████▐██████████▀████▌████
█████▀███▄█████▄███▀█████
███████▀█████████▀███████
██████████▀███▀██████████

███████████████████████
.
BC.GAME
▄▄▀▀▀▀▀▀▀▄▄
▄▀▀░▄██▀░▀██▄░▀▀▄
▄▀░▐▀▄░▀░░▀░░▀░▄▀▌░▀▄
▄▀▄█▐░▀▄▀▀▀▀▀▄▀░▌█▄▀▄
▄▀░▀░░█░▄███████▄░█░░▀░▀▄
█░█░▀░█████████████░▀░█░█
█░██░▀█▀▀█▄▄█▀▀█▀░██░█
█░█▀██░█▀▀██▀▀█░██▀█░█
▀▄▀██░░░▀▀▄▌▐▄▀▀░░░██▀▄▀
▀▄▀██░░▄░▀▄█▄▀░▄░░██▀▄▀
▀▄░▀█░▄▄▄░▀░▄▄▄░█▀░▄▀
▀▄▄▀▀███▄███▀▀▄▄▀
██████▄▄▄▄▄▄▄██████
.
..CASINO....SPORTS....RACING..


▄▄████▄▄
▄███▀▀███▄
██████████
▀███▄░▄██▀
▄▄████▄▄░▀█▀▄██▀▄▄████▄▄
▄███▀▀▀████▄▄██▀▄███▀▀███▄
███████▄▄▀▀████▄▄▀▀███████
▀███▄▄███▀░░░▀▀████▄▄▄███▀
▀▀████▀▀████████▀▀████▀▀
MikeJ_NpC (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10

if you want to lie *cough*use your data; not mine.


View Profile
July 23, 2021, 02:45:02 PM
 #8

Hey guys sorry about my delay on posting,.. wife is sick...

Well to clarify,  i only need keys  pub/priv with-in the  start  and end points. A 1:1 output meaning all of them within that segment.

I tested  a few other things out and i think  in PY its going to be way too slow.. granted it  wasnt on the 192cpu.. i do know  someone with 400gpu so i could have him run it i think thats a maybe...
other than that most  i can do is 8x to  16x gpu..

Well the premise is  however  you want to arrange it is fine with me as long as the output is  "  pivkey_hex/pubkey_hex " for the points in-between start and end range
Im not expecting  something for free as everyone  needs to eat and  takes time so..  if there is something that works im all ears.



If Karma is a bitch, then god is a woman. I ask to know, not to be screwed or hear trite excuses (after the fact) which a 3rd grader could do better on. If you give your word, keep it atleast..
WanderingPhilospher
Full Member
***
Offline Offline

Activity: 1204
Merit: 237

Shooters Shoot...


View Profile
July 23, 2021, 04:50:26 PM
 #9

Hey guys sorry about my delay on posting,.. wife is sick...

Well to clarify,  i only need keys  pub/priv with-in the  start  and end points. A 1:1 output meaning all of them within that segment.

I tested  a few other things out and i think  in PY its going to be way too slow.. granted it  wasnt on the 192cpu.. i do know  someone with 400gpu so i could have him run it i think thats a maybe...
other than that most  i can do is 8x to  16x gpu..

Well the premise is  however  you want to arrange it is fine with me as long as the output is  "  pivkey_hex/pubkey_hex " for the points in-between start and end range
Im not expecting  something for free as everyone  needs to eat and  takes time so..  if there is something that works im all ears.



Can you clarify the range? The range you posted in OP, doesn't really make sense.
BitcoinADAB
Copper Member
Member
**
Offline Offline

Activity: 76
Merit: 11


View Profile
July 23, 2021, 07:13:23 PM
 #10

Hey guys i know to some this is "easy" but i merely want to get it correct. Can someone assist with this perhaps?
...
Start of range: 04000000005ef4a74721e864761ea977768e5f518bb6891be80000000000000000                                     
End of range: 0400000002fe7f16c00762b915532410f81fa9220d30e5f8a6c38751c7c58df5d4
...

If you need it for this...

Hey all,

Im just wondering if there is a list of all wallets which are Satoshi Nakamoto related? ... Perhaps from block 0 to 32688 ?....
Would help for a project im doing, ... havent been able to find any list so figured i would ask here ....

Thank you!
Kind Regards

it is impossible:

WanderingPhilospher
Full Member
***
Offline Offline

Activity: 1204
Merit: 237

Shooters Shoot...


View Profile
July 23, 2021, 08:22:28 PM
 #11

I already have a program that would do this, but would need to know the specific range you wanted in order to code it in and show you a test run.

Just know, printing to a file, slows even GPUs down to a snails pace. I'll have to rerun it again to see what speeds it gets.
MikeJ_NpC (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10

if you want to lie *cough*use your data; not mine.


View Profile
July 24, 2021, 01:38:57 PM
 #12

Well to clarify,  i only need keys  pub/priv with-in the  start  and end points.

Now we know you need both private and public key, but you haven't clarify what kind of range you're talking about. Are you talking about range of private key or range of public key?

Just know, printing to a file, slows even GPUs down to a snails pace. I'll have to rerun it again to see what speeds it gets.

Just wondering, are you talking about writing priv/pub pair as soon as it's generated (random write) or big batch of priv/pub pair (sequential write)?


i had said  at the start i need the pub/priv key and wanted to look at correlations  with in that range... in hex ... lol..  dont know else i should  say it   Smiley
Also its not even close to the  entire key space ,   if its easier to   do it by even integers  then okay ... just would like to be able to generate something to base things on ... 

If Karma is a bitch, then god is a woman. I ask to know, not to be screwed or hear trite excuses (after the fact) which a 3rd grader could do better on. If you give your word, keep it atleast..
MikeJ_NpC (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10

if you want to lie *cough*use your data; not mine.


View Profile
July 24, 2021, 01:41:57 PM
 #13

I already have a program that would do this, but would need to know the specific range you wanted in order to code it in and show you a test run.

Just know, printing to a file, slows even GPUs down to a snails pace. I'll have to rerun it again to see what speeds it gets.

I need to record the data somehow..  saving it off is the only way... or should it be written to sql for instance?
the range  is noted in the 1st post.. that is the range i want to segment and pull.. in 200gb files..

whatever works, just again only need the start  / end range and covering pub/priv keys.  
no compression no address no  bal .. just the data in hex... do not need wif either.

If Karma is a bitch, then god is a woman. I ask to know, not to be screwed or hear trite excuses (after the fact) which a 3rd grader could do better on. If you give your word, keep it atleast..
MikeJ_NpC (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10

if you want to lie *cough*use your data; not mine.


View Profile
July 24, 2021, 01:43:54 PM
 #14

IF someone already has this stuff comprised ... i  dont mind tipping for it..   saves me the headache anyways.  Grin Wink

If Karma is a bitch, then god is a woman. I ask to know, not to be screwed or hear trite excuses (after the fact) which a 3rd grader could do better on. If you give your word, keep it atleast..
MikeJ_NpC (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10

if you want to lie *cough*use your data; not mine.


View Profile
July 24, 2021, 03:17:59 PM
 #15

Thanks but doesn't support  / work with long hex  apparently

Assuming you actually mean range of private key, here's a dumb Python script created by myself which generate compressed public key and using all CPU cores.

Code:
from fastecdsa import keys, curve
import multiprocessing

start = 0x1
end = 0xF

f = open('pubkey.txt', 'w')
def do(private):
    public = keys.get_public_key(int(private), curve.secp256k1)
    public_str = '02' + str(hex(public.x)).lstrip('0x') + '\n'
    f.write(public_str)
    f.flush()

p = multiprocessing.Pool(multiprocessing.cpu_count())
p.map(do, range(start, end))

I tried it with Python 3.8 and fastecdsa 2.1.5, here's the result

Code:
0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798
02c6047f9441ed7d6d3045406e95c07cd85c778e4b8cef3ca7abac09b95c709ee5
02f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9
022f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4
02fff97bd5755eeea420453a14355235d382f6472f8568a18b2f057a1460297556
02a0434d9e47f3c86235477c7b1ae6ae5d3442d49b1943c2b752a68e2a47e247c7
02e493dbf1c10d80f3581e4904930b1404cc6c13900ee0758474fa94abe8c4cd13
022f01e5e15cca351daff3843fb70f3c2f0a1bdd05e5af888a67784ef3e10a2a01
02f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8
02499fdf9e895e719cfd64e67f07d38e3226aa7b63678949e6e49b241a60e823e4
02774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb
025cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc
02acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe
02d01115d548e7561b15c38f004d734633687cf4419620095bc5b0f47070afe85a

If Karma is a bitch, then god is a woman. I ask to know, not to be screwed or hear trite excuses (after the fact) which a 3rd grader could do better on. If you give your word, keep it atleast..
MikeJ_NpC (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10

if you want to lie *cough*use your data; not mine.


View Profile
July 25, 2021, 04:51:02 AM
 #16

I have to start  my dissertation so  this inst a complex thing to request; its in multiple utilities.
That being said ill pay 250. I still have to parse the data or if someone has it ill settle for that too.


If Karma is a bitch, then god is a woman. I ask to know, not to be screwed or hear trite excuses (after the fact) which a 3rd grader could do better on. If you give your word, keep it atleast..
odolvlobo
Legendary
*
Offline Offline

Activity: 4494
Merit: 3403



View Profile
July 25, 2021, 08:32:33 AM
Last edit: July 25, 2021, 08:42:58 AM by odolvlobo
Merited by EFS (2), ABCbits (1)
 #17

i had said  at the start i need the pub/priv key and wanted to look at correlations  with in that range... in hex ... lol..  dont know else i should  say it   Smiley
Also its not even close to the  entire key space ,   if its easier to   do it by even integers  then okay ... just would like to be able to generate something to base things on ...  

It appears that you are asking someone to find 2225 key pairs. Not only will it take longer than the age of the universe to generate those pairs, but storing that information in 200 gb files is not possible as 2225 is more than the number of atoms on the entire planet.

You prefix the numbers with in the range with 0x04, which indicates an uncompressed public key, but it looks like you are asking for a range of compressed public keys.

Actually, it is not even clear if the range applies to the public keys or the private keys. Either way, it doesn't matter because you are asking for 2225 key pairs.

Join an anti-signature campaign: Click ignore on the members of signature campaigns.
PGP Fingerprint: 6B6BC26599EC24EF7E29A405EAF050539D0B2925 Signing address: 13GAVJo8YaAuenj6keiEykwxWUZ7jMoSLt
PrimeNumber7
Copper Member
Legendary
*
Offline Offline

Activity: 1666
Merit: 1901

Amazon Prime Member #7


View Profile
July 25, 2021, 08:02:08 PM
 #18

Well to clarify,  i only need keys  pub/priv with-in the  start  and end points.

Now we know you need both private and public key, but you haven't clarify what kind of range you're talking about. Are you talking about range of private key or range of public key?

It is not possible to get the private keys for a range of public keys, unless the length of the range is 1, and you have calculated the public key from the private key.


OP, you need to have a shorter range of private keys that you want the associated public keys to. You may also want to choose a different dissertation topic.

MikeJ_NpC (OP)
Member
**
Offline Offline

Activity: 107
Merit: 10

if you want to lie *cough*use your data; not mine.


View Profile
July 26, 2021, 06:40:56 AM
 #19

Well to clarify,  i only need keys  pub/priv with-in the  start  and end points.

Now we know you need both private and public key, but you haven't clarify what kind of range you're talking about. Are you talking about range of private key or range of public key?

It is not possible to get the private keys for a range of public keys, unless the length of the range is 1, and you have calculated the public key from the private key.


OP, you need to have a shorter range of private keys that you want the associated public keys to. You may also want to choose a different dissertation topic.



okay well  how about a smaller more applicable range then.. its not written in stone... lol .

If Karma is a bitch, then god is a woman. I ask to know, not to be screwed or hear trite excuses (after the fact) which a 3rd grader could do better on. If you give your word, keep it atleast..
WanderingPhilospher
Full Member
***
Offline Offline

Activity: 1204
Merit: 237

Shooters Shoot...


View Profile
August 01, 2021, 12:37:55 AM
 #20

Well to clarify,  i only need keys  pub/priv with-in the  start  and end points.

Now we know you need both private and public key, but you haven't clarify what kind of range you're talking about. Are you talking about range of private key or range of public key?

Just know, printing to a file, slows even GPUs down to a snails pace. I'll have to rerun it again to see what speeds it gets.

Just wondering, are you talking about writing priv/pub pair as soon as it's generated (random write) or big batch of priv/pub pair (sequential write)?
Sequential priv/pub pair as soon as it's generated.

You could do random as well (in a given range) and then sort to put the pairs in order.
Pages: [1] 2 »  All
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!