Pages:
Author

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

sr. member
Activity: 462
Merit: 701
Yes I think it should be possible to run this script in a cygwin bash terminal
I don't think windows cmd (or .bat script) can do this but I'm not an expert in .bat script.

member
Activity: 93
Merit: 12
The -cp option expect a private key in hex format:


There is no trivial way to do what you want with VanitySearch, you can write a small script:

Code:
pons@linpons:~/VanitySearch$ cat tst.txt
5B3F38AF935A3640D158E871CE6E9666DB862636383386EE510F18CCC3BD72EB
5B3F38AF935A3640D158E871CE6E9666DB862636383386EE510F18CCC3BD72EC
5B3F38AF935A3640D158E871CE6E9666DB862636383386EE510F18CCC3BD72ED

pons@linpons:~/VanitySearch$ for i in `more tst.txt`; do ./VanitySearch -cp $i | grep Addr | grep P2PKH | awk '{ print $3 }'; done
12csaq6uhAtyhzUN8N4akVpat7GP6wB3ea
1PGVt2mWHgbULrx9pjWDPc2EKp2LWLT4fd
1DVjd5oZqCCYywtgL7FLbT3ZX4FFJK5nwc



1. It is possible to install VanitySearch and run this script in Cygwin64 Terminal?
2. what about CMD in Windows? It is possible to create the same script?

Thanks!
sr. member
Activity: 462
Merit: 701
I think it exists some fork doing this.
Ask to zielar.
newbie
Activity: 8
Merit: 0
@Jean_Luv

Will a key range feature be added in the future?
sr. member
Activity: 462
Merit: 701
The -cp option expect a private key in hex format:

Code:
pons@linpons:~/VanitySearch$ ./VanitySearch -cp 5B3F38AF935A3640D158E871CE6E9666DB862636383386EE510F18CCC3BD72EB
PubKey: 03BB113592002132E6EF387C3AEBC04667670D4CD40B2103C7D0EE4969E9FF56E4
Addr (P2PKH): 12csaq6uhAtyhzUN8N4akVpat7GP6wB3ea
Addr (P2SH): 34rLuX6QStr8qJCbmWouBuVQGDrFT4h453
Addr (BECH32): bc1qz8qw3se7c8rr7vs6sgnp29xv2vsutamxyd839p

There is no trivial way to do what you want with VanitySearch, you can write a small script:

Code:
pons@linpons:~/VanitySearch$ cat tst.txt
5B3F38AF935A3640D158E871CE6E9666DB862636383386EE510F18CCC3BD72EB
5B3F38AF935A3640D158E871CE6E9666DB862636383386EE510F18CCC3BD72EC
5B3F38AF935A3640D158E871CE6E9666DB862636383386EE510F18CCC3BD72ED

pons@linpons:~/VanitySearch$ for i in `more tst.txt`; do ./VanitySearch -cp $i | grep Addr | grep P2PKH | awk '{ print $3 }'; done
12csaq6uhAtyhzUN8N4akVpat7GP6wB3ea
1PGVt2mWHgbULrx9pjWDPc2EKp2LWLT4fd
1DVjd5oZqCCYywtgL7FLbT3ZX4FFJK5nwc

member
Activity: 93
Merit: 12
How to generate addresses to output file from input file (cointaining hex keys)?

I have text file with 50 hex keys in every single line.
I'm not sure what can I expect but I want to put this file into VanitySearch and get one nice output file with addresses corresponding to this hex keys.

I tried this command but it doesnt work

Code:
VanitySearch.exe -cp -i old_file.txt -o new_file.txt

please help

thanks!
newbie
Activity: 8
Merit: 0
Hi,

I've been using VanityGen and just came across VanitySearch, I must say great work! The speed is just incredible compared to both VanityGen and VanityGen Plus!

On to a my question:

Say I was searching for 3MyCoin and found multiple, but the first one was:

Priv (HEX): 0xA7D14FBF43696CA0B3DBFFD0AB7C9ED740FE338B 2B856E09F2E681543A444D58

And the multiple others start with:

Priv (HEX): 0xA7D14FBF43696CA0B3DBFFD0AB7C9ED740FE338B
Priv (HEX): 0xA7D14FBF43696CA0B3DBFFD0AB7C9ED740FE338B
Priv (HEX): 0xA7D14FBF43696CA0B3DBFFD0AB7C9ED740FE338B

Is there any way to search finding just the combinations that can go with 0xA7D14FBF43696CA0B3DBFFD0AB7C9ED740FE338B with the specified address 3MyCoin?
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
This is starting to be a PC troubleshooting discussion, the best advice is consider taking your laptop to a local Computer Technician.
I can't tell without physically checking the laptop but it might still be my previous presumption or there's a short somewhere.

-snip- Why does my laptop get very hot in just few minutes when using VanitySearch?
Because by default, it will use all of your CPU's threads and if -gpu is used, it will use the video card at 100% as well.
So if there's a problem with cooling or something else, it will just continue to heat up and cause issues.

Unlike Autocad which could only require bare minimum to medium resources, depending on your specs.
jr. member
Activity: 75
Merit: 2
Also, my laptop now makes a quiet sound while scanning, something like tac-tac-tac-tac-tac-tac every 5 seconds
That sounds like your HDD's "actuator arm" (slider head) tapping the disk (platters).
If it's an SSD, then it must be a barred fan that can still slip through or something because there are no other mechanical parts that can produce a "tac-tac-tac" sound.

The latter could slow-down your GPU because of cooling failure.


it does sound like a HDD working, exactly like that tapping sound, but my laptop actually has SSD.
also it gets extremely hot underneath after just 30 minutes so I guess it is a barred fan then


Same problem but now it is even worse. 45% battery, I start the program, couple minutes later my laptop shuts down because the battery is empty.
I plug it to the electricity socket, start the program, another couple minutes and I hear that tapping sound again and the bottom of my laptop is really hot.
It never happened when I use Autocad or similar software. Why does my laptop get very hot in just few minutes when using VanitySearch?
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
@inlovewiththedj Here's a better batch file (update for my post) that will create a total of 10,000 keys for you.
The result will be 10 folders containing 10 output files, 100 keys per output file; it will also create the folders for you, you don't need to create them in advance.

Just edit the first 5 lines depending on your preference:
input: the input file (eg. '1test.txt' in the same folder as this batch file and vanitysearch with prefix written inside).
output: base name of the output files.
directory: location where you want to put the output folders (do not add '/' at the end)
foldername: base name of the folder where the output files will be generated.
command: put any argument that you want to use (do not remove '-stop')

Code:
@set input=1test.txt
@set output=result.txt
@set directory=C:\test
@set foldername=output_folder
@set command=vanitysearch -stop

goto base
:gen
mkdir %directory%
mkdir %directory%\%folder%

:begin
set loop=0
:start
%command% -i %input% -o %directory%\%folder%\1%output%
set /a loop=%loop%+1
if "%loop%"=="100" goto next
goto start

:next
%command% -i %input% -o %directory%\%folder%\2%output%
set /a loop=%loop%+1
if "%loop%"=="200" goto next2
goto next

:next2
%command% -i %input% -o %directory%\%folder%\3%output%
set /a loop=%loop%+1
if "%loop%"=="300" goto next3
goto next2

:next3
%command% -i %input% -o %directory%\%folder%\4%output%
set /a loop=%loop%+1
if "%loop%"=="400" goto next4
goto next3

:next4
%command% -i %input% -o %directory%\%folder%\5%output%
set /a loop=%loop%+1
if "%loop%"=="500" goto next5
goto next4

:next5
%command% -i %input% -o %directory%\%folder%\6%output%
set /a loop=%loop%+1
if "%loop%"=="600" goto next6
goto next5

:next6
%command% -i %input% -o %directory%\%folder%\7%output%
set /a loop=%loop%+1
if "%loop%"=="700" goto next7
goto next6

:next7
%command% -i %input% -o %directory%\%folder%\8%output%
set /a loop=%loop%+1
if "%loop%"=="800" goto next8
goto next7

:next8
%command% -i %input% -o %directory%\%folder%\9%output%
set /a loop=%loop%+1
if "%loop%"=="900" goto next9
goto next8

:next9
%command% -i %input% -o %directory%\%folder%\10%output%
set /a loop=%loop%+1
if "%loop%"=="1000" goto dirselector
goto next9

:dirselector
if "%folder%"=="%foldername%" goto return
if "%folder%"=="%foldername%1" goto return1
if "%folder%"=="%foldername%2" goto return2
if "%folder%"=="%foldername%3" goto return3
if "%folder%"=="%foldername%4" goto return4
if "%folder%"=="%foldername%5" goto return5
if "%folder%"=="%foldername%6" goto return6
if "%folder%"=="%foldername%7" goto return7
if "%folder%"=="%foldername%8" goto return8
if "%folder%"=="%foldername%9" goto end

:base
@set folder=%foldername%
goto gen

:return
mkdir %directory%\%foldername%1
@set folder=%foldername%1
goto begin

:return1
mkdir %directory%\%foldername%2
@set folder=%foldername%2
goto begin

:return2
mkdir %directory%\%foldername%3
@set folder=%foldername%3
goto begin

:return3
mkdir %directory%\%foldername%4
@set folder=%foldername%4
goto begin

:return4
mkdir %directory%\%foldername%5
@set folder=%foldername%5
goto begin

:return5
mkdir %directory%\%foldername%6
@set folder=%foldername%6
goto begin

:return6
mkdir %directory%\%foldername%7
@set folder=%foldername%7
goto begin

:return7
mkdir %directory%\%foldername%8
@set folder=%foldername%8
goto begin

:return8
mkdir %directory%\%foldername%9
@set folder=%foldername%9
goto begin

:end
echo end

This batch file when used without editing will create 'test' folder under 'C' with 'output_folder', 'output_folder1', 'output_folder2'...... 'output_folder9' inside;
each folder contains '1result.txt', '2result.txt', '3result.txt'....... '10result.txt' with 100key pairs each.
sr. member
Activity: 443
Merit: 350
-snip-
I installed CUDA SDK and Toolkit but
I have an error. PLEASE HELP
-snip
make: /usr/local/cuda-8.0/bin/nvcc: Command not found
Makefile:63: recipe for target 'obj/GPU/GPUEngine.o' failed
make: *** [obj/GPU/GPUEngine.o] Error 127

Probably you have the different vesrion of CUDA, not 8.0

Test the version of your cuda through the command:
$ nvcc --version

It will show the version of your CUDA compiler driver.
Also you can go to /usr/local and find the folder with CUDA (cuda-8.0 or cuda-10.2)

Then open the Makefile (in Kangaroo project) and edit the folder for CUDA
You will find a line:
CUDA    = /usr/local/cuda-8.0

Change it to your cuda driver folder like this:
CUDA    = /usr/local/cuda-10.2

Save the edited Makefile and run the make command again (do not forget to run make clean as I wrote before)

It should work now.
sr. member
Activity: 443
Merit: 350
Before recompilation use the clean option first:
$ make clean

and then:
$ make gpu=0 ccap=61 all

Is your device gpu=1? If only one device, it could be gpu=0
member
Activity: 93
Merit: 12
Hi

sorry for simple question (for some people) but can You write I mean step by step
how to install VanitySearch on Linux ie. Mint, Ubuntu etc.

First of all.
1. I downloaded archive from github https://github.com/JeanLucPons/VanitySearch/archive/1.17.tar.gz
2. I extracted this archive to my desktop
3. Then In my Linux Mint I opened terminal and I navigated to this folder ie. VanitySearch-1.17
4. Then I did put and run the command:
Code:
make
5. Don't know what next to open program and start generating new addresses

Thanks!

If you do not use CUDA, just run tthis comand:
$ make all

If you use CUDA (GPU device), you should compile in another way:
$ make gpu=1 ccap=20 all

where: gpu=1 is the number of your GPU device (gpu=0 is also possible for one device)
           ccap=20 is the compute capability depending on your GPU device

Find your device here https://en.wikipedia.org/wiki/CUDA and input the version in accordance with your device (for example 20 for version 2.0; 61 for version 6.1; etc)

As soon as you compile the program you can run it in the following way:

$ ./VanitySearch -t 0 -gpu 1TryMe

where -gpu means you use GPU, -t 0 means that you so not use CPU (0 threads)
"./" - important part to run the program in Linux  Wink

I installed CUDA SDK and Toolkit but
I have an error. PLEASE HELP

Code:
make gpu=1 ccap=61 all
mkdir -p obj
cd obj && mkdir -p GPU
cd obj && mkdir -p hash
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/Base58.o -c Base58.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/IntGroup.o -c IntGroup.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/main.o -c main.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/Random.o -c Random.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/Timer.o -c Timer.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/Int.o -c Int.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/IntMod.o -c IntMod.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/Point.o -c Point.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/SECP256K1.o -c SECP256K1.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/Vanity.o -c Vanity.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/GPU/GPUGenerate.o -c GPU/GPUGenerate.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/hash/ripemd160.o -c hash/ripemd160.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/hash/sha256.o -c hash/sha256.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/hash/sha512.o -c hash/sha512.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/hash/ripemd160_sse.o -c hash/ripemd160_sse.cpp
g++ -DWITHGPU -m64 -mssse3 -Wno-write-strings -O2 -I. -I/usr/local/cuda-8.0/include -o obj/hash/sha256_sse.o -c hash/sha256_sse.cpp
/usr/local/cuda-8.0/bin/nvcc -maxrregcount=0 --ptxas-options=-v --compile --compiler-options -fPIC -ccbin /usr/bin/g++-4.8 -m64 -O2 -I/usr/local/cuda-8.0/include -gencode=arch=compute_61,code=sm_61 -o obj/GPU/GPUEngine.o -c GPU/GPUEngine.cu
make: /usr/local/cuda-8.0/bin/nvcc: Command not found
Makefile:63: recipe for target 'obj/GPU/GPUEngine.o' failed
make: *** [obj/GPU/GPUEngine.o] Error 127
sr. member
Activity: 443
Merit: 350
Hi

sorry for simple question (for some people) but can You write I mean step by step
how to install VanitySearch on Linux ie. Mint, Ubuntu etc.

First of all.
1. I downloaded archive from github https://github.com/JeanLucPons/VanitySearch/archive/1.17.tar.gz
2. I extracted this archive to my desktop
3. Then In my Linux Mint I opened terminal and I navigated to this folder ie. VanitySearch-1.17
4. Then I did put and run the command:
Code:
make
5. Don't know what next to open program and start generating new addresses

Thanks!

If you do not use CUDA, just run tthis comand:
$ make all

If you use CUDA (GPU device), you should compile in another way:
$ make gpu=1 ccap=20 all

where: gpu=1 is the number of your GPU device (gpu=0 is also possible for one device)
           ccap=20 is the compute capability depending on your GPU device

Find your device here https://en.wikipedia.org/wiki/CUDA and input the version in accordance with your device (for example 20 for version 2.0; 61 for version 6.1; etc)

As soon as you compile the program you can run it in the following way:

$ ./VanitySearch -t 0 -gpu 1TryMe

where -gpu means you use GPU, -t 0 means that you so not use CPU (0 threads)
"./" - important part to run the program in Linux  Wink
member
Activity: 93
Merit: 12
Hi

sorry for simple question (for some people) but can You write I mean step by step
how to install VanitySearch on Linux ie. Mint, Ubuntu etc.

First of all.
1. I downloaded archive from github https://github.com/JeanLucPons/VanitySearch/archive/1.17.tar.gz
2. I extracted this archive to my desktop
3. Then In my Linux Mint I opened terminal and I navigated to this folder ie. VanitySearch-1.17
4. Then I did put and run the command:
Code:
make
5. Don't know what next to open program and start generating new addresses

Thanks!
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
Nice work! Thank You Smiley
But i have one more question.
How to move the newly created file to a new location after every loop?
Really? Is it that hard to manually move the text files instead of automating it?  Cheesy
Ok, just add this line to the batch file's first three lines and %directory% after each %output%, it should look like this:
Code:
@set directory=C:\test\
Code:
.
.
.
.
set loop=0
:start
%command% -i %input% -o %directory%1%output%
set /a loop=%loop%+1
if "%loop%"=="100" goto next
goto start

:next
%command% -i %input% -o %directory%2%output%
set /a loop=%loop%+1
if "%loop%"=="200" goto next2
goto next
.
.
.

Make sure that 'test' folder under C:\ is already existing or it will fail to write.
member
Activity: 93
Merit: 12
Okay, as a workaround to the workaround  Tongue
I've constructed this batch file that should do the trick:

Copy the code below to a text file then rename it into "filename.bat", change the extension from 'txt' into 'bat'.
Create an input file with the same name as the 'input=' in the batch file containing a single line (not 100) of your desired prefix.
Remove "-gpu" if you don't have a supported Video Card.

Code:
@set input=1test.txt
@set output=result.txt
@set command=vanitysearch -stop -gpu

set loop=0
:start
%command% -i %input% -o 1%output%
set /a loop=%loop%+1
if "%loop%"=="100" goto next
goto start

:next
%command% -i %input% -o 2%output%
set /a loop=%loop%+1
if "%loop%"=="200" goto next2
goto next

:next2
%command% -i %input% -o 3%output%
set /a loop=%loop%+1
if "%loop%"=="300" goto next3
goto next2

:next3
%command% -i %input% -o 4%output%
set /a loop=%loop%+1
if "%loop%"=="400" goto next4
goto next3

:next4
%command% -i %input% -o 5%output%
set /a loop=%loop%+1
if "%loop%"=="500" goto next5
goto next4

:next5
%command% -i %input% -o 6%output%
set /a loop=%loop%+1
if "%loop%"=="600" goto next6
goto next5

:next6
%command% -i %input% -o 7%output%
set /a loop=%loop%+1
if "%loop%"=="700" goto next7
goto next6

:next7
%command% -i %input% -o 8%output%
set /a loop=%loop%+1
if "%loop%"=="800" goto next8
goto next7

:next8
%command% -i %input% -o 9%output%
set /a loop=%loop%+1
if "%loop%"=="900" goto next9
goto next8

:next9
%command% -i %input% -o 10%output%
set /a loop=%loop%+1
if "%loop%"=="1000" goto next10
goto next9

:next10
echo end

Output files will be '1result.txt', '2result.txt', '3result.txt'..... '10result.txt'; with 100 keys each.
Just edit the values of the first three lines (after the '=' sign) depending in your preferences (it's self-explanatory).

Nice work! Thank You Smiley
But i have one more question.
How to move the newly created file to a new location after every loop?

I tried this code:

Code:
:next2
%command% -i %input% -o 3%output%
set /a loop=%loop%+1
if "%loop%"=="300" goto next3
goto next2
move *.txt c:\test\

but it did't work Sad
jr. member
Activity: 41
Merit: 1
So good ccap is 70 for your hardware.
Did you get the same error message with ccap 70 ?
Could you try with cuda 10.0 ?


I made clean OS installation (Ubuntu 18.04 LTS) and now it works with cuda 10.2 drivers without any problem. Do you suggest better command for my system? I feel speed should be more ... ?




10.2 really? can u tell me the exact driver version? maybe nvidia patched something like a bug or so.. i would give it another try then..

did you also run -check and it was without errors ?

did you edit cuda config or used the one from source?
jr. member
Activity: 75
Merit: 2
Also, my laptop now makes a quiet sound while scanning, something like tac-tac-tac-tac-tac-tac every 5 seconds
That sounds like your HDD's "actuator arm" (slider head) tapping the disk (platters).
If it's an SSD, then it must be a barred fan that can still slip through or something because there are no other mechanical parts that can produce a "tac-tac-tac" sound.

The latter could slow-down your GPU because of cooling failure.


it does sound like a HDD working, exactly like that tapping sound, but my laptop actually has SSD.
also it gets extremely hot underneath after just 30 minutes so I guess it is a barred fan then
legendary
Activity: 2534
Merit: 6080
Self-proclaimed Genius
Also, my laptop now makes a quiet sound while scanning, something like tac-tac-tac-tac-tac-tac every 5 seconds
That sounds like your HDD's "actuator arm" (slider head) tapping the disk (platters).
If it's an SSD, then it must be a barred fan that can still slip through or something because there are no other mechanical parts that can produce a "tac-tac-tac" sound.

The latter could slow-down your GPU because of cooling failure.
Pages:
Jump to: