Pages:
Author

Topic: VanitySearch (Yet another address prefix finder) - page 33. (Read 32072 times)

member
Activity: 93
Merit: 12
How to create files with specific size ie. 1MB or number of keys ie: 100 ?
I haven't found any arg to do that but you can use this workaround:
  • Create an input file "100test.txt" with 100 lines of "1test" (copy paste the first line until 10th, then copy the 10 lines and paste 9 times)
  • Use this command: vanitysearch -stop -i 100test.txt -o 100testresult.txt

By using -stop argument, it will only search each of the input files' line, 100 lines =100 results.
You can use notepad++ so you can monitor the number of lines.


Good solution, but what if I want create several files?
For example I will make one input file with 100 lines but I want create 10 output files with 100 lines (each file)
without any break (between making every next file)
first file, then next file, then next file and so on.... till 10 file (last).
How to do that?
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
How to create files with specific size ie. 1MB or number of keys ie: 100 ?
I haven't found any arg to do that but you can use this workaround:
  • Create an input file "100test.txt" with 100 lines of "1test" (copy paste the first line until 10th, then copy the 10 lines and paste 9 times)
  • Use this command: vanitysearch -stop -i 100test.txt -o 100testresult.txt

By using -stop argument, it will only search each of the input files' line, 100 lines =100 results.
You can use notepad++ so you can monitor the number of lines.
member
Activity: 93
Merit: 12
Code:
-o outputfile: Output results to the specified file

Code:
VanitySearch.exe -gpu -o test.txt 1Ubunt

How to create files with specific size ie. 1MB or number of keys ie: 100 ?
full member
Activity: 706
Merit: 111
If you starts like this:
VanitySearch.exe 1BTC
At each startup, the base key is choosen randomly.

VanitySearch.exe -s "My Seed" 1BTC
In this case,it will compute the same thing each time, the base key is computed from the seed.



Merci beaucoup Jean Luc


How many bits is "1BTC"?
sr. member
Activity: 462
Merit: 701
If you starts like this:
VanitySearch.exe 1BTC
At each startup, the base key is choosen randomly.

VanitySearch.exe -s "My Seed" 1BTC
In this case,it will compute the same thing each time, the base key is computed from the seed.
jr. member
Activity: 75
Merit: 2
Can anyone please answer me this: every time I start my search over for the same combination, lets say it is 1Bitco,
will there always be different keys or the same as in the first search?
Is there some kind of order or is it always starts at random?
It's that I just don't understand how the algorithm works and how exactly it performs the search, the mechanics of it, hence my curiosity
sr. member
Activity: 462
Merit: 701
Clear output memory 4 bytes

It clears only the global counter (used by each GPU threads), the rest of the memory is written by the GPU each time it founds a match.
Except for the 4 first bytes, there is no need to copy or reset anything.
member
Activity: 93
Merit: 16
Hi,

cudaMemset(outputPrefix,0,4); reset the prefix counter which is a 32bits variable, there's no need to reset anything else.

This variable is used in:
pos = atomicAdd(out, 1);

where out is a pointer (uint32_t *) to outputPrefix.

With the functions, everything is clear Smiley But, it does not work out logically ...
this-> outputSize = (maxFound * ITEM_SIZE + 4);
cudaMalloc ((void **) & outputPrefix, outputSize);
cudaMemset (outputPrefix, 0,4);

Respectively
outputSize = (65536 * 28 + 4) = 1835012
outputSize = 65536 * (28 + 4) = 2097152 = 2 ^ 21 bytes = 2048 KB = 2 MB

Conclusions:
Allocate output memory 1835012 bytes
Clear output memory 4 bytes
This is probably a mistake !?
Found values ​​in the Launch function - prefixFound is passed to the ITEM array "prefixFound.push_back (it);"
Next comes return callKernel ();
Where the data in outputPrefix memory should be zeroed, but this does not happen in the program, or rather, only the lower 4 bytes are erased
and cyclically "while (ok &&! flag_endOfSearch)" and "ok = g.Launch (found);" copied to the host.
This is verified practically in VanitySearch :: FindKeyGPU by the printf function.

Need to replace ?
cudaMemset (outputPrefix, 0,4);
on the
cudaMemset (outputPrefix, 0, outputSize); // spinWait = true;
and
this-> outputSize = (maxFound * ITEM_SIZE + 4);
on the
this-> outputSize = (maxFound * (ITEM_SIZE + 4));
Because 1835012 is not a multiple of 8 Smiley
sr. member
Activity: 462
Merit: 701
Hi,

cudaMemset(outputPrefix,0,4); reset the prefix counter which is a 32bits variable, there's no need to reset anything else.

This variable is used in:
pos = atomicAdd(out, 1);

where out is a pointer (uint32_t *) to outputPrefix.
member
Activity: 93
Merit: 16
Hi Jean_Luc.
file GPUEngine.cu
Code:
bool GPUEngine::callKernel() {

  // Reset nbFound
  //cudaMemset(outputPrefix,0,4); <-- copy duplicates to host ???
  cudaMemset(outputPrefix,0,outputSize);

whats copy duplicates to host  Huh
sr. member
Activity: 462
Merit: 701
Why are the results almost similar? (on the graphics card should be much higher)?

Hi,
The time here is mainly spent in writing the output file. By searching 1*, all generated addresses will match and will be output to the file.
member
Activity: 93
Merit: 12
Hello guys!
I have simple questions.
How it is?

I did run VanitySearch for one minute first for my CPU and after for my GPU.
After one min. for CPu and GPU this is my results.


CPU: Intel Xeon 1231 v3 (4 cores) ~1,45 mln keys stored in txt file
GPU: Geforce GTX 1070 (8GB) ~ 1,50 mln keys stored in txt file


1. Why the results are almost similar? (on the graphics card should be much higher)?
2. What is the best configuration to achieve the highest possible speed?
3. What is the best command to generate as many keys as possible in the shortest possible time?
4. When i choose GPU with code below i see this hint: Hint: Search with less prefixes, less threads (-g) or increase maxFound (-m)
- What does it means??


my code for CPU
Code:
VanitySearch.exe -o keys2.txt 1*

my code for GPU
Code:
VanitySearch.exe -gpu -o keys1.txt 1*
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
I don't use translator, I know English well enough to understands most of it. It's that sometimes it might be difficult to understand the meaning behind the words as I'm not good with idioms or slang but that's it.
If that's the case, then do a quick "back-read" of my previous replies because most were already answered and you seem to miss the most important parts.
I wont reply any more since I can assume that this will be easily solved based from the last paragraph of your post.

Quote from: shlomogold
Now back to the main subject. I've tried file.txt, didn't work, but I just copy the results from the window now.
As for that admin thing, honestly, I'm not sure about it, never noticed. I start it, I use it, it runs, fine by me
As an addition to the previous replies:
It will work even if command prompt wasn't launched as admin, but it wont be able to create an output file if the disk is protected.

Then read my previous replies for the reasons and solutions.
jr. member
Activity: 75
Merit: 2
-snip-
Sorry, I must've missed it.
Not sure about admin rights. I'm using it as the admin, should be fine I guess.
as for the path, I wasn't sure if I should specify the full path starting with C: or just file.txt after -0
Now it's clearly the language barrier that's hampering this conversation since those are already explained in that quoted post.
Consider using a better translator like deepl.com/translator (if your language is supported) or post a new thread in your local board.

I'll just rephrase the important part from my post:
[1] You can specify the full path and [2] you can also just write "file.txt".
The difference is [1] will create the 'file.txt' to that 'path' while [2] will create the 'file.txt' where vanitysearch is located.

Lastly, checking "run this program as admin" in vanitysearch's properties wont run it as admin,
"command prompt" should be run as admin [right click start and select 'Command Prompt (Admin)'].

I don't use translator, I know English well enough to understands most of it. It's that sometimes it might be difficult to understand the meaning behind the words as I'm not good with idioms or slang but that's it.

Now back to the main subject. I've tried file.txt, didn't work, but I just copy the results from the window now.
As for that admin thing, honestly, I'm not sure about it, never noticed. I start it, I use it, it runs, fine by me
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
-snip-
Sorry, I must've missed it.
Not sure about admin rights. I'm using it as the admin, should be fine I guess.
as for the path, I wasn't sure if I should specify the full path starting with C: or just file.txt after -0
Now it's clearly the language barrier that's hampering this conversation since those are already explained in that quoted post.
Consider using a better translator like deepl.com/translator (if your language is supported) or post a new thread in your local board.

I'll just rephrase the important part from my post:
[1] You can specify the full path and [2] you can also just write "file.txt".
The difference is [1] will create the 'file.txt' to that 'path' while [2] will create the 'file.txt' where vanitysearch is located.

Lastly, checking "run this program as admin" in vanitysearch's properties wont run it as admin,
"command prompt" should be run as admin [right click start and select 'Command Prompt (Admin)'].
jr. member
Activity: 75
Merit: 2
I will try to rephrase as I have a feeling we might've had misunderstanding as I'm not native English speaker.
I'd like to put all the found keys in a txt file. What exactly should I write after -o? is it something like -o C:/BTC/vanitysearch/file.txt where I specify the path to that particular file?
You didn't answered any of my questions...  Sad
Either specifying the directory or not, will work, the difference is without the directory, the output file will be created in the directory where vanitysearch is.

Did you even try to run Vanitysearch as admin? Because if the disk is "protected" and without admin rights, any app wont be able to write files if it wasn't launched as admin.
I have tried it and it also didn't created an output file.

You can also specify the directory where there's no required elevated permission like your drives other than "C" for W10, that way you wont be needing admin privilege.
Lastly, you should put the prefix in the end of the command, Eg:
Code:
vanitysearch -stop -o D:\Folder\output.txt 1pear


Sorry, I must've missed it.
Not sure about admin rights. I'm using it as the admin, should be fine I guess.
as for the path, I wasn't sure if I should specify the full path starting with C: or just file.txt after -0
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
I will try to rephrase as I have a feeling we might've had misunderstanding as I'm not native English speaker.
I'd like to put all the found keys in a txt file. What exactly should I write after -o? is it something like -o C:/BTC/vanitysearch/file.txt where I specify the path to that particular file?
You didn't answered any of my questions...  Sad
Either specifying the directory or not, will work, the difference is without the directory, the output file will be created in the directory where vanitysearch is.

Did you even try to run Vanitysearch as admin? Because if the disk is "protected" and without admin rights, any app wont be able to write files if it wasn't launched as admin.
I have tried it and it also didn't created an output file.

You can also specify the directory where there's no required elevated permission like your drives other than "C" for W10, that way you wont be needing admin privilege.
Lastly, you should put the prefix in the end of the command, Eg:
Code:
vanitysearch -stop -o D:\Folder\output.txt 1pear
jr. member
Activity: 75
Merit: 2
Other question as it seems I still miss some important points.

I'm performing scan right now, I see {Prob. 100% - 99% in 00:00:00} and this being there for hours.
What exactly is it, how to understand it?
legendary
Activity: 3668
Merit: 6382
Looking for campaign manager? Contact icopress!
that's exactly how I did it but the file is still empty

Try with simple command lines and different/simple path to the text file.
If my exact command line didn't work, maybe an antivirus or sandboxing prevents vanitysearch from accessing the results.txt you want (and you may or may not find a copy somewhere else).
jr. member
Activity: 75
Merit: 2
I will try to rephrase as I have a feeling we might've had misunderstanding as I'm not native English speaker.
I'd like to put all the found keys in a txt file. What exactly should I write after -o? is it something like -o C:/BTC/vanitysearch/file.txt where I specify the path to that particular file?

Let's say it simple. If you do this:

Code:
vanitysearch -c -o results.txt 1Me

that's exactly how I did it but the file is still empty
Pages:
Jump to: