Bitcoin Forum
April 26, 2024, 05:29:26 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: vanitygen  (Read 1766 times)
FabioCarpi (OP)
Sr. Member
****
Offline Offline

Activity: 375
Merit: 254



View Profile
January 15, 2015, 01:04:59 PM
 #1

the vanitygen project is abandoned?
https://github.com/samr7/vanitygen last commit Oct 24, 2012

i like this tool
i use he offline (i read some thinks)
but i likely he addresses in compressed pubkey...
The grue lurks in the darkest places of the earth. Its favorite diet is adventurers, but its insatiable appetite is tempered by its fear of light. No grue has ever been seen by the light of day, and few have survived its fearsome jaws to tell the tale.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714109366
Hero Member
*
Offline Offline

Posts: 1714109366

View Profile Personal Message (Offline)

Ignore
1714109366
Reply with quote  #2

1714109366
Report to moderator
1714109366
Hero Member
*
Offline Offline

Posts: 1714109366

View Profile Personal Message (Offline)

Ignore
1714109366
Reply with quote  #2

1714109366
Report to moderator
1714109366
Hero Member
*
Offline Offline

Posts: 1714109366

View Profile Personal Message (Offline)

Ignore
1714109366
Reply with quote  #2

1714109366
Report to moderator
findftp
Legendary
*
Offline Offline

Activity: 1022
Merit: 1006

Delusional crypto obsessionist


View Profile
January 15, 2015, 07:24:14 PM
 #2

the vanitygen project is abandoned?
https://github.com/samr7/vanitygen last commit Oct 24, 2012
If it ain't broken, don't fix it.

Quote
i like this tool
i use he offline (i read some thinks)
but i likely he addresses in compressed pubkey...

Not sure what you mean. Do you mean you want the private key to be in another format?
FabioCarpi (OP)
Sr. Member
****
Offline Offline

Activity: 375
Merit: 254



View Profile
January 15, 2015, 08:25:23 PM
 #3

Not sure what you mean. Do you mean you want the private key to be in another format?
yes. in pubkey compress format
start with K or L
findftp
Legendary
*
Offline Offline

Activity: 1022
Merit: 1006

Delusional crypto obsessionist


View Profile
January 15, 2015, 08:38:24 PM
 #4

Not sure what you mean. Do you mean you want the private key to be in another format?
yes. in pubkey compress format
start with K or L

Oh, that's easy.
Just take the output from vanitygen and go to wallet details at bitaddress.org.

Code:
satoshi@nakamoto ~/applications/vanitygen-master $ ./vanitygen -i 1fabio
Difficulty: 63825187
Pattern: 1fabio                                                               
Address: 1FABios7oEqdjEPjo3yeBWdqGTDrdukVWG
Privkey: 5Jg4heZuwpK5U8wmYs5TrS6Vhg6hUCgxE2yetEgnQvAWPNKV8zu


For security purpose you can even download the page and check the integrity on an clean (cd-rom boot) machine and run the page.

There you can fill in the private key and see the compressed keys.

WIF compressed:
L11RLQpGgwpnin4jde2hXBmFgXa9d4bLkXj4D9QbSZexhdaf9R5m

for this example.

May I ask where you want to use the address?
johoe
Full Member
***
Offline Offline

Activity: 217
Merit: 238


View Profile
January 15, 2015, 09:06:33 PM
 #5

Not sure what you mean. Do you mean you want the private key to be in another format?
yes. in pubkey compress format
start with K or L

At least the version of vanitygen that I downloaded has a switch for this:
Code:
vanitygen -F compressed -i 1johoe
Address: 1JoHoeEj6hFtxr22xahQUTxzj55hE1BZug
Privkey: L1vN2kji2HkFQmju7oYnrNXzZ8R9mejfWqcj8k3x6BVRb2cf2RK4

Note that compressing the key afterwards does not work, as it changes the address.

Donations to 1CF62UFWXiKqFUmgQMUby9DpEW5LXjypU3
FabioCarpi (OP)
Sr. Member
****
Offline Offline

Activity: 375
Merit: 254



View Profile
January 15, 2015, 09:20:11 PM
 #6

my version dont suport the compressed format
findftp
Legendary
*
Offline Offline

Activity: 1022
Merit: 1006

Delusional crypto obsessionist


View Profile
January 15, 2015, 09:25:58 PM
 #7

my version dont suport the compressed format
Mine neither.
Did we miss something when compiling? Smiley
johoe
Full Member
***
Offline Offline

Activity: 217
Merit: 238


View Profile
January 16, 2015, 10:33:48 AM
 #8

my version dont suport the compressed format
Mine neither.
Did we miss something when compiling? Smiley

I just checked.  I use the version from Scott Alfter:

https://github.com/salfter/vanitygen

This is his commit that added compressed keys:

https://github.com/salfter/vanitygen/commit/06c095e064b6fcf6fa609dc7b769bd0e60ac8336

Donations to 1CF62UFWXiKqFUmgQMUby9DpEW5LXjypU3
FabioCarpi (OP)
Sr. Member
****
Offline Offline

Activity: 375
Merit: 254



View Profile
January 16, 2015, 10:58:32 AM
 #9

where can i download the executable?
findftp
Legendary
*
Offline Offline

Activity: 1022
Merit: 1006

Delusional crypto obsessionist


View Profile
January 16, 2015, 12:21:37 PM
 #10

where can i download the executable?
There is no executable. This works on linux. You have to compile it.
johoe
Full Member
***
Offline Offline

Activity: 217
Merit: 238


View Profile
January 16, 2015, 12:34:25 PM
 #11

where can i download the executable?

I don't see precompiled packages. I can send you a linux 64 bit executable for Ubuntu, if you trust me that I didn't include any backdoor.

If you have linux it is not so difficult to compile yourself.  You need the usual C development packages and the library packages libpcre3-dev and libssl-dev.

I just browsed around and there are many different forks of vanitygen and at least two different implementations for compressed keys.


Donations to 1CF62UFWXiKqFUmgQMUby9DpEW5LXjypU3
FabioCarpi (OP)
Sr. Member
****
Offline Offline

Activity: 375
Merit: 254



View Profile
January 16, 2015, 12:48:09 PM
 #12

i use Windows
but i have a bootable pendrive with ubuntu
Josef27
Hero Member
*****
Offline Offline

Activity: 784
Merit: 1000


View Profile
January 16, 2015, 12:50:27 PM
 #13

Atleast it still working, right?
FabioCarpi (OP)
Sr. Member
****
Offline Offline

Activity: 375
Merit: 254



View Profile
January 16, 2015, 12:53:33 PM
 #14

yes
johoe
Full Member
***
Offline Offline

Activity: 217
Merit: 238


View Profile
January 16, 2015, 01:11:57 PM
Last edit: January 16, 2015, 01:23:56 PM by johoe
 #15

I put an archive with the linux 64 bit executable at

http://johoe.mooo.com/bitcoin/vanitygen-salfter-0.21-15-g06c095e.tar.gz

Code:
> sha256sum vanitygen-salfter-0.21-15-g06c095e.tar.gz
89e7bf7b5a4499cea56f9e19a7c91102d99989b2b8ee67ac5935e8e14790dd02 vanitygen-salfter-0.21-15-g06c095e.tar.gz

It is build from the github repository as:
Code:
git clone https://github.com/salfter/vanitygen
cd vanitygen
git checkout 0.21-15-g06c095e
make
strip vanitygen keyconv

I didn't build oclvanitygen (AFAIK my intel GPU doesn't support it).

Edit: stripped executable, this changed sha256 sum.

Donations to 1CF62UFWXiKqFUmgQMUby9DpEW5LXjypU3
HugoTheSpider
Jr. Member
*
Offline Offline

Activity: 38
Merit: 2


View Profile
January 17, 2015, 12:30:30 PM
 #16

Hello, if vanitygen searches for both; compressed and uncompressed keys at once, it should raise the key rate up to 100% because the expensive EC math has to be done once only for each PubKey double, AFAIK. Right?

Old (pseudocode):
Code:
for each (i ...)
{
  batch = EC_stuff()
  for (j every item in batch)
  {
    EC_POINT_to_oct(group, batch[j], uncompressed, pubkey, 65) //pubkey = 04 XXXXXXX.. YYYYYYY...

    buffer[0..31] = SHA256(pubkey[0..64])
    hash160 = RIPEMD160(buffer[0..31])
    base58string = encodingFunc(hash160)
    if checkFunc(base58string) printKeyPair(PrivKey, base58string)
  }
}

should turn into:
Code:
for each (i ...)
{
  batch = EC_stuff()
  for (j = every item in batch)
  {
    EC_POINT_to_oct(group, batch[j], uncompressed, pubkey, 65) //pubkey = 04 XXXXXXX.. YYYYYYY...
   
    buffer[0..31] = SHA256(pubkey[0..64])
    hash160 = RIPEMD160(buffer[0..31])
    base58string = encodingFunc(hash160)
    if checkFunc(base58string) printKeyPair(PrivKey, base58string)
   
    if (pubkey[64]&1 != 0) pubkey[0] = 3 else pubkey[0] = 2 //pubkey = 02/03 XXXXXXXX.. YYYYYYY...
   
    buffer[0..31] = SHA256(pubkey[0..32]) //02/03 XXXXXX, ignore YYY
    hash160 = RIPEMD160(buffer[0..31])
    base58string = encodingFunc(hash160)
    if checkFunc(base58string) printKeyPair(PrivKey, base58string)
  }
}

Someone here which wants to give it a try and check if I'm right? I can't because I'm currently stick with a slow Windows laptop without a proper development tool chain.
johoe
Full Member
***
Offline Offline

Activity: 217
Merit: 238


View Profile
January 17, 2015, 01:41:21 PM
 #17

Hello, if vanitygen searches for both; compressed and uncompressed keys at once, it should raise the key rate up to 100% because the expensive EC math has to be done once only for each PubKey double, AFAIK. Right?

I was always under the impression that vanitygen wouldn't do a multiplication in the inner loop but only increment the private key and add G to the public key.  I'm no longer sure this is true.  I hacked your suggestion and I went up from 560kKey/s to 720 kKey/s.  Another thing to try is using positive and negative point.  Negating a point is trivial for compressed key (xor the 2/3 with 1) and simple enough for uncompressed keys (negate y modulo N).

Donations to 1CF62UFWXiKqFUmgQMUby9DpEW5LXjypU3
ChetnotAtkins
Full Member
***
Offline Offline

Activity: 131
Merit: 100


View Profile
August 15, 2015, 09:10:57 AM
 #18

I am interested in a patch for oclvanitygen that would enable simultaneous search for compressed and uncompressed keys.

Is this solution above applicable (if so, which file should be changed) or could anybody post the necessary code changes to enable this? Thanks a lot
Pages: [1]
  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!