Bitcoin Forum

Alternate cryptocurrencies => Altcoin Discussion => Topic started by: jaywaka2713 on May 11, 2013, 02:03:42 PM



Title: Modify vanitygen/oclvanitygen for Litecoin
Post by: jaywaka2713 on May 11, 2013, 02:03:42 PM
Is there a way to modify vanitygen to generate Litecoin? Does anyone here have the technical expertise to explain how to modify the vanitygen and oclvanitygen code to adapt to Litecoin? Also, if such could be explained, can anyone explain how to make it accept any identifier so any altcoin could be generated?


Title: Re: Modify vanitygen/oclvanitygen for Litecoin
Post by: Buffer Overflow on May 15, 2013, 06:24:08 PM
Is there a way to modify vanitygen to generate Litecoin? Does anyone here have the technical expertise to explain how to modify the vanitygen and oclvanitygen code to adapt to Litecoin? Also, if such could be explained, can anyone explain how to make it accept any identifier so any altcoin could be generated?
I thought Litecoin was programmed in anyway. Have you checked the docs?


Title: Re: Modify vanitygen/oclvanitygen for Litecoin
Post by: scintill on June 04, 2013, 11:54:56 PM
Yes, it is already working for vanitygen.  It seems to be not working in oclvanitygen (I found this thread searching about that.)

Example litecoin litecoin addr: vanitygen -L LiTe .  Namecoin: vanitygen -N NC .  Any other coin can be done with the -X flag that lets you specify a version code (though it may be a bit of work figuring out what your coin's version number is.)


Title: Re: Modify vanitygen/oclvanitygen for Litecoin
Post by: jaywaka2713 on June 05, 2013, 01:03:40 AM
Yes, it is already working for vanitygen.  It seems to be not working in oclvanitygen (I found this thread searching about that.)

Example litecoin litecoin addr: vanitygen -L LiTe .  Namecoin: vanitygen -N NC .  Any other coin can be done with the -X flag that lets you specify a version code (though it may be a bit of work figuring out what your coin's version number is.)

Thank you for your advice. I actually found the -X code weeks ago and found a site that lists all the prefix codes. Forgot about this thread.


Title: Re: Modify vanitygen/oclvanitygen for Litecoin
Post by: dreamwatcher on June 05, 2013, 02:12:48 AM
Yes, it is already working for vanitygen.  It seems to be not working in oclvanitygen (I found this thread searching about that.)

Example litecoin litecoin addr: vanitygen -L LiTe .  Namecoin: vanitygen -N NC .  Any other coin can be done with the -X flag that lets you specify a version code (though it may be a bit of work figuring out what your coin's version number is.)

Actually it is not that hard.  ;)

Just go to the source files and look at the Base58.h file.

Around line 280 on most coins,  look for the constant PUBKEY_ADDRESS being assigned. That would be the address version you need.