Giter VIP home page Giter VIP logo

vanitygen-plusplus's People

Contributors

10gic avatar angelts avatar aolin480 avatar askz avatar brakmic avatar cbrunnkvist avatar charlesrocket avatar coredev333 avatar cryptorclub avatar cybersensei1 avatar dabs64 avatar deswurstes avatar dydysy avatar easmith avatar exploitagency avatar flewkey avatar guggero avatar ilovelinux avatar jincoin avatar jwrb avatar k06a avatar mikeyb avatar n4m3z avatar ofek avatar penple03 avatar pmarreck avatar randolf avatar rav3npl avatar slorunner avatar yomo3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vanitygen-plusplus's Issues

./ocl... not finding device issue...

When executing from Ubuntu terminal:

Prefix difficulty: 16777216 1111
Difficulty: 16777216
Could not open any device
Available OpenCL platforms:
0: [The pocl project] Portable Computing Language
0: [GenuineIntel] pthread-Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz, endian little: true
1: [Advanced Micro Devices, Inc.] AMD Accelerated Parallel Processing
0: [Advanced Micro Devices, Inc.] Hawaii, endian little: true
1: [Advanced Micro Devices, Inc.] Hawaii, endian little: true

I set the platform -p arg to 1, and same error, to 0 and same error....

./vanitygen++ is working no errors.

Obviously I would like to take advantage of my GPU's. Currently installed are the amdgpu-pro drivers with opencl=legacy and headless. It compiled with no errors and built the binaries.
hashcat -I works with the GPU's using opencl, and the output of hashcat -I is as follows:

OpenCL Info:

Platform ID #1
Vendor : Advanced Micro Devices, Inc.
Name : AMD Accelerated Parallel Processing
Version : OpenCL 2.1 AMD-APP (3188.4)

Device ID #1
Type : GPU
Vendor ID : 1
Vendor : Advanced Micro Devices, Inc.
Name : Hawaii
Version : OpenCL 1.2 AMD-APP (3188.4)
Processor(s) : 44
Clock : 1000
Memory : 2305/2920 MB allocatable
OpenCL Version : OpenCL C 1.2
Driver Version : 3188.4

Device ID #2
Type : GPU
Vendor ID : 1
Vendor : Advanced Micro Devices, Inc.
Name : Hawaii
Version : OpenCL 1.2 AMD-APP (3188.4)
Processor(s) : 44
Clock : 1000
Memory : 3251/4075 MB allocatable
OpenCL Version : OpenCL C 1.2
Driver Version : 3188.4

Platform ID #2
Vendor : The pocl project
Name : Portable Computing Language
Version : OpenCL 1.2 pocl 1.4, None+Asserts, LLVM 9.0.1, RELOC, SLEEF, DISTRO, POCL_DEBUG

Device ID #3
Type : CPU
Vendor ID : 128
Vendor : GenuineIntel
Name : pthread-Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
Version : OpenCL 1.2 pocl HSTR: pthread-x86_64-pc-linux-gnu-skylake
Processor(s) : 8
Clock : 4200
Memory : 4096/13898 MB allocatable
OpenCL Version : OpenCL C 1.2 pocl
Driver Version : 1.4

So, clearly its not an opencl issue on my side, so it must be something I need to config in the Makefile perhaps?

Any help with this issue is greatly appreciated.

/Zap

Release files

Please add the binary releases. It will be very helpful. Thanks

Memory Issue?

Hi,

Just compiled vanitygen-plusplus on Ubuntu 22.04 LTS (GNU/Linux 5.15.0-25-generic x86_64) OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)

make and make all both compiled without any errors.

vanitygen is working:
@Vanity:~/vanitygen-plusplus$ ./vanitygen++ -F p2tr bc1ptest
Pattern: bc1ptest
BTC Address: bc1ptestscwxw6d2qxsf5f07vjsn5n7eqe6m0pxxlaafwjlwggs890ss6ajy0x
BTC Privkey (hex): ba74710c1e62172aa618f135aef713b28869178875835d7de28696b7c0671dd7

But if I try for example 7 characters the process stops with a "Killed" message.
@Vanity:~/vanitygen-plusplus$ ./vanitygen++ -F p2tr bc1test123
Pattern: bc1test123
[4.53 Kkey/s][total 8832840] Killed

On the console (of my VM) I see the message: Out of memory: Killed process xxx (vanitygen++) total-vm:16228844Kb
I've raised the assigned memory from 12gb where is stops after approximate [total 6568229] attempts
with 16Gb if stops after [total 8832840] attempts.
On the VM I see the memory usage rise evenly till it hits 100%

Also did some testing with (native witness) /vanitygen++ -F p2wpkh but have the same issue.
@Vanity:~/vanitygen-plusplus$ ./vanitygen++ -F p2wpkh bc1qtest123
Pattern: bc1qtest123
[6.53 Kkey/s][total 8838793] Killed

Any help is appreciated.

Add support for CHX - WeOwn (two byte version byte)

Hi is it possible to use the tool to generate addresses for chains using a 2 byte prefix? e.g CHX / WeOwn;

BIP32 Derivation Path: m/44'/25718'/0'/0
Prefix: CH / 0x065A (Hex)

Crypto details from devs:
https://github.com/OwnMarket/OwnBlockchain/blob/master/Docs/Cryptography/Cryptography.md

Details below from https://github.com/satoshilabs/slips/blob/master/slip-0044.md

Coin type Path component (coin_type') Symbol Coin
25718 0x80006476 CHX WeOwn

I tried & failed to get correct values working for Address base58 version (prefix) & Private key base58 version (prefix) any idea how to derive this information?

Read from text file

Read millions of private keys from text file hash is pregenerated just do the conversion to compressed and uncompressed addresses and private keys save the converted result to text file this can also include pattern matching if need be since we dont want to save millions of those this can also have flags if you want to all the results -s or the results whose pattern matches to the pattern you input -sp.

question about case -Z 0000000000000000000000000000000000000000000000004000000000000000

hi to all, i want to get (for example 4 addresses) in order starting from 0000000000000000000000000000000000000000000000004000000000000000 using case -a4 and case -Z 0000000000000000000000000000000000000000000000004000000000000000 with the prefix 1N

./vanitygen++ -v -a4 -F compressed -o res.txt -Z 0000000000000000000000000000000000000000000000004000000000000000 1N

but i get 4 identical addresses

Prefix difficulty: 22 1N
Difficulty: 22
Using 2 worker thread(s)
Pattern: 1N
Pubkey (hex): 0439eac472601ecee0268e29334ae521de79520d38579b1e5943f94918f08d7b39e9435a4c01410221aaf936e42a97900323748fc88924f097a22d88cf47441cf1
Privkey (hex): 400000000000001A
Privkey (ASN1): 30740201010420000000000000000000000000000000000000000000000000400000000000001aa00706052b8104000aa1440342000439eac472601ecee0268e29334ae521de79520d38579b1e5943f94918f08d7b39e9435a4c01410221aaf936e42a97900323748fc88924f097a22d88cf47441cf1
Address: 1N7etpoFaQYxzb2fTTStC7Rd4S5oeBWvsY
Privkey: KwDiBf89QgGbjEhKnhXJuH7LrciVrZi3qYq1obWVDwSXmCfKkS66

I would like to receive

000000000000000000000000000000000000000000000000400000000000001A 1N7etpoFaQYxzb2fTTStC7Rd4S5oeBWvsY
000000000000000000000000000000000000000000000000400000000000001F 1NGrTnwtPq4uu1rpdK9wbwBAVtywaa4BdV
0000000000000000000000000000000000000000000000004000000000000034 1NVKJ1fxe8HSDkhMKb6svNPMYXaiWurXMR
000000000000000000000000000000000000000000000000400000000000004E 1NsY77WPsuB5awpmuguAoRbAgLLYCgiL7X

how can i do it ?, thanks in advance

Building fails

Here is my log from Linux Mint.

cc -ggdb -O3 -Wall   -c -o vanitygen.o vanitygen.c
cc -ggdb -O3 -Wall   -c -o pattern.o pattern.c
cc -ggdb -O3 -Wall   -c -o util.o util.c
cc -ggdb -O3 -Wall   -c -o groestl.o groestl.c
cc -ggdb -O3 -Wall   -c -o sha3.o sha3.c
cc -ggdb -O3 -Wall   -c -o ed25519.o ed25519.c
cc -ggdb -O3 -Wall   -c -o stellar.o stellar.c
cc -ggdb -O3 -Wall   -c -o base32.o base32.c
cc -ggdb -O3 -Wall   -c -o crc16.o crc16.c
cc -ggdb -O3 -Wall   -c -o simplevanitygen.o simplevanitygen.c
cc -ggdb -O3 -Wall   -c -o bech32.o bech32.c
cc -ggdb -O3 -Wall   -c -o segwit_addr.o segwit_addr.c
cc vanitygen.o pattern.o util.o groestl.o sha3.o ed25519.o stellar.o base32.o crc16.o simplevanitygen.o bech32.o segwit_addr.o -o vanitygen++ -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o keyconv.o keyconv.c
cc keyconv.o util.o groestl.o sha3.o -o keyconv -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread
cc -ggdb -O3 -Wall   -c -o oclvanitygen.o oclvanitygen.c
cc -ggdb -O3 -Wall   -c -o oclengine.o oclengine.c
In file included from /usr/include/CL/cl.h:32,
                 from oclengine.c:43:
/usr/include/CL/cl_version.h:34:9: note: #pragma message: cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)
   34 | #pragma message("cl_version.h: CL_TARGET_OPENCL_VERSION is not defined. Defaulting to 220 (OpenCL 2.2)")
      |         ^~~~~~~
oclengine.c: In function ‘vg_ocl_dump_info’:
oclengine.c:346:37: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘cl_ulong’ {aka ‘long unsigned int’} [-Wformat=]
  346 |  fprintf(stderr, "Global memory: %llu\n",
      |                                  ~~~^
      |                                     |
      |                                     long long unsigned int
      |                                  %lu
  347 |         vg_ocl_device_getulong(did, CL_DEVICE_GLOBAL_MEM_SIZE));
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         |
      |         cl_ulong {aka long unsigned int}
oclengine.c:348:38: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘cl_ulong’ {aka ‘long unsigned int’} [-Wformat=]
  348 |  fprintf(stderr, "Max allocation: %llu\n",
      |                                   ~~~^
      |                                      |
      |                                      long long unsigned int
      |                                   %lu
  349 |         vg_ocl_device_getulong(did, CL_DEVICE_MAX_MEM_ALLOC_SIZE));
      |         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |         |
      |         cl_ulong {aka long unsigned int}
cc oclvanitygen.o oclengine.o pattern.o util.o groestl.o sha3.o -o oclvanitygen++ -ggdb -O3 -Wall -lpcre -lcrypto -lm -lpthread -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: error: ld returned 1 exit status
make: *** [Makefile:42: oclvanitygen++] Error 1
Error: Process completed with exit code 2.

OpenSSL Issue

Hey I'm having an issue trying to generate Taproot and Cosmos addresses. I've compiled and installed Open SSL 3.0 and when i run openssl version It does in fact show that 3.0 is installed, it reads : Open SSL 3.0.0 17 Sept

However when I try to generate a Taproot or Cosmos address with Vanitygen it says
OpenSSL 3.0 (or higher) required to generate this address

also when running dpkg -l openssl I get:

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-fules/Unpacked/half-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/     Name                Version                              Architecture      Description
+++-============-===================-============-===================
ii     openssl		1.1.1n-0+deb11u3+rpt1	armhf		Secure Sockets Layer toolkit….

*** Running on Linux on a Raspberry Pi

XLM support for OCL

$ ./oclvanitygen++ -C XLM GA
Generating XLM Address
Cannot find coin XLM in base58prefix.txt

Expected results:

$ ./vanitygen++ -C XLM GA
Generating XLM Address
XLM patterns GA
XLM Address: GAV6JH4INWYGAN54TJTPPH4FLZBUANNNNLZDAR55DCCIEYLYQUAIX566

oclvanitygen freezing after approx 5 - 10 mins.

While trying to generate an ETH contract address it seems like the application is freezing after about 5 - 10 mins

  • logs stop refreshing
  • GPU continues running on full power
  • Tested if its just a logging issue by adding "-o result.txt" as param and letting it run for hours (where it should statistically find a solution with very high confidence / 30 min for 50% / having it run for +10 hrs) but it seems that it is really freezing because result.txt was empty
  • if the "challenge" is small everything works perfectly, e.g. contracts like 0xffffff.

I've tested the latest build, compiled with no errors, as well as the windows version (from the guy who ported it to vs19)

undefined reference to `vg_get_altcoin'

Hi, When trying to compile this on ubuntu i get

cc   oclvanitygen.o   -o oclvanitygen
/usr/bin/ld: oclvanitygen.o: in function `main':
/home/zycore/vanitygen-plusplus/oclvanitygen.c:204: undefined reference to `vg_get_altcoin'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:312: undefined reference to `vg_exec_context_new_key'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:313: undefined reference to `EC_KEY_get0_group'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:313: undefined reference to `EC_POINT_hex2point'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:316: undefined reference to `EC_KEY_free'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:426: undefined reference to `RAND_load_file'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:441: undefined reference to `vg_prefix_context_new'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:458: undefined reference to `vg_output_match_console'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:458: undefined reference to `vg_output_timing_console'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:469: undefined reference to `vg_context_add_patterns'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:517: undefined reference to `vg_ocl_context_new_from_devstr'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:487: undefined reference to `vg_context_add_patterns'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:477: undefined reference to `vg_read_file'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:438: undefined reference to `vg_regex_context_new'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:485: undefined reference to `vg_prefix_context_set_case_insensitive'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:487: undefined reference to `vg_context_add_patterns'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:477: undefined reference to `vg_read_file'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:499: undefined reference to `vg_read_password'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:505: undefined reference to `vg_check_password_complexity'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:544: undefined reference to `vg_ocl_enumerate_devices'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:547: undefined reference to `vg_context_start_threads'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:551: undefined reference to `vg_context_wait_for_completion'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:552: undefined reference to `vg_ocl_context_free'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:529: undefined reference to `vg_ocl_context_new'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:539: undefined reference to `vg_ocl_enumerate_devices'
/usr/bin/ld: /home/zycore/vanitygen-plusplus/oclvanitygen.c:190: undefined reference to `vg_print_alicoin_help_msg'
collect2: error: ld returned 1 exit status
make: *** [<builtin>: oclvanitygen] Error 1```

Any idea why this may be. 

Library not loaded

Hi again

I have another issue with mac M1. Thing is that i can run the script on my laptop Mac (to slow), but on Mac M1 i get library not loaded:

dyld[15981]: Library not loaded: /usr/local/opt/pcre/lib/libpcre.1.dylib
Referenced from: /Users/lusee/vanitygen-plusplus1/vanitygen++
Reason: tried: '/usr/local/opt/pcre/lib/libpcre.1.dylib' (no such file), '/usr/local/lib/libpcre.1.dylib' (no such file), '/usr/lib/libpcre.1.dylib' (no such file)

So i guess that /usr/...... /libpcre.1.dylib should be in /local directory but on M1 is at usr/bin/...

Is there way to fix this?

Thanks in advance

Segmentation fault (OpenCL version)

Hello! I tried to build your program on Debian 10 and Manjaro 20.2 with Nvidia GPU and if i used default cpu based version of vanitygen-plusplus it's worked but when i want to use OpenCL version it just said me "Segmentation fault" on both OS after Compiling kernel process.

Bug in OpenCL bn_subb_word() macro

Hey

I'm using parts of the excellent OpenCL bn_* code in another project, and I believe I found a bug in the unsigned subtraction routine.

Subtracting the following numbers gives an incorrect result.
0x6142036f1b5d75c79466cc64fc3d6a0c5b - 0x5642036f1bb4ceb22d8ae3101cbbd8271b = 0bffffffffa8a71566dbe954df8191e540

Clearly, the correct answer is 0x0affffffffa8a71566dbe954df8191e540. The problem occurs when current words of the two terms are equal and there's a carry (borrow) from the previous pair of words. Then the current word becomes zero and there should be another borrow from the next word. The second borrow is missing.

This illustrates the subtraction and the problem:

  00000061 42036f1b 5d75c794 66cc64fc 3d6a0c5b
- 00000056 42036f1b b4ceb22d 8ae3101c bbd8271b
  --------------------------------------------
  0000000a ffffffff a8a71566 dbe954df 8191e540
                  ^borrow
         ^borrow (missing)
               

I have a fix in my copy of the code and it's working correctly with various tests. I can provide a pull request, if you want.

#define bn_subb_word_original(r, a, b, t, c) do {	\
		t = a - (b + c);			\
		c = (!(a) && c) ? 1 : 0;    		\
		c |= (a < b) ? 1 : 0;			\
		r = t;					\
	} while (0)

#define bn_subb_word(r, a, b, t, c) do {		\
		t = a - (b + c);			\
		c = ((!a | (a == b)) & c) ? 1 : 0;	\
		c |= (a < b) ? 1 : 0;			\
		r = t;					\
	} while (0)

Cheers
Mladen

./oclvanitygen++ stop working on multi-GPU.

I will leave the following similar issues here from past versions of Vanitygen:

https://github.com/exploitagency/vanitygen-plus/issues/167

https://github.com/exploitagency/vanitygen-plus/issues/118

https://github.com/exploitagency/vanitygen-plus/issues/103

The issue is the following: during the search, at one moment the program stops working, freezing the terminal, but it does not crash. Running an nvidia-smi only 1 gpu is saturated while the others go to 0%.

[Quesion] Is it normal that oclvanitygen use 0% GPU?

I'm running with oclvanitygen on Windows but GPU usage is 0%. Is it normal?

image

Normal vanitygen gave me much fewer key/sec though. So seems like it is using GPU now, but why it uses so little GPU power is a question.

image

XLM support?

Would it be possible to add support to gen Stellar XLM addresses?

Issues running on Raspbian

Is there a way to compile this on Raspbian? I'm having issues despite (i think?) installing the correct prerequisite libraries. I managed to get it compiled on CentOS but am still having issues running the compiled program on my Raspbian OS.

It returns the following error
"./vanitygen++: error while loading shared libraries: libpcre.so.1: cannot open shared object file: No such file or directory"

I tried in stalling the library with:
sudo apt install libpcre3 libpcre3-dev

but still no luck.
I'm new here so any help would be greatly appreciated!

Line with ROI is invalid

./vanitygen++ -C LIST
...
RIC : Riecoin : R
Invalid line found in base58prefix.txt
RVN : Ravencoin : R

ROI got an extra space in the .txt file:

$ grep ^ROI base58prefix.txt 
ROI,ROIcoin: R,60,128

Issues building from ubuntu based distros

I was not able to compile the source from pop os. Always getting the following error:

cc -ggdb -O3 -Wall   -c -o simplevanitygen.o simplevanitygen.c
simplevanitygen.c:1:10: fatal error: openssl/core_names.h: No such file or directory
    1 | #include <openssl/core_names.h>
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [<builtin>: simplevanitygen.o] Error 1

I'm not sure if it's because I have a different version of OpenSSL. Here is a screenshot with the error and the packages I have installed.

image

I was able to compile vanitygen-plus without this problem.

The quiet flag does not suppress any output

Expected Behavior

I expect the Generating BTC Address line to not show up when the -q flag is passed.

./result/bin/vanitygen++ -C BTC -z -q 1

BTC,1,1FKEp7Y9qwLC7krMg9B6arEoMyXqBuqEtw,5K6Q5Z7q91ujRjfreyRAjt1BZbjyfvqcnBmwRPPkLG3rWf6D9b3

Current Behavior

./result/bin/vanitygen++ -C BTC -z -q 1

Generating BTC Address
BTC,1,1FKEp7Y9qwLC7krMg9B6arEoMyXqBuqEtw,5K6Q5Z7q91ujRjfreyRAjt1BZbjyfvqcnBmwRPPkLG3rWf6D9b3

Steps to Reproduce

  1. Install using nix-build:
FROM nixos/nix:2.12.0

RUN git clone https://github.com/10gic/vanitygen-plusplus.git \
    && cd vanitygen-plusplus \
    && git checkout c072eb57c68381c049ff915416bba8d3044f6073 \
    && nix-build
  1. Execute ./result/bin/vanitygen++ -C BTC -q 1

Context (Environment)

I would like to transmit the command output using socat so that I can use the results of this excellent program in my web application with minimal post processing required.

Implement different LTC address types

Similar to bitcoin, it would be useful to select different LTC address types

P2PKH - Legacy. Address starts with a L. (Currently supported)

P2SH - SegWit compatible. Address starts with a M.

Bech32 - SegWit native. Address starts with ltc1.

./vanitygen++ -C LTC results to XLM address generation

./vanitygen++ -C LTC (whatever)
defaults to XLM address?

in vanitygen.c it defaults to BTC address generation, then XLM, then any other crypto.
Removing the XLM else block doesnt help and LTC still results in XLM address generation.

I didnt start messing with things until it kept saying "Generating XLM address" so I dont think I fucked anything up.

Random or sequential in solving puzzle

Let's say I'm solving puzzle 64 and I will stop program after few hours then when i restart, will your program start at new/random point or it's same point every time?
If it's only start at 1point then how can we do random?

How to Install?

Hello. Please tell me how to install step by step? I have windows 11

Nix-build uses an older version of openssl

I've installed the openssl v3 package on my NIX operating system.

When I initiate the nix-build command an older version (v1) of openssl is pulled and the previously installed version of openssl is not being used.

Because of this problem it is currently not possible to generate BTC addresses in the p2wpkh or p2tr formats on NIX environments.

Trouble building in Win32

When i try to build to build the program in Win32, I get this error:

vanitygen.c(66): error C2057: expected constant expression
vanitygen.c(66): error c2466: cannot allocate an array of constant size 0
vanitygen.c(66): error c2133: 'ppnt': unknown size

The code is from:

vg_thread_loop(void *arg)
{
unsigned char hash_buf[128];
unsigned char *eckey_buf;
unsigned char hash1[32];

int i, c, len, output_interval;
int hash_len;

const BN_ULONG rekey_max = 10000000;
BN_ULONG npoints, rekey_at, nbatch;

vg_context_t *vcp = (vg_context_t *) arg;
EC_KEY *pkey = NULL;
const EC_GROUP *pgroup;
const EC_POINT *pgen;
const int ptarraysize = 256;
EC_POINT *ppnt[ptarraysize];

How do I fix the errors when I downloaded the file and didn't change anything in the code?

Mac mini M1 - 'openssl/sha.h' file not found

Do anyone knows how to resolve the issue for this error, on Mac mini M1:

-Mac-mini vanitygen-plusplus % make
cc -ggdb -O3 -Wall -I/usr/local/opt/openssl/include -c -o vanitygen.o vanitygen.c
vanitygen.c:26:10: fatal error: 'openssl/sha.h' file not found
#include <openssl/sha.h>
^~~~~~~~~~~~~~~

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.