Apr 10, 2014 11:37 AM
(This post was last modified: Apr 28, 2014 09:12 PM by Mohatu.)
VanityGen
Hi. There has been interest in wanting custom OMC addresses in this section, so here is a simple guide on how to make them yourself, safely. If you let someone else do it for you, they will ALWAYS have the ability to take funds from that address without your consent, forever. The person may be trusted, but you never know if he has a RAT installed with a malicious user seeing everything he does.
If you want something done right, do it yourself.
To start off, most of you are no doubt on the Windows operating system and have a graphics card that supports OpenCL. If not, that's fine, we will cover CPU generating as well.
Windows Users
Download: https://github.com/downloads/samr7/vanit...22-win.zip
Linux/OSX Users
Compile from source:
https://github.com/samr7/vanitygen
The VanityGen information page is still linked to version 0.20, which doesn't support some of the newer additions of 0.22, so make sure to get the right version.
Upon having downloaded the binaries/compiled depending on your OS, you will now see various files to use.
![[Image: 83wvx.png]](https://puu.sh/83wvx.png)
The file you want to use depends on your system architecture and graphics card. In my case, my graphics card supports OCL (OpenCL), so I will be using "oclvanitygen". You can ignore the "oclminer"s, since we will not be using those. If you are planning on doing this on a CPU since you either lack a GPU or have one without OpenCL support, use "vanitygen" or "vanitygen64", the latter being for 64 bit systems.
Open a terminal/command promt and navigate to the folder the binaries are in. On Windows, you can easily do this by holding down
"Shift" and right clicking the folder window.
![[Image: 83wGP.png]](https://puu.sh/83wGP.png)
This tool allows you to generate custom addresses for nearly ANY coin, as long as you get the flags right.
For Omnicoin, that flag is "-X 115". (Thanks to Furry~)
Additionally, some characters are not allowed to be part of an address, this is not the fault of VanityGen, but a limitation of the address hash. For example, an "O" (capital o) can not be used, and will produce an error:
![[Image: 83x89.png]](https://puu.sh/83x89.png)
To generate a custom OmniCoin address, execute the following command, replacing "oMohatu" with an address of your choice.
![[Image: 83xoa.png]](https://puu.sh/83xoa.png)
You will now see it begin to look for an address that begins with what you want it to begin with. The shorter the prefix, the faster it will be found!
An example of "oMohatu":
![[Image: 83xsm.png]](https://puu.sh/83xsm.png)
This shows that there is about a 50% chance of generating a custom address with that prefix in 20.5 minutes with an expected 100% chance in around 41 minutes, but not guaranteed as one can get unlucky. The higher the difficulty, the longer it will take. Keep in mind that I could theoretically get an address in a few seconds but that would be extremely unlikely.
My nVidia GTX570M can generate about 8.5 million addresses per second. A CPU will produce FAR less.
CPU example, i7-2670QM @ 2.2Ghz
![[Image: 83xPA.png]](https://puu.sh/83xPA.png)
I hope this makes it easier for some of you, let me know if you have any questions.
Useful addition by ThisIsMyAccount:
Adding the Private Key to your wallet
In the OmniCoin wallet, go to Help->Debug Window
![[Image: 83yx7.jpg]](https://puu.sh/83yx7.jpg)
Switch to the "Console" tab.
![[Image: 83yA5.jpg]](https://puu.sh/83yA5.jpg)
Then execute the command with the hash you received:
"importprivkey <VanityGen hash> <Name>"
For the best possible speed, run all this on a Raspberry Pi.
Sheer raw computing power.
Hi. There has been interest in wanting custom OMC addresses in this section, so here is a simple guide on how to make them yourself, safely. If you let someone else do it for you, they will ALWAYS have the ability to take funds from that address without your consent, forever. The person may be trusted, but you never know if he has a RAT installed with a malicious user seeing everything he does.
If you want something done right, do it yourself.
To start off, most of you are no doubt on the Windows operating system and have a graphics card that supports OpenCL. If not, that's fine, we will cover CPU generating as well.
Windows Users
Download: https://github.com/downloads/samr7/vanit...22-win.zip
Linux/OSX Users
Compile from source:
https://github.com/samr7/vanitygen
The VanityGen information page is still linked to version 0.20, which doesn't support some of the newer additions of 0.22, so make sure to get the right version.
Upon having downloaded the binaries/compiled depending on your OS, you will now see various files to use.
![[Image: 83wvx.png]](https://puu.sh/83wvx.png)
The file you want to use depends on your system architecture and graphics card. In my case, my graphics card supports OCL (OpenCL), so I will be using "oclvanitygen". You can ignore the "oclminer"s, since we will not be using those. If you are planning on doing this on a CPU since you either lack a GPU or have one without OpenCL support, use "vanitygen" or "vanitygen64", the latter being for 64 bit systems.
Open a terminal/command promt and navigate to the folder the binaries are in. On Windows, you can easily do this by holding down
"Shift" and right clicking the folder window.
![[Image: 83wGP.png]](https://puu.sh/83wGP.png)
This tool allows you to generate custom addresses for nearly ANY coin, as long as you get the flags right.
For Omnicoin, that flag is "-X 115". (Thanks to Furry~)
Additionally, some characters are not allowed to be part of an address, this is not the fault of VanityGen, but a limitation of the address hash. For example, an "O" (capital o) can not be used, and will produce an error:
![[Image: 83x89.png]](https://puu.sh/83x89.png)
To generate a custom OmniCoin address, execute the following command, replacing "oMohatu" with an address of your choice.
![[Image: 83xoa.png]](https://puu.sh/83xoa.png)
You will now see it begin to look for an address that begins with what you want it to begin with. The shorter the prefix, the faster it will be found!
An example of "oMohatu":
![[Image: 83xsm.png]](https://puu.sh/83xsm.png)
This shows that there is about a 50% chance of generating a custom address with that prefix in 20.5 minutes with an expected 100% chance in around 41 minutes, but not guaranteed as one can get unlucky. The higher the difficulty, the longer it will take. Keep in mind that I could theoretically get an address in a few seconds but that would be extremely unlikely.
My nVidia GTX570M can generate about 8.5 million addresses per second. A CPU will produce FAR less.
CPU example, i7-2670QM @ 2.2Ghz
![[Image: 83xPA.png]](https://puu.sh/83xPA.png)
I hope this makes it easier for some of you, let me know if you have any questions.
Useful addition by ThisIsMyAccount:
(Apr 10, 2014 11:49 AM)ThisIsMyAccount Wrote: Another useful thing to add to this, use the -o flag to get all the keys you generate in a text file so it's easy to import them to your wallet. Also -i will make it case insensitive, so it'll generate quicker. Nice tut Mohatu.
Adding the Private Key to your wallet
In the OmniCoin wallet, go to Help->Debug Window
![[Image: 83yx7.jpg]](https://puu.sh/83yx7.jpg)
Switch to the "Console" tab.
![[Image: 83yA5.jpg]](https://puu.sh/83yA5.jpg)
Then execute the command with the hash you received:
"importprivkey <VanityGen hash> <Name>"
For the best possible speed, run all this on a Raspberry Pi.
Sheer raw computing power.
Crypto





![[Image: asWKqqH.gif]](https://i.imgur.com/asWKqqH.gif)
![[Image: FPCniQy.png]](https://i.imgur.com/FPCniQy.png)