Bitcoin Forum
April 23, 2024, 07:05:50 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 [101] 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 ... 191 »
  Print  
Author Topic: Vanitygen: Vanity bitcoin address generator/miner [v0.22]  (Read 1152801 times)
Kangaderoo
Member
**
Offline Offline

Activity: 89
Merit: 11


View Profile
February 26, 2015, 08:13:50 PM
 #2001

Quote
Shouldn't every ECDSA key -> pubkey -> hashamahash -> base58check- > address be valid?
This is correct, every key should give a valid address... that is if the all calculations were fully completed.
vanitygen doesn't complete address for the check-sum part. These last bytes are all set to 0 to make sure the length is correct.
The first part of the generated address ~25 chars will not change due to this check-sum.
By skipping this part a lot of speed is gained when searching for longer match.
(this part is actually always executed in the -regex mode, the speed difference can be observed)

Only when a match is found the checksum is calculated en and the WIF and final address is stored.
When matching a valid bitcoin address i.e. just the leading "1" this match requires the check-sum to be generated.
This part is currently not as optimized for speed as the generator part; for the function of vanitygen this optimization is actually not needed.

On the CPU the hashing is done in batches of 256 ECDSA keys, I have to recheck the code but I think that when a match is found
the remaining 255 might no longer be checked/validated.
The ECDSA part of the generation is more than 70% of the cpu time.
Probably the reason the "1" and "1A" are relative equal in speed, statistically each batch will have about 10 "1A" matches.

The ECSDA engine and the hashing up to the checksum is very optimized.
When optimizing the checksum and base58 part as well, skipping the match check, just storing all results to file would make
this prog a faster 'any address' generator.




 

Slow but steady Android coin mining with NeoNeonMiner
BTC:1NeoArmnGyWHKfbje9JNWqw3tquMY7jHCw
1713855950
Hero Member
*
Offline Offline

Posts: 1713855950

View Profile Personal Message (Offline)

Ignore
1713855950
Reply with quote  #2

1713855950
Report to moderator
1713855950
Hero Member
*
Offline Offline

Posts: 1713855950

View Profile Personal Message (Offline)

Ignore
1713855950
Reply with quote  #2

1713855950
Report to moderator
The block chain is the main innovation of Bitcoin. It is the first distributed timestamping system.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1713855950
Hero Member
*
Offline Offline

Posts: 1713855950

View Profile Personal Message (Offline)

Ignore
1713855950
Reply with quote  #2

1713855950
Report to moderator
TheRealSteve
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500

FUN > ROI


View Profile
February 26, 2015, 08:43:58 PM
 #2002

On the CPU the hashing is done in batches of 256 ECDSA keys, I have to recheck the code but I think that when a match is found the remaining 255 might no longer be checked/validated.
That would certainly explain the ~0.39% (1/256*100%) Smiley

As for the rest: yeah, as expected.  If organofcorti isn't already working on it himself, I'm sure he'd appreciate somebody making the appropriate changes.
I know just enough about the code to be dangerous, so count me out.  Happy to throw in for a bounty though - guy does nice things with data collection/analysis/visualization

Kangaderoo
Member
**
Offline Offline

Activity: 89
Merit: 11


View Profile
February 26, 2015, 09:00:42 PM
 #2003


Probably the reason the "1" and "1A" are relative equal in speed, statistically each batch will have about 10 "1A" matches.

Just to correct myself, 256 /58 (base 58) is just over 4 not 10  Grin

Slow but steady Android coin mining with NeoNeonMiner
BTC:1NeoArmnGyWHKfbje9JNWqw3tquMY7jHCw
Kangaderoo
Member
**
Offline Offline

Activity: 89
Merit: 11


View Profile
February 26, 2015, 09:27:09 PM
 #2004

I did a little code review,
The following can be found in the 'vanitygen.c' file
Code:
   		   vxcp->vxc_delta=vxcp->vxc_delta-step;
   for (j=0;j<step;j++){
    memcpy(vxcp->vxc_binres+1,MDBufChar+j*32,20);
    switch (test_func(vxcp)) {
case 1:
npoints = 0;
rekey_at = 0;
i = nbatch;
j = step;
break;
case 2:
break;
goto out;
default:
break;
}
    vxcp->vxc_delta++;
   }
}
The test_func(vxcp) returns a "1" when a match is found, all counters are reset, so it is not evaluating the remaining codes.

When using the -k (keep searching) and the -q (just don't want to many screen updates) it seems that all 256 keys in the batch are evaluated.
if the following lines are remarked.
Code:
					case 1:
// remark npoints = 0;
// remark rekey_at = 0;
// remark i = nbatch;
// remark        j = step;
break;

Since it is now determining the checksum for each match the speed is not increased by 256  Sad
but on my system the output file is about twice the size after a short run.

Slow but steady Android coin mining with NeoNeonMiner
BTC:1NeoArmnGyWHKfbje9JNWqw3tquMY7jHCw
organofcorti
Donator
Legendary
*
Offline Offline

Activity: 2058
Merit: 1007


Poor impulse control.


View Profile WWW
February 27, 2015, 05:18:10 AM
 #2005

Thanks Kangaderoo, TheRealSteve and K1773R. You've given me some things to try now, I'll see how it goes.

Bitcoin network and pool analysis 12QxPHEuxDrs7mCyGSx1iVSozTwtquDB3r
follow @oocBlog for new post notifications
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
March 02, 2015, 11:19:27 PM
 #2006

I've made a vanitygen ebuild (for Gentoo) available:

https://github.com/salfter/portage

It's under app-crypt.  If the opencl USE flag is enabled, oclvanitygen is built as well.  The ebuild uses my vanitygen fork, which includes nonnakip's patch for newer Radeons:

https://github.com/salfter/vanitygen

So far, I've tested it on an AMD A4-3300.  oclvanitygen (using the latest fglrx driver in Portage) runs about 4x faster than vanitygen.

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
DonQuijote
Legendary
*
Offline Offline

Activity: 1551
Merit: 1002


♠ ♥ ♣ ♦ < ♛♚&#


View Profile
March 02, 2015, 11:35:55 PM
 #2007

~/vanitygen $ env LD_LIBRARY_PATH=./sdklib ./oclvanitygen -d 0:1 -d 0:2 -d 0:3 -k 1Nasty
Difficulty: 259627881
Pattern: 1Nasty                                                               
Address: 1Nastyf64qw5xXuBD6ybVLvTVhncLmU9zb
Privkey: 5JizejJoHntiZbG6JHofV97559RjeeYGbHKAwUj63tNrMrMpWri
[25.01 Mkey/s][total 96468992][Prob 9.2%][50% in 6.2s][Found 1]                ^C
~/vanitygen $

didn't work still the program sees 1 vga only.

i did this to see what the programs sees:
~/vanitygen $ env LD_LIBRARY_PATH=./sdklib ./oclvanitygen -d 3:1 -k 1Nasty
Difficulty: 259627881
Available OpenCL platforms:
0: [Advanced Micro Devices, Inc.] AMD Accelerated Parallel Processing
  0: [Advanced Micro Devices, Inc.] Tahiti
  1: [AuthenticAMD] AMD Athlon(tm) II X2 270 Processor
~/vanitygen $

it sees 1 vga only? :/

Did you check the drivers? Is everything updated? Does your PC detects 3 VGAs?

   ~~MZ~~

(they are not in crossfire, i will try to install drivers again i think ). I dont know how to check in linux if the pc reads 4 vga. Is there any program for that? like... aida64? but for linux :p
i followed the guide in page 75, meaby is something wrong wrriten here:

# This is the procedure to get oclvanitygen running with AMD Raedon 7xxx
# on a fresh install of Ubuntu 64-bit. (tested with Ubuntu 12.04 and 14.04)

# install tools, dependencies and driver
sudo add-apt-repository "deb http://archive.ubuntu.com/ubuntu $(lsb_release -sc) restricted"
sudo apt-get update
sudo apt-get install build-essential git libssl-dev libpcre3-dev opencl-headers fglrx-dev
sudo reboot

# get source and compile oclvanitygen
git clone https://github.com/samr7/vanitygen.git
cd vanitygen
wget https://nastyfans.org/download/patch-oclvanitygen-amd.diff
patch -p1 < patch-oclvanitygen-amd.diff
wget https://nastyfans.org/download/AMD-APP-SDK-v2.7-lib-lnx64.tar.gz
mkdir sdklib
tar -xzvf AMD-APP-SDK-v2.7-lib-lnx64.tar.gz -C sdklib
make oclvanitygen

# run oclvanitygen (from inside vanitygen directory)
env LD_LIBRARY_PATH=./sdklib ./oclvanitygen -D 0:0 -k 1Nasty

Is it working now?
Is it the last "working guide"
Thanks

THE INGENIOUS GENTLEMAN DON QUIXOTE OF LA MANCHA
♠ ♥ ♣ ♦ < ♛♚♝♞♜ BTC tip: 39gUUFdJBdKWXnLoh3PMNX9eUz3DwakBKq
salfter
Hero Member
*****
Offline Offline

Activity: 651
Merit: 501


My PGP Key: 92C7689C


View Profile WWW
March 13, 2015, 04:38:01 PM
 #2008

I've made a vanitygen ebuild (for Gentoo) available:

https://github.com/salfter/portage

It's under app-crypt.  If the opencl USE flag is enabled, oclvanitygen is built as well.  The ebuild uses my vanitygen fork, which includes nonnakip's patch for newer Radeons:

https://github.com/salfter/vanitygen

So far, I've tested it on an AMD A4-3300.  oclvanitygen (using the latest fglrx driver in Portage) runs about 4x faster than vanitygen.

These have now been updated so that calc_addrs.cl gets loaded from /usr/lib/oclvanitygen and the object code generated at runtime from it gets saved to /tmp.  This makes oclvanitygen nearly as easy to use as vanitygen, as you don't need to keep these files in your home directory (or whatever).

Tipjars: BTC 1TipsGocnz2N5qgAm9f7JLrsMqkb3oXe2 LTC LTipsVC7XaFy9M6Zaf1aGGe8w8xVUeWFvR | My Bitcoin Note Generator | Pool Auto-Switchers: zpool MiningPoolHub NiceHash
Bitgem Resources: Pool Explorer Paper Wallet
onewiseguy
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
March 14, 2015, 05:28:52 PM
 #2009

Does this vanity gen still work?
TheRealSteve
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500

FUN > ROI


View Profile
March 14, 2015, 06:03:28 PM
 #2010

Does this vanity gen still work?
That's a question that needs expanding.  What exactly are you trying to get an answer to?

Can you still run vanitygen?  Yes.
Can you still use vanity addresses?  Of course.
Can you still run oclvanitygen?  Might depend on your graphics card.  Works fine here.

tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1076


I may write code in exchange for bitcoins.


View Profile
March 14, 2015, 06:07:55 PM
 #2011

Does this vanity gen still work?

I don't have any problem running vanitygen, ie it works for me.  Did you experience some issue with it?
mitus-2
Full Member
***
Offline Offline

Activity: 224
Merit: 100


View Profile
March 14, 2015, 06:08:52 PM
 #2012

Does this vanity gen still work?

sure it works fine
onewiseguy
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
March 14, 2015, 06:13:03 PM
 #2013

Does this vanity gen still work?
That's a question that needs expanding.  What exactly are you trying to get an answer to?

Can you still run vanitygen?  Yes.
Can you still use vanity addresses?  Of course.
Can you still run oclvanitygen?  Might depend on your graphics card.  Works fine here.


sorry :/ meant no stealing no back doors.

and can it be used on mac:)
tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1076


I may write code in exchange for bitcoins.


View Profile
March 14, 2015, 06:14:59 PM
 #2014

Does this vanity gen still work?
That's a question that needs expanding.  What exactly are you trying to get an answer to?

Can you still run vanitygen?  Yes.
Can you still use vanity addresses?  Of course.
Can you still run oclvanitygen?  Might depend on your graphics card.  Works fine here.


sorry :/ meant no stealing no back doors.

and can it be used on mac:)

No back doors.  But this is an open-source program so you can download the source and see for yourself.  As I recall, I downloaded a source tarball and built it (I don't know if they distribute binaries).

As far as running on mac, I would guess you'll have luck.  I've only run it on GNU/Linux but given the *nix similarities I would suppose you'll be fine.
onewiseguy
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
March 14, 2015, 06:15:35 PM
 #2015

Does this vanity gen still work?

I don't have any problem running vanitygen, ie it works for me.  Did you experience some issue with it?

Better question is there a img file for mac already to run Smiley
onewiseguy
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500



View Profile
March 14, 2015, 06:17:22 PM
 #2016

Does this vanity gen still work?
That's a question that needs expanding.  What exactly are you trying to get an answer to?

Can you still run vanitygen?  Yes.
Can you still use vanity addresses?  Of course.
Can you still run oclvanitygen?  Might depend on your graphics card.  Works fine here.


sorry :/ meant no stealing no back doors.

and can it be used on mac:)

No back doors.  But this is an open-source program so you can download the source and see for yourself.  As I recall, I downloaded a source tarball and built it (I don't know if they distribute binaries).

As far as running on mac, I would guess you'll have luck.  I've only run it on GNU/Linux but given the *nix similarities I would suppose you'll be fine.


thanks checking now. Appreciate the response.  I would pay for some one to do it since i would think it will take a while on a mac. but afraid of private key being used :/  any legit services out there?
TheRealSteve
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500

FUN > ROI


View Profile
March 14, 2015, 06:27:30 PM
 #2017

sorry :/ meant no stealing no back doors.
and can it be used on mac:)
Good questions! Smiley

The official repo has no back doors last I checked, which is a week-ish ago.  You'd have to do a diff between any of the third party ones. and the official one to double-check if any of those contain any changes other than optimizations/etc.  I do recommend using one that's more actively being maintained, like salfter's, or an earlier one like WyseNinja's

Although I don't know off-hand about any published OS X binaries, the source code comes with a Makefile that includes OS X support.  Should just be a matter of downloading the repo and running 'make'; though that may require further steps (alternative steps).

tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1076


I may write code in exchange for bitcoins.


View Profile
March 14, 2015, 06:28:52 PM
 #2018

Does this vanity gen still work?
That's a question that needs expanding.  What exactly are you trying to get an answer to?

Can you still run vanitygen?  Yes.
Can you still use vanity addresses?  Of course.
Can you still run oclvanitygen?  Might depend on your graphics card.  Works fine here.


sorry :/ meant no stealing no back doors.

and can it be used on mac:)

No back doors.  But this is an open-source program so you can download the source and see for yourself.  As I recall, I downloaded a source tarball and built it (I don't know if they distribute binaries).

As far as running on mac, I would guess you'll have luck.  I've only run it on GNU/Linux but given the *nix similarities I would suppose you'll be fine.


thanks checking now. Appreciate the response.  I would pay for some one to do it since i would think it will take a while on a mac. but afraid of private key being used :/  any legit services out there?

Well, yes, I don't know how to sort that out because if I or anyone else ran this program for you then by definition we'd be finding your priv/public key and you'd need to get that info from us. However, consider this: the vanity address you want will take longer (on average) to find the longer the vanity string is, BUT, you might just get lucky.  vanitygen randomly searches and so it's totally possibly (but improbable) to find a long vanity string very soon.  How long is the vanity string you're trying to find?  I was able to find 5 and 6 character vanity strings in a half day or so on a low-power, portable laptop.
TheRealSteve
Hero Member
*****
Offline Offline

Activity: 686
Merit: 500

FUN > ROI


View Profile
March 14, 2015, 06:44:54 PM
 #2019

thanks checking now. Appreciate the response.  I would pay for some one to do it since i would think it will take a while on a mac. but afraid of private key being used :/  any legit services out there?
Actually, yes.  ANY service that lets you use your own public key* in a split key generation method.
The split key generation method ensures that you can get your vanity address without the person generating it knowing what the private key for that address is, but you will know.  Vanitygen includes support for this.

* Note that this very specifically excludes any services that offer to generate that key for you.  Even if they pinkie swear not to store it on their servers or anything like that.

For more information, see: https://bitcointalk.org/index.php?topic=81865.msg901491#msg901491

tspacepilot
Legendary
*
Offline Offline

Activity: 1456
Merit: 1076


I may write code in exchange for bitcoins.


View Profile
March 14, 2015, 06:48:19 PM
 #2020

Thanks therealsteve, for correcting me there.  I had a feeling I had seen something of this sort before but I guess I discounted it without actually looking around.  ppreciate you setting the record straight and providing a link to the appropriate system (I'm reading about it now).
Pages: « 1 ... 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 [101] 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 ... 191 »
  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!