Bitcoin Forum
November 28, 2026, 01:32:25 AM *
News: Latest Bitcoin Core release: 32.1 [Torrent]
 
   Home   Help Search Login Register More  
Pages: « 1 ... 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 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 »
  Print  
Author Topic: Vanitygen: Vanity bitcoin address generator/miner [v0.22]  (Read 1155343 times)
achow101
Moderator
Legendary
*
expert
Offline

Activity: 4032
Merit: 7911


Just writing some code


View Profile WWW
July 29, 2016, 05:19:38 PM
 #2801

Does it mean that vanitygen can generate addresses starting with 3, i.e. multisig addresses (which would seemingly break the concept of such an address)? If it can't, there is only one way that it can have anything to do with such addresses...

That it just has nothing to do with them

You can generate a Wallet Address starting (seemingly) with any letter of the Alphabet or Numeral.

http://cryptolife.net/upwg/

ONLY "1's" and "3's" can be used with BitCoin Wallets (glossing over the test mode version of BitCoin for the moment).

I've just rolled a Wallet Address 3fredGdggEbacP41PRkniuBwYV2DqSUkCv which has the right looking private key, so I might try installing it a little later on - If anyone wants to try sending it some dust, I won't object Wink

Code:
oclvanitygen64 -X 6 -D 0:0 -D 0:1 -o dump.txt 3fred
Difficulty: 4553521
Pattern: 3fred
Address: 3fredGdggEbacP41PRkniuBwYV2DqSUkCv
The only way that you should be able to generate a vanity p2sh address would be to make 1 of 1 multsig addresses. T

deisik
Legendary
*
Offline

Activity: 3542
Merit: 1280


English ⬄ Russian Translation Services


View Profile WWW
July 29, 2016, 05:23:53 PM
 #2802

Well...

Code:
3fredGdggEbacP41PRkniuBwYV2DqSUkCv
3Sisterv9DEgk7NZg33SzUjj6KWYJoQbiN
3XXXX4KvvJRH4wpwBDgbnvUcqRLg9yGxVQ
31KmSdZ9KNs3gc3abjUw8GxJEyfTMi5zts
3EEEKFoB93MJzYbqgt6bUz6khneWbA1HWE
3xxxxmDK8228yqdTCZsAKP3bupPyxneNkY

All Vanity generated, all have private keys, couldn't import any of them...

What does that mean? That the addresses (private keys) are not valid?

 They're not valid bitcoin addresses because they were generated as Pay-to-Pub-Key-Hash addresses with a 3 prefix rather than a 1

So what's the conclusion? Vanitygen can't be used to generate multisig addresses, right? Then how are these addresses generated? I mean, before all, how the concept of multisig private keys is honored during key generation?

Or someone should necessarily hold all the keys to such an address initially (say, an exchange owner)?

xhomerx10
Legendary
*
Offline

Activity: 4774
Merit: 12047



View Profile
July 29, 2016, 05:38:47 PM
 #2803

Does it mean that vanitygen can generate addresses starting with 3, i.e. multisig addresses (which would seemingly break the concept of such an address)? If it can't, there is only one way that it can have anything to do with such addresses...

That it just has nothing to do with them

You can generate a Wallet Address starting (seemingly) with any letter of the Alphabet or Numeral.

http://cryptolife.net/upwg/

ONLY "1's" and "3's" can be used with BitCoin Wallets (glossing over the test mode version of BitCoin for the moment).

I've just rolled a Wallet Address 3fredGdggEbacP41PRkniuBwYV2DqSUkCv which has the right looking private key, so I might try installing it a little later on - If anyone wants to try sending it some dust, I won't object Wink

Code:
oclvanitygen64 -X 6 -D 0:0 -D 0:1 -o dump.txt 3fred
Difficulty: 4553521
Pattern: 3fred
Address: 3fredGdggEbacP41PRkniuBwYV2DqSUkCv
The only way that you should be able to generate a vanity p2sh address would be to make 1 of 1 multsig addresses. T

  Vanitygen simply does a brute force on random P2PKH addresses and checks them for your desired prefix.  An implementation that brute forces random multisig P2SH addresses could accomplish the same task but it would be considerably slower.  I think you could still use 2 of 3 (or any number really).  Anybody want to take this on? Wink
 
achow101
Moderator
Legendary
*
expert
Offline

Activity: 4032
Merit: 7911


Just writing some code


View Profile WWW
July 29, 2016, 05:48:19 PM
 #2804


  Vanitygen simply does a brute force on random P2PKH addresses and checks them for your desired prefix.  An implementation that brute forces random multisig P2SH addresses could accomplish the same task but it would be considerably slower.  I think you could still use 2 of 3 (or any number really).  Anybody want to take this on? Wink
 
It would be possible, but you would end up having to brute force 3 keys instead of 1, which multiplies the possible search space by 6. Since it would also be a script, the script could also just have a nonce, and then you could also keep incrementing the nonce until the address is something you like.

xhomerx10
Legendary
*
Offline

Activity: 4774
Merit: 12047



View Profile
July 29, 2016, 05:59:17 PM
 #2805


  Vanitygen simply does a brute force on random P2PKH addresses and checks them for your desired prefix.  An implementation that brute forces random multisig P2SH addresses could accomplish the same task but it would be considerably slower.  I think you could still use 2 of 3 (or any number really).  Anybody want to take this on? Wink
 
It would be possible, but you would end up having to brute force 3 keys instead of 1, which multiplies the possible search space by 6. Since it would also be a script, the script could also just have a nonce, and then you could also keep incrementing the nonce until the address is something you like.

 I like your idea for the nonce.  That would speed up the process rather than having to create new addresses each time.
I'm pretty rusty with my programming skills but I'm going to have a look at vanitygen and see how difficult this would be.

shorena
Copper Member
Legendary
*
Offline

Activity: 1498
Merit: 1644


No I dont escrow anymore.


View Profile
July 29, 2016, 08:19:53 PM
 #2806

-snip-
With the exception of brainwallets, generating a random address and checking the totalReceived or balance the odds are not favorable, at all.

So why do I do it? For fun, duh. And I am a persistent fuck, lol.

Just out of curiosity, is that still the java I hacked together for you?

Im not really here, its just your imagination.
forumaster
Sr. Member
****
Offline

Activity: 378
Merit: 250

ツ


View Profile WWW
August 01, 2016, 02:27:04 PM
 #2807

thanks samr7, got my 1PizzaYSVynFNubFexqwrTXvDp8NJSJiap address in few minutes! I love it! Grin Grin Grin Grin
Chris!
Legendary
*
Offline

Activity: 1382
Merit: 1133



View Profile
August 01, 2016, 02:30:56 PM
 #2808

I need to make a series of 5 letter vanity addresses. In order to do so I think there's a command and I do something with bracket (Yes. I definitely completely understand what I'm doing /s).

Question: Can I use the same HEX public key '04AC6402...' if I'm doing split key vanity gen to create a series of vanity addresses?

So what I mean is my public key is '04AC6402...' can I use that to create multiple addresses, all at the same time?

1test1
1test2
1test3

Let me know if you understand what I'm asking and if it makes sense. Basically I'm trying to save some time rather than generating 100 addresses on an Ubuntu Live USB then going to Vanitygen and 1 by 1 find the part private key.
shorena
Copper Member
Legendary
*
Offline

Activity: 1498
Merit: 1644


No I dont escrow anymore.


View Profile
August 01, 2016, 02:37:38 PM
 #2809

I need to make a series of 5 letter vanity addresses. In order to do so I think there's a command and I do something with bracket (Yes. I definitely completely understand what I'm doing /s).

Question: Can I use the same HEX public key '04AC6402...' if I'm doing split key vanity gen to create a series of vanity addresses?

So what I mean is my public key is '04AC6402...' can I use that to create multiple addresses, all at the same time?

Yes.

1test1
1test2
1test3

Let me know if you understand what I'm asking and if it makes sense. Basically I'm trying to save some time rather than generating 100 addresses on an Ubuntu Live USB then going to Vanitygen and 1 by 1 find the part private key.

If you generate addresses for yourself you dont need to use split key vanity.

Anyway, here is the command to create 1test1 to 1test9 (cant do 10 because there is no 0 in base 58).

Code:
./vanitygen 1test1 1test2 1test3 1test4 1test5 1test6 1test7 1test8 1test9

You can also create a file with all the prefixes, e.g. "my_prefixes.txt"

Code:
./vanitygen -f my_prefixes.txt 
Next match difficulty: 1702005001 (9 prefixes)

If you only want a single address from any of the possible prefixes use the -1 flag, e.g.

Code:
./vanitygen -1 -f my_prefixes.txt 
Next match difficulty: 1702005001 (9 prefixes)

Edit: I just got the part you said about brackets and I think you are refering to regular expressions. Its possible to use them (flag is -r, but they will slow you down.

Code:
$ ./vanitygen -1 -f my_prefixes.txt 
Next match difficulty: 1702005001 (9 prefixes)
[419.17 Kkey/s][total 4964864][Prob 0.3%][50% in 46.7min]
$ ./vanitygen -1 -r 1test[1-9]
[151.59 Kkey/s][total 582912]

Im not really here, its just your imagination.
Chris!
Legendary
*
Offline

Activity: 1382
Merit: 1133



View Profile
August 01, 2016, 02:43:57 PM
 #2810

If you generate addresses for yourself you dont need to use split key vanit.

Anyway, here is the command to create 1test1 to 1test9 (cant do 10 because there is no 0 in base 58).

Yes I know I don't need to use split key, but I don't trust the system I'm on so I just generate the original addresses on an Ubuntu Live USB to be extra secure.

I actually didn't even think that I couldn't do 10... or any multiple of 10. Hmmm. I'll have to figure that out. Maybe I'll just use characters after 1-9. That way I don't have to add an extra letter to save some time anyways  Tongue




I'm going to do a little test and see how this works. BRB AFK! Lol.
shorena
Copper Member
Legendary
*
Offline

Activity: 1498
Merit: 1644


No I dont escrow anymore.


View Profile
August 01, 2016, 02:46:50 PM
 #2811

If you generate addresses for yourself you dont need to use split key vanit.

Anyway, here is the command to create 1test1 to 1test9 (cant do 10 because there is no 0 in base 58).

Yes I know I don't need to use split key, but I don't trust the system I'm on so I just generate the original addresses on an Ubuntu Live USB to be extra secure.

I actually didn't even think that I couldn't do 10... or any multiple of 10. Hmmm. I'll have to figure that out. Maybe I'll just use characters after 1-9. That way I don't have to add an extra letter to save some time anyways  Tongue

You can use 'o' (small Oh) instead. Its the closest in terms of looks.

I'm going to do a little test and see how this works. BRB AFK! Lol.

Have fun.

Im not really here, its just your imagination.
donGeilo
Full Member
***
Offline

Activity: 169
Merit: 100



View Profile
August 01, 2016, 02:51:33 PM
Last edit: August 01, 2016, 03:12:20 PM by donGeilo
 #2812

Hi, is there a way I can tell vanitygen to start the search at a specific privatekey (hex value ...), and not random?

For example all adrdesses with prefix: '123456' beginnig search at privatekey (hex value 10) 5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreBoNWTw6
and then 11, 12, 13 ....? And not random?

So if my harddisk crashes i can retrieve the privatekeys back, cause i know which range i used?Huh
Chris!
Legendary
*
Offline

Activity: 1382
Merit: 1133



View Profile
August 01, 2016, 02:53:04 PM
Last edit: August 01, 2016, 03:13:49 PM by Chris!
 #2813

You can use 'o' (small Oh) instead. Its the closest in terms of looks.

Meh. I just don't like the look! I'll probably do capitals. Haha then of course I'll get to (I) and be screwed all over again. Hmmm what a predicament.

Another noob question. Like REALLY noob so don't laugh. How do I tell if I have a GPU in the laptop? I'm assuming I don't have one at all but have no idea how to check. Why am I asking? It just took my CPU... 7 minutes to find a 4 character vanity address hahaha.
Avirunes
Legendary
*
Offline

Activity: 3094
Merit: 1473


View Profile WWW
August 01, 2016, 02:55:31 PM
 #2814

You can use 'o' (small Oh) instead. Its the closest in terms of looks.

Meh. I just don't like the look! I'll probably do capitals. Haha then of course I'll get to (I) and be screwed all over again. Hmmm what a predicament.



Another noob question. Like REALLY noob so don't laugh. How do I tell if I have a GPU in the laptop? I'm assuming I don't have one at all but have no idea how to check. Why am I asking? It just took my CPU... 7 minutes to find a 4 character vanity address hahaha.

Maybe this will help you finding what GPU you have.

http://m.wikihow.com/Find-Out-What-Graphics-Card-You-Have
shorena
Copper Member
Legendary
*
Offline

Activity: 1498
Merit: 1644


No I dont escrow anymore.


View Profile
August 01, 2016, 02:58:37 PM
 #2815

You can use 'o' (small Oh) instead. Its the closest in terms of looks.

Meh. I just don't like the look! I'll probably do capitals. Haha then of course I'll get to (I) and be screwed all over again. Hmmm what a predicament.



Another noob question. Like REALLY noob so don't laugh. How do I tell if I have a GPU in the laptop? I'm assuming I don't have one at all but have no idea how to check. Why am I asking? It just took my CPU... 7 minutes to find a 4 character vanity address hahaha.

Yeah, its not easy sometimes with the limitation of symbols.

(Assuming Ubuntu) Try
lspci -vnn | grep VGA
 on a linux shell. If it says something about nVidia or AMD there is chance you can use oclvanitygen. If its an intel GPU you likely cant.



Hi, is there a way I can tell vanitygen to start the search at a specific privatekey (hex value ...), and not random?

For example all adrdesses with prefix: '123456' beginnig search at privatekey (hex value 10) 5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreBoNWTw6
and then 11, 12, 12 ....? And not random?

So if my harddisk crashes i can retrieve the privatekeys back, cause i know which range i used?Huh

Thats not how vanitygen works. The private keys are created randomly and there is no progress you can lose.

Im not really here, its just your imagination.
donGeilo
Full Member
***
Offline

Activity: 169
Merit: 100



View Profile
August 01, 2016, 03:02:48 PM
 #2816

You can use 'o' (small Oh) instead. Its the closest in terms of looks.

Meh. I just don't like the look! I'll probably do capitals. Haha then of course I'll get to (I) and be screwed all over again. Hmmm what a predicament.



Another noob question. Like REALLY noob so don't laugh. How do I tell if I have a GPU in the laptop? I'm assuming I don't have one at all but have no idea how to check. Why am I asking? It just took my CPU... 7 minutes to find a 4 character vanity address hahaha.

Yeah, its not easy sometimes with the limitation of symbols.

(Assuming Ubuntu) Try
lspci -vnn | grep VGA
 on a linux shell. If it says something about nVidia or AMD there is chance you can use oclvanitygen. If its an intel GPU you likely cant.



Hi, is there a way I can tell vanitygen to start the search at a specific privatekey (hex value ...), and not random?

For example all adrdesses with prefix: '123456' beginnig search at privatekey (hex value 10) 5HpHagT65TZzG1PH3CSu63k8DbpvD8s5ip4nEB3kEsreBoNWTw6
and then 11, 12, 12 ....? And not random?

So if my harddisk crashes i can retrieve the privatekeys back, cause i know which range i used?Huh

Thats not how vanitygen works. The private keys are created randomly and there is no progress you can lose.

But it should be possible, just remove the random part and insert a specific starting point and remove the rekey intervall, or am I wrong?
Chris!
Legendary
*
Offline

Activity: 1382
Merit: 1133



View Profile
August 01, 2016, 03:14:43 PM
 #2817

Maybe this will help you finding what GPU you have.

http://m.wikihow.com/Find-Out-What-Graphics-Card-You-Have

Intel(R) HD Graphics.



Assuming that's a GPU, how do I use the GPU version? I've always just used vanitygen64. Oclvanitygen is for Linux from my understanding... Do I just put in another command and that will us my GPU?



Also, why does Vanitygen get me double the speed Vanitygen64 does? I thought it would be the opposite.
donGeilo
Full Member
***
Offline

Activity: 169
Merit: 100



View Profile
August 01, 2016, 03:15:36 PM
 #2818

Supposed to be these lines i think
Code:
 * Address search thread main loop
 */

void *
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];
EC_POINT *pbatchinc;

vg_test_func_t test_func = vcp->vc_test;
vg_exec_context_t ctx;
vg_exec_context_t *vxcp;

struct timeval tvstart;


memset(&ctx, 0, sizeof(ctx));
vxcp = &ctx;

vg_exec_context_init(vcp, &ctx);

pkey = vxcp->vxc_key;
pgroup = EC_KEY_get0_group(pkey);
pgen = EC_GROUP_get0_generator(pgroup);

for (i = 0; i < ptarraysize; i++) {
ppnt[i] = EC_POINT_new(pgroup);
if (!ppnt[i]) {
fprintf(stderr, "ERROR: out of memory?\n");
exit(1);
}
}
pbatchinc = EC_POINT_new(pgroup);
if (!pbatchinc) {
fprintf(stderr, "ERROR: out of memory?\n");
exit(1);
}

BN_set_word(&vxcp->vxc_bntmp, ptarraysize);
EC_POINT_mul(pgroup, pbatchinc, &vxcp->vxc_bntmp, NULL, NULL,
     vxcp->vxc_bnctx);
EC_POINT_make_affine(pgroup, pbatchinc, vxcp->vxc_bnctx);

npoints = 0;
rekey_at = 0;
nbatch = 0;
vxcp->vxc_key = pkey;
vxcp->vxc_binres[0] = vcp->vc_addrtype;
c = 0;
output_interval = 1000;
gettimeofday(&tvstart, NULL);

if (vcp->vc_format == VCF_SCRIPT) {
hash_buf[ 0] = 0x51;  // OP_1
hash_buf[ 1] = 0x41;  // pubkey length
// gap for pubkey
hash_buf[67] = 0x51;  // OP_1
hash_buf[68] = 0xae;  // OP_CHECKMULTISIG
eckey_buf = hash_buf + 2;
hash_len = 69;

} else {
eckey_buf = hash_buf;
hash_len = 65;
}

while (!vcp->vc_halt) {
if (++npoints >= rekey_at) {
vg_exec_context_upgrade_lock(vxcp);
/* Generate a new random private key */
EC_KEY_generate_key(pkey);
npoints = 0;

/* Determine rekey interval */
EC_GROUP_get_order(pgroup, &vxcp->vxc_bntmp,
   vxcp->vxc_bnctx);
BN_sub(&vxcp->vxc_bntmp2,
       &vxcp->vxc_bntmp,
       EC_KEY_get0_private_key(pkey));
rekey_at = BN_get_word(&vxcp->vxc_bntmp2);
if ((rekey_at == BN_MASK2) || (rekey_at > rekey_max))
rekey_at = rekey_max;
assert(rekey_at > 0);

EC_POINT_copy(ppnt[0], EC_KEY_get0_public_key(pkey));
vg_exec_context_downgrade_lock(vxcp);

npoints++;
vxcp->vxc_delta = 0;

if (vcp->vc_pubkey_base)
EC_POINT_add(pgroup,
     ppnt[0],
     ppnt[0],
     vcp->vc_pubkey_base,
     vxcp->vxc_bnctx);

for (nbatch = 1;
     (nbatch < ptarraysize) && (npoints < rekey_at);
     nbatch++, npoints++) {
EC_POINT_add(pgroup,
     ppnt[nbatch],
     ppnt[nbatch-1],
     pgen, vxcp->vxc_bnctx);
}
Avirunes
Legendary
*
Offline

Activity: 3094
Merit: 1473


View Profile WWW
August 01, 2016, 03:24:57 PM
 #2819

Maybe this will help you finding what GPU you have.

http://m.wikihow.com/Find-Out-What-Graphics-Card-You-Have

Intel(R) HD Graphics.



Assuming that's a GPU, how do I use the GPU version? I've always just used vanitygen64. Oclvanitygen is for Linux from my understanding... Do I just put in another command and that will us my GPU?



Also, why does Vanitygen get me double the speed Vanitygen64 does? I thought it would be the opposite.

If i am correct then I think oclvanitygen is basically for gpu.You don't need any specific command.

I guess you will be unable to mine with your Intel GPU as shorena already picked the point in previous post though you can run up on CPU speed
LoyceV
Legendary
*
Offline

Activity: 4242
Merit: 23256


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
August 01, 2016, 04:59:14 PM
 #2820

So what I mean is my public key is '04AC6402...' can I use that to create multiple addresses, all at the same time?
I've been wondering about this for a while now. My understanding of the encryption isn't enough to know whether or not this is secure. If you do this, and one key would get compromised, I can imagine the other keys are no longer secure too. But I'm not sure. To be safe, I wouldn't use the same partial private key twice.

Quote
Basically I'm trying to save some time rather than generating 100 addresses on an Ubuntu Live USB then going to Vanitygen and 1 by 1 find the part private key.
Can't you figure out how to install vanitygen on the Ubuntu LIVE distribution? It shouldn't be that hard. Once you've figured it out, you can save it as a script for next time.
Using OCL on a LIVE distribution could be a lot harder, but for 5 digit searches you should be fine without it.

But it should be possible, just remove the random part and insert a specific starting point and remove the rekey intervall, or am I wrong?
This is insecure. If you would do this, someone could find your private key if he knows where you started your search.
Just create (secure) backups of your private key in case your drive crashes.

¡uʍop ǝpᴉsdn pɐǝɥ ɹnoʎ ɥʇᴉʍ ʎuunɟ ʞool no⅄
[MUSIC] The Ballad of LoyceV
Pages: « 1 ... 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 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 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!