{"id":1144,"date":"2017-06-29T01:00:39","date_gmt":"2017-06-29T01:00:39","guid":{"rendered":"http:\/\/www.talkcrypto.org\/blog\/?p=1144"},"modified":"2017-06-29T23:51:03","modified_gmt":"2017-06-29T23:51:03","slug":"bitcoin-vanity-addresses","status":"publish","type":"post","link":"https:\/\/www.talkcrypto.org\/blog\/2017\/06\/29\/bitcoin-vanity-addresses\/","title":{"rendered":"Bitcoin Vanity Addresses"},"content":{"rendered":"<h4>Introduction<\/h4>\n<p>These have been around for a long time now but they are still nonetheless pretty neat. They are called vanity addresses because you can create a bitcoin address with certain starting letters that spell out words such as your name or your brand.<\/p>\n<h4>What does a bitcoin address look like?<\/h4>\n<p>A bitcoin address is like a bank number. You give it or show it to people who then use it to send you bitcoins, litecoins, ether or whatever crypto currency you prefer. Wallets create these addresses randomly and a sample bitcoin address looks like this:\u00a0mr4WeSWGzg8ND2qbpvKJqq2LgMq3HfB6EW<\/p>\n<p>This is an address from testnet, which is a test blockchain for development.<\/p>\n<p>You can see the transaction history at: <a href=\"https:\/\/tbtc.blockr.io\/address\/info\/mr4WeSWGzg8ND2qbpvKJqq2LgMq3HfB6EW\" target=\"_blank\" rel=\"noopener\">https:\/\/tbtc.blockr.io\/address\/info\/mr4WeSWGzg8ND2qbpvKJqq2LgMq3HfB6EW<\/a> which shows that 0.2btc has been sent to this address. Again, the 0.2 btc are not real so not worth anything.<\/p>\n<h4>What does a bitcoin vanity address look like?<\/h4>\n<p>For those who want to get fancy, they can create addresses such as: 1appleWGzg8ND2qbpvKJqq2LgMq3HfB6EW or 1microsoft8ND2qbpvKJqq2LgMq3HfB6EW<\/p>\n<p>It makes the address stand out and a little unique hence the name vanity addresses.<\/p>\n<h4>Things to consider<\/h4>\n<ul>\n<li>Generating vanity addresses with more than 7 letters can take years. This is because the computer goes through all the possible combinations in order to find addresses starting with these letters. 6 letters generally takes hours. Below is a screen shot where creating an address with the words bitcoin at the start will take 2.6 years! Of course you could get a faster CPU or even use graphics cards but still.<\/li>\n<\/ul>\n<h4><img decoding=\"async\" class=\"alignnone wp-image-1147 size-full\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/van3.png\" alt=\"\" width=\"449\" height=\"45\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/van3.png 449w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/van3-300x30.png 300w\" sizes=\"(max-width: 449px) 100vw, 449px\" \/><\/h4>\n<ul>\n<li>Address re-use is generally considered bad practice. Every transaction should use a new bitcoin address to reduce the possibility of address correlation which increases a persons privacy exposure co-efficient.<\/li>\n<li>The benefit of reusing an address is to show an audit trail of donations for example. If you have nothing to fear, you have nothing to hide.<\/li>\n<li>All funds going to that address can be seen on any blockchain explorer.<\/li>\n<\/ul>\n<h4>How to create a bitcoin vanity address?<\/h4>\n<p>The easiest way to generate a vanity address is to download Vanitygen from <a href=\"https:\/\/bitcointalk.org\/index.php?topic=25804.0\" target=\"_blank\" rel=\"noopener\">https:\/\/bitcointalk.org\/index.php?topic=25804.0<\/a><\/p>\n<p>If you use the windows version, you can get up and running in seconds. Download the zip file, extract it and then open a command line and navigate to that folder.<\/p>\n<p>Then run:<\/p>\n<pre>&gt;vanitygen.exe 1test<\/pre>\n<p>The screenshot below shows that it will take about 14 minutes. This does depend on your CPU though. The example below was done on an Intel i3 so it&#8217;s quite slow.<\/p>\n<h4><img decoding=\"async\" class=\"alignnone wp-image-1145 size-full\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/van1.png\" alt=\"\" width=\"464\" height=\"43\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/van1.png 464w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/van1-300x28.png 300w\" sizes=\"(max-width: 464px) 100vw, 464px\" \/><\/h4>\n<p>What you should get when it&#8217;s finishes is the address and the private key. The private key should be kept secret and not revealed to anyone.<\/p>\n<h4><img decoding=\"async\" class=\"alignnone wp-image-1146 size-full\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/van2.png\" alt=\"\" width=\"510\" height=\"73\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/van2.png 510w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/van2-300x43.png 300w\" sizes=\"(max-width: 510px) 100vw, 510px\" \/><\/h4>\n<h4>How do I use my GPU to speed up the process?<\/h4>\n<p>You can run this command<\/p>\n<pre>&gt; oclvanitygen.exe 1test<\/pre>\n<p>which means use the OCL version of vanitygen.exe. OCL is the OpenCL version.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1148 size-full\" src=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/Screen-Shot-2017-06-29-at-12.42.51-PM.png\" alt=\"\" width=\"574\" height=\"85\" srcset=\"https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/Screen-Shot-2017-06-29-at-12.42.51-PM.png 574w, https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/Screen-Shot-2017-06-29-at-12.42.51-PM-300x44.png 300w\" sizes=\"(max-width: 574px) 100vw, 574px\" \/><\/p>\n<p>Your GPU&#8217;s should be detected. To run it, use this command:<\/p>\n<pre>&gt; oclvanitygen.exe -D 0:0 1test<\/pre>\n<p>This means use the GPU at 0:0. If you have 2, use:<\/p>\n<pre>&gt; oclvanitygen.exe -D 0:0 -D 0:1 1test<\/pre>\n<h4>Errors<\/h4>\n<p>If get you this error:<\/p>\n<pre>C:\\Users\\hp7446a0be58ca\\AppData\\Local\\Temp\\\\OCL5108T3.cl:173:19: error: constant address space qualified variables are required to be initialized\r\n2 errors generated.\r\n\r\nerror: Clang front-end compilation failed!\r\nFrontend phase failed compilation.\r\nError: Compiling CL to IR<\/pre>\n<p>Then open up the file calc_addrs.cl (in the vanitygen directory) and around line 170 change:<\/p>\n<pre>__constant bignum bn_zero<\/pre>\n<p>to<\/p>\n<pre>__constant bignum bn_zero = { 0 }<\/pre>\n<p>If you get the following result:<\/p>\n<pre>Match idx: 0\r\nCPU hash: 98ea7880df7a77894766b188f2e4a108b7587cce\r\nGPU hash: 09bf67116407381c1ab321fb17415c332676a98d\r\nFound delta: 8380733 Start delta: 1\r\n[1.46 Mkey\/s][total 8388608]\r\natch idx: 0\r\nCPU hash: dfb3ee7568a67e146a130c34c435510ee24f07c0\r\nGPU hash: 09cc95e7ad00520e28a94b66a50d0803c6959332\r\nFound delta: 8385423 Start delta: 1\r\n[1.31 Mkey\/s][total 16777216]\r\natch idx: 0\r\nCPU hash: dd521582971523324d26241cb6897613faa5433a\r\nGPU hash: 09b10780c44af2aba351e58affe0b727606784ab\r\nFound delta: 8388561 Start delta: 1\r\n[1.26 Mkey\/s][total 25165824]<\/pre>\n<p>It means that there was a CPU hash mismatch to GPU hash so it keeps on trying. This will continue forever. Stop it and rerun it with<\/p>\n<pre>&gt; oclvanitygen.exe -S -D 0:0 -D 0:1 1test<\/pre>\n<p>which means safe mode which disables unrolling optimization. It should do the trick.<\/p>\n<h4>Summary<\/h4>\n<p>A vanity address is a nice to have address useful for auditable and open transactions such as donations and not typical daily transactions. The time it takes to generate ranges from minutes to years depending on the how long the desired word is and you can generate it yourself or pay for a service to do it for you.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction These have been around for a long time now<\/p>\n","protected":false},"author":1,"featured_media":1150,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-1144","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-bitcoins"],"featured_image_urls":{"full":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin.jpg",300,159,false],"thumbnail":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin-150x150.jpg",150,150,true],"medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin-300x159.jpg",300,159,true],"medium_large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin.jpg",300,159,false],"large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin.jpg",300,159,false],"1536x1536":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin.jpg",300,159,false],"2048x2048":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin.jpg",300,159,false],"chromenews-featured":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin.jpg",300,159,false],"chromenews-large":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin.jpg",300,159,false],"chromenews-medium":["https:\/\/www.talkcrypto.org\/blog\/wp-content\/uploads\/2017\/06\/vanitybitcoin.jpg",300,159,false]},"author_info":{"info":["seandotau"]},"category_info":"<a href=\"https:\/\/www.talkcrypto.org\/blog\/category\/bitcoins\/\" rel=\"category tag\">Bitcoins<\/a>","tag_info":"Bitcoins","comment_count":"2","_links":{"self":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/1144","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/comments?post=1144"}],"version-history":[{"count":8,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/1144\/revisions"}],"predecessor-version":[{"id":1157,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/posts\/1144\/revisions\/1157"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media\/1150"}],"wp:attachment":[{"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/media?parent=1144"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/categories?post=1144"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.talkcrypto.org\/blog\/wp-json\/wp\/v2\/tags?post=1144"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}