K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
June 03, 2013, 03:14:00 AM |
|
I'm not very familiar with C but I was going through the source code. I wanted to know where the address is generated. Like, suppose I run vanitygen and it finds an address I want, I wanna know the line that prints the address and its private key on the console. Thank you grep the source for printf
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
|
|
|
|
|
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
|
|
|
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
|
|
SinnerShanky
Newbie
Offline
Activity: 16
Merit: 0
|
|
June 03, 2013, 11:31:24 AM |
|
I'm not very familiar with C but I was going through the source code. I wanted to know where the address is generated. Like, suppose I run vanitygen and it finds an address I want, I wanna know the line that prints the address and its private key on the console. Thank you grep the source for printf I found printf, I want to extract only the bitcoin address from it because the output contains the private key and another line as well. Anyone knows how to do that?
|
|
|
|
K1773R
Legendary
Offline
Activity: 1792
Merit: 1008
/dev/null
|
|
June 03, 2013, 01:07:24 PM |
|
I'm not very familiar with C but I was going through the source code. I wanted to know where the address is generated. Like, suppose I run vanitygen and it finds an address I want, I wanna know the line that prints the address and its private key on the console. Thank you grep the source for printf I found printf, I want to extract only the bitcoin address from it because the output contains the private key and another line as well. Anyone knows how to do that? many ppls know how to do this, but this is a so simple task so you can do it urself.
|
[GPG Public Key]BTC/DVC/TRC/FRC: 1 K1773RbXRZVRQSSXe9N6N2MUFERvrdu6y ANC/XPM A K1773RTmRKtvbKBCrUu95UQg5iegrqyeA NMC: N K1773Rzv8b4ugmCgX789PbjewA9fL9Dy1 LTC: L Ki773RBuPepQH8E6Zb1ponoCvgbU7hHmd EMC: E K1773RxUes1HX1YAGMZ1xVYBBRUCqfDoF BQC: b K1773R1APJz4yTgRkmdKQhjhiMyQpJgfN
|
|
|
SinnerShanky
Newbie
Offline
Activity: 16
Merit: 0
|
|
June 03, 2013, 01:55:22 PM |
|
I'm not very familiar with C but I was going through the source code. I wanted to know where the address is generated. Like, suppose I run vanitygen and it finds an address I want, I wanna know the line that prints the address and its private key on the console. Thank you grep the source for printf I found printf, I want to extract only the bitcoin address from it because the output contains the private key and another line as well. Anyone knows how to do that? many ppls know how to do this, but this is a so simple task so you can do it urself. I can't seem to figure out the indexes in linebuf the address is stored in. Once someone tells me that, I'll figure out the rest myself.
|
|
|
|
funkymunky
|
|
June 03, 2013, 02:00:01 PM |
|
while running oclvanitygen -d 0 -p 0 -o output.txt 1R results in C:\Users\admin\Desktop\vanitygen_catalyst\32>oclvanitygen -d 0 -o output.txt 1R Difficulty: 1353 Match idx: 0 CPU hash: b3b8b1f62fb59e659835af2b81238fd979ca7e15 GPU hash: 049ae2c66df6d65bb092caa95c759c0599542a13 Found delta: 7338843 Start delta: 1 [3.61 Mkey/s][total 7340032] M atch idx: 0 CPU hash: 22c34ee82b97f5b8af8ec9c7d2b9cd3b2e2b0421 GPU hash: 04afbde26e27f40663e0ce86223409a873019ff1 Found delta: 7335852 Start delta: 1 [5.32 Mkey/s][total 14680064] M atch idx: 0 CPU hash: 47aa2162ee34797c81c0799254d7b5b266e4d5f1 GPU hash: 049381dea7d7d0638e44a8f0d9f2bc6e10d3ca4c Found delta: 7326918 Start delta: 1 [6.09 Mkey/s][total 22020096] M atch idx: 0 CPU hash: 6635552c18744c27a9f1976801f8439e406abdc3 GPU hash: 04ae7a508a7e8087b54b0947d46186c8f330c875 Found delta: 7338098 Start delta: 1 [6.58 Mkey/s][total 29360128] ^
And it just goes on forever and ever. but if i do it with the cpu version it work for perfect in no time. i read through form and have not noticed any thing posted about this.
I've come across this too with a full uninstall of newer drivers (removal tool) and downgrading to 12.8. The only solution I can use to avoid the loop above is to run in safemode with the -S flag. This does run a lot slower than normal.... however it is still a lot faster than my CPU.
|
|
|
|
daemondazz
|
|
June 04, 2013, 06:35:27 AM |
|
I found printf, I want to extract only the bitcoin address from it because the output contains the private key and another line as well. Anyone knows how to do that?
Why would you only want the address? It's useless without the private key too?
|
Computers, Amateur Radio, Electronics, Aviation - 1dazzrAbMqNu6cUwh2dtYckNygG7jKs8S
|
|
|
funkymunky
|
|
June 04, 2013, 08:01:54 AM |
|
Sorry for the "basic" question...
Is there a way to have the results found within the Windows version using the -k command be sent directly to a file?
Thank you
|
|
|
|
Dabs
Legendary
Offline
Activity: 3416
Merit: 1912
The Concierge of Crypto
|
|
June 04, 2013, 08:05:59 AM |
|
Sorry for the "basic" question...
Is there a way to have the results found within the Windows version using the -k command be sent directly to a file?
Thank you
Use the -o switch. Like vanitygen -k -o filename.txt 1Dabs Then go to sleep. When you wake up, you have a text file with a bunch of private keys.
|
|
|
|
funkymunky
|
|
June 04, 2013, 11:00:40 AM |
|
Thank you Dabs Sorry for the "basic" question...
Is there a way to have the results found within the Windows version using the -k command be sent directly to a file?
Thank you
Use the -o switch. Like vanitygen -k -o filename.txt 1Dabs Then go to sleep. When you wake up, you have a text file with a bunch of private keys.
|
|
|
|
salfter
|
|
June 04, 2013, 08:29:09 PM Last edit: June 04, 2013, 08:46:19 PM by salfter |
|
If anyone is interested in generating compressed vanity addresses, see this Pull Request. salfter did the CPU side, and I commented with a link to my fork that includes his work and adds OpenCL support for the GPU side. Please be careful and verify that addresses you generate using my changes are correct before sending money to them. Just got a chance to try out your OpenCL changes. On my Ubuntu box, the new changes work like a champ. I'm still trying to get a 12.x driver on my Gentoo box, as 13.1 breaks oclvanitygen. I just brought x11-drivers/ati-drivers-12.10.ebuild back from the dead, updated with some patches that allow it to run with newer kernels. I have ATI driver 12.10 running on Linux 3.8.13, and with the 7750 in this box, the compressed-key oclvanitygen works with the -S flag (which it's always needed). I've integrated your oclvanitygen changes into my fork. BTW, those of you with Gentoo mining rigs might want to look at my overlay. In addition to the older ATI driver, I have a bunch of ebuilds for Bitcoin, Litecoin, and some other altcoins in there. (Haven't gotten around to a vanitygen ebuild yet, though...should probably fix that.) Edit: One thing I noticed is that your oclvanitygen only appears to find Bitcoin keys. The original appears to have the same behavior, so your changes didn't cause a regression. Try this: ./oclvanitygen -D 0:0 -S -X 48 L This should find a Litecoin key. Instead, it runs forever. Is this a known limitation of oclvanitygen?
|
|
|
|
jaywaka2713
Sr. Member
Offline
Activity: 266
Merit: 250
aka 7Strykes
|
|
June 05, 2013, 01:09:29 AM |
|
./oclvanitygen -D 0:0 -S -X 48 L This should find a Litecoin key. Instead, it runs forever. Is this a known limitation of oclvanitygen? Use ./oclvanitygen -D 0:0 -S -X48 -i Light You cannot have a space after the -X flag.
|
|
|
|
scintill
|
|
June 05, 2013, 01:54:45 AM |
|
Use ./oclvanitygen -D 0:0 -S -X48 -i Light You cannot have a space after the -X flag. It seems to work with or without space for me. But this example showed me the bug seems to be with certain (short?) litecoin prefixes, not litecoin prefixes in general. Your example worked, as did Ligh and Lig, but Li and L just sit there hashing when they should be finding many addresses per second. Lp worked even though Li didn't. Can anyone confirm this?
|
1SCiN5kqkAbxxwesKMsH9GvyWnWP5YK2W | donations
|
|
|
BitHits
|
|
June 05, 2013, 02:15:05 AM |
|
I think i may have found a bug .. C:\Users\Administrator\Desktop\vanitygen-0.22-win>vanitygen64 -v -X 30 -k -o C:\Users\Administrator\Desktop\vanitygen-0.22-win\DiGi.txt D Prefix difficulty: 1 D Difficulty: 1 Using 2 worker thread(s) Pattern: D .. Address: DGzvrWnrp3ZDSBeKHQ3Nb7Ynj72Z9eDkpq .. Pattern: D Address: DHCESDCKogVwKjtjH1tB66PzGZcNWbmigF ... C:\Users\Administrator\Desktop\vanitygen-0.22-win>vanitygen64 -v -X 30 -k -o C:\Users\Administrator\Desktop\vanitygen-0.22-win\DiGi.txt DiGiHiT Prefix 'DiGiHiT' not possible Hint: valid bitcoin addresses begin with "1"
C:\Users\Administrator\Desktop\vanitygen-0.22-win>
|
Free BTC http://beta.BitHits.info BTC 1DNNERMT5MMusfYnCBfcKCBjBKZWBC5Lg2 DGC DH2Pm4VXxsTeqUYZkEySU1c8p5TLvuLe8u LTC LP2QiL1pnsaKVX5Qa811pFJuFL8FxkxWRz
|
|
|
jaywaka2713
Sr. Member
Offline
Activity: 266
Merit: 250
aka 7Strykes
|
|
June 05, 2013, 02:36:48 AM |
|
I think i may have found a bug .. C:\Users\Administrator\Desktop\vanitygen-0.22-win>vanitygen64 -v -X 30 -k -o C:\Users\Administrator\Desktop\vanitygen-0.22-win\DiGi.txt D Prefix difficulty: 1 D Difficulty: 1 Using 2 worker thread(s) Pattern: D .. Address: DGzvrWnrp3ZDSBeKHQ3Nb7Ynj72Z9eDkpq .. Pattern: D Address: DHCESDCKogVwKjtjH1tB66PzGZcNWbmigF ... C:\Users\Administrator\Desktop\vanitygen-0.22-win>vanitygen64 -v -X 30 -k -o C:\Users\Administrator\Desktop\vanitygen-0.22-win\DiGi.txt DiGiHiT Prefix 'DiGiHiT' not possible Hint: valid bitcoin addresses begin with "1"
C:\Users\Administrator\Desktop\vanitygen-0.22-win> Remove the space after the -X flag to change it to -X30. That will fix the script.
|
|
|
|
TheJackster
Newbie
Offline
Activity: 53
Merit: 0
|
|
June 05, 2013, 09:11:56 AM |
|
Hi,
Sorry if this has already been asked / answered.
How can I set vanity to generate random or a set of addresses based on a query and save all of the results to a text file?
Thanks,
Jack
|
|
|
|
jaywaka2713
Sr. Member
Offline
Activity: 266
Merit: 250
aka 7Strykes
|
|
June 05, 2013, 04:51:52 PM |
|
Hi,
Sorry if this has already been asked / answered.
How can I set vanity to generate random or a set of addresses based on a query and save all of the results to a text file?
Thanks,
Jack
I'm unsure if I understand your request, but say you want it to generate from a list. 1Bitcoin 1Whatever 1Example
Well you will put each prefix on its own line in a text file, place that file in the same directory vanitygen is in, and use the '-f textfile.txt' flag. There is also a use for using the -f flag like this: '-f -' but I don't know what that does. Generates addresses from stdin, but my knowledge on that is limited.
|
|
|
|
Teka
|
|
June 05, 2013, 09:48:21 PM |
|
I've been using this software for a while now and I have to say that its pretty good. Its a shame that it takes ages to create some vanity addresses.
|
|
|
|
LtPaxIV
|
|
June 05, 2013, 10:50:28 PM |
|
Hi,
Sorry if this has already been asked / answered.
How can I set vanity to generate random or a set of addresses based on a query and save all of the results to a text file?
Thanks,
Jack
if u want to use a set make a *.txt file in same directory as vanity looking like this 1fsvbfs 1fsafreaw 1fsgrsbvr then use the -f flag >>> oclvanitygen -f file.txt if u want vanity to write the matches to a file use the -o flag with a filename u want >>>>>oclvanitygen -f file.txt -o testfile Example command lines (oclvanitygen, device 0, default platform): Search for exact prefix 1ABCDE, keep searching after first match is found (-k): >oclvanitygen -d 0 -k 1ABCDE Search for prefix 1ABCDE in any combination of upper or lower case (-i): >oclvanitygen -d 0 -i 1ABCDE Search for ABCD anywhere in address (only supported on CPU vanitygen) (-r): >vanitygen -r ABCD Search for prefix 1ABCDE, use a seed file to make address generation more secure and random (-s): >oclvanitygen -d 0 -s RandomSeedFile.txt 1ABCDE Search for prefix 1ABCDE, keep searching after first match is found, and save all found address to a file: >oclvanitygen -d 0 -k -o GeneratedAddresses.txt 1ABCDE Search for many prefixes at once using a text file listing them (newline after each prefix including last): >oclvanitygen -d 0 -k -f PrefixList.txt Use all options above including case-insensitive search, and turn on verbose mode for more information: >oclvanitygen -d 0 -v -i -k -f PrefixList.txt -o GeneratedAddresses.txt -s RandomSeedFile.txt When specifying a case-insensitive address prefix on the command line or in a text file list, you must still only use valid Base58 characters. This means you must only use lower-case i or o, and only upper-case L, or you will get an error. Bad: 1celeron, 1CELERON Good: 1ceLeron, 1CELERoN
|
|
|
|
vlees
|
|
June 06, 2013, 02:52:11 PM |
|
I never got oclvanitygen to work on my GPU (only CPU which gets 750kkeys/s) so I read here that I should downgrade to AMD Catalyst 12.8. So I did that, but still oclvanitygen does not work on my GPU: Device: Cayman Vendor: Advanced Micro Devices, Inc. (1002) Driver: 1084.4 (VM) Profile: FULL_PROFILE Version: OpenCL 1.2 AMD-APP (1084.4) Max compute units: 22 Max workgroup size: 256 Global memory: -2147483648 Max allocation: 536870912 OpenCL compiler flags: Compiling kernel, can take minutes...LLVM ERROR: Cannot select: 0x549e808: i8 = setcc 0x5494840, 0x5499070, 0x549a188 [ID=20] 0x5494840: i32 = AMDILISD::ADD 0x5499070, 0x54997e0 [ID=19] 0x5499070: i32,ch = CopyFromReg 0x418c8d8, 0x5499428 [ORD=166] [ID=15] 0x5499428: i32 = Register %vreg33 [ORD=166] [ID=3] 0x54997e0: i32,ch = load 0x418c8d8, 0x54948c8, 0x54928b8<LD4[getelementptr i nbounds ([8 x i32] addrspace(2)* @modulus, i32 0, i32 0)]> [ORD=165] [ID=18] 0x54948c8: i32 = Constant<192> [ORD=164] [ID=13] 0x54928b8: i32 = undef [ORD=165] [ID=2] 0x5499070: i32,ch = CopyFromReg 0x418c8d8, 0x5499428 [ORD=166] [ID=15] 0x5499428: i32 = Register %vreg33 [ORD=166] [ID=3] Anyone knows how to fix this? Anyone?
|
BEEP BEP
|
|
|
salfter
|
|
June 06, 2013, 10:02:46 PM |
|
I never got oclvanitygen to work on my GPU (only CPU which gets 750kkeys/s) so I read here that I should downgrade to AMD Catalyst 12.8. So I did that, but still oclvanitygen does not work on my GPU: Compiling kernel, can take minutes...LLVM ERROR: Cannot select: 0x549e808: i8 = ... Anyone knows how to fix this? I was getting a similar error from my 7750 when I was running it with 13.1. It works fine with 12.10, though. I'd give that version a shot.
|
|
|
|
|