Pages:
Author

Topic: Vanitygen: Vanity bitcoin address generator/miner [v0.22] - page 87. (Read 1153678 times)

legendary
Activity: 1456
Merit: 1081
I may write code in exchange for bitcoins.
I generated a address that I am very fond of, 1Greekhut. I am working on getting a few more like 1Canary 1Sinker and 1Send. All case sensitive.

If you find a very beautiful or very weird one you should apply to the hall of fame: https://bitcointalksearch.org/topic/rare-address-hall-of-fame-90982
hero member
Activity: 518
Merit: 500
I generated a address that I am very fond of, 1Greekhut. I am working on getting a few more like 1Canary 1Sinker and 1Send. All case sensitive.
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
Bither and vangen seems to work perfect for me nly problems is tho where to tweek settings to improve speeds on generating for use with GPU as I cant seem to find them. Any ideas where one might find the settings to tinker around with?

Better to post in their thread. https://bitcointalksearch.org/topic/ann-bither-simplesecure-bitcoin-walletiosandroid-195-696626
legendary
Activity: 1820
Merit: 1001
Bither and vangen seems to work perfect for me nly problems is tho where to tweek settings to improve speeds on generating for use with GPU as I cant seem to find them. Any ideas where one might find the settings to tinker around with?
hero member
Activity: 686
Merit: 500
FUN > ROI
Hey, Thanks a lot , let me try this out.  Are you contemplating commiting a c/python version to  the vanitygen repo, so that others can use this too ?
Nah - it was purely to show how you could conceivably write a front-end to vanitygen(64) for polling a vanity mining pool, and in a language that's relatively easy to interpret and port to any other languages, so that one wouldn't have to mess with the oclvanityminer(64) code.
I might mess with it a bit just for kicks, add some buttons to the UI, check for shared keys, all that, but it'll never be something intended for general use Smiley
Keep in mind that it's unproven - I don't have nearly enough GPU power to figure out if the server ever responds with an OK! to a submission Wink  Not sure if ThePiachu put any server-side code anywhere.
hero member
Activity: 692
Merit: 569
hero member
Activity: 686
Merit: 500
FUN > ROI
Vanitygen doesn't accept pool url as parameter , Basically I want to join vanity pool vanitypool.appspot.com using cpu mining
You'd need a build of oclvanityminer64(.exe) without the OpenCL requirement - or see if your CPU shows up as an OpenCL device and select it specifically with the -D parameter.
In lieu of that, you can always set it up manually with vanitygen(.exe) or with some dirty bits of code - it's just http get/post to the pool anyway. Edit: actually, I seem to recall that they're both http get.

Edit 2: Just to show how simple it could be done (no error checking/optimization/etc.), a bit of AutoIt code that polls the most popular vanitypool server for work, selects either the most lavish or the shortest entry, and attempts to mine it.  A tiny GUI shows what's being mined, and feedback from vanitygen.  Consider it BSD-style licensed, so do with it what you will; try not to quote the entire post if you just want to point out corrections/etc. though, saves legacy code popping up for people from the future.
Code:
; ==================================================
; Vanitygen simpleton mining front-end v0.01
; https://bitcointalk.org/index.php?topic=25804.msg11084323#msg11084323
;
; v0.01 - 2015/04/14
;   Initial version.  Largely untested, mostly because there's no server to test against for matches.
;   Matches are always saved, however - see configuration below - so you can always try to manually submit.
; ~ TheRealSteve
;
; Requires: AutoIt - https://www.autoitscript.com/site/autoit/
; ==================================================

; ========== Configuration ==========
; SET YOUR ADDRESS HERE
$xsPayAddress = "1BitcoinEaterAddressDontSendf59kuE"

; Do you want to mine 1. the most lavish (best payout over average time taken)
; Or do you want to mine 2. the shortest (faster solves)
; NOTE: Unlike oclvanityminer, this script does not take into account searching for multiple vanities under the same keypart!
$xiMineTarget = 2

; Check for work every how many minutes?
$xiWorkInterval = 15

; Where's vanitygen stored?  No dir = same dir as script.
; You can also use this to specify oclvanitygen with OpenCL parameters
$xfVanitygen = "vanitygen64.exe"
; $xfVanitygen = "oclvanitygen64.exe -p 1"

; Where to store the server's getWork result?  No dir = same dir as script.
$xfGetWork = "getwork.lst"

; Where to store list of submitted results and server responses? No dir = same dir as script.
;   File format:
;     URL submitted
;     first line of server response - OK! = accepted, supposedly.
$xfPostWork = "postwork.lst"

; Temporary file name?  No dir = same dir as script.
$xfTempFile = "vanity.tmp"

; ========== Script ==========
; Don't modify anything here unless you know what you're doing
#include
#include

; Set up a little GUI
Opt("GUIOnEventMode", 1)
GUICreate("Vanitygen simpleton mining front-end v0.01", 400, 50)
Global $guiMiningLabel = GUICtrlCreateLabel("Now mining: ", 30, 10, 350)
Global $guiVanitygenLabel = GUICtrlCreateLabel("- waiting for vanitygen output -", 30, 24, 350)
Global $guiVanitygenLabel = GUICtrlCreateLabel("Payment to: " & $xsPayAddress, 30, 24, 350)
GUISetOnEvent($GUI_EVENT_CLOSE, "fnCloseButton")
GUISetState(@SW_SHOW)

Global $iVanitygenPid
OnAutoItExitRegister("fnCleanup")
While (1) ; Infinite loops are awesome.
; some variables
Local $sLavishVanity
Local $sLavishKey
Local $iLavishByte
Local $fLavishValue = 0

Local $sShortVanity
Local $iShortVanityLen = 32
Local $sShortKey
local $iShortByte
Local $fShortValue

Local $sWorkVanity
Local $iWorkByte
Local $sWorkKey

; Get work from the server
If (FileExists($xfGetWork)) Then
FileDelete($xfGetWork)
EndIf
InetGet ("https://vanitypool.appspot.com/getWork", $xfGetWork)
$hGetwork = FileOpen($xfGetWork)

; Parse the work to find the most lavish single entry, and the shortest single entry
$aWorkEntries = FileReadToArray($hGetwork)
For $sWorkEntry In $aWorkEntries
Local $aEntryElements = StringSplit($sWorkEntry,":") ; Split work entry into constituent parts
Local $_sVanity = $aEntryElements[1]
Local $_sKey = $aEntryElements[2]
Local $_iByte = $aEntryElements[3]
Local $_fLavishness = $aEntryElements[4]
If (StringRight($_fLavishness,1) == ";") Then
$_fLavishness = StringTrimRight($_fLavishness,1) ; remove trailing semicolon if there was no comment following (optional at this time anyway)
EndIf

; Check for shortest work entry
Local $iVanityLen = StringLen($_sVanity)
If (StringLeft($_sVanity,3) <> "111") Then ; None of that repeating ones stuff that throws off calculations.
If (($iVanityLen < $iShortVanityLen) Or (($iVanityLen == $iShortVanityLen) And ($_fLavishness > $fShortValue))) Then
$sShortVanity = $_sVanity
$iShortVanityLen = $iVanityLen
$sShortKey = $_sKey
$iShortByte = $_iByte
$fShortValue = $_fLavishness
EndIf
EndIf

; Check for most lavish work entry
If ($_fLavishness > $fLavishValue) Then
$fLavishValue = $_fLavishness
$sLavishVanity = $_sVanity
$iLavishByte = $_iByte
$sLavishKey = $_sKey
EndIf
Next
FileCLose($hGetwork)

; Decide which vanity to mine for
; Why isn't this optimized into the above?  Because this way the GUI can be extended with some radiobuttons to switch modes, if desired, without re-polling.
If ($xiMineTarget == 1) Then
$sWorkVanity = $sLavishVanity
$sWorkKey = $sLavishKey
$iWorkByte = $iLavishByte
ELseif ($xiMineTarget == 2) Then
$sWorkVanity = $sShortVanity
$sWorkKey = $sShortKey
$iWorkByte = $iShortByte
EndIf

; overrides for testing
; $sWorkVanity = "1abc"
; $sWorkKey  = "NotAKey"
; $iWorkByte = 0

; Begin mining
If (FileExists($xfTempFile)) Then
FileDelete($xfTempFile)
EndIf

GuiCtrlSetData($guiMiningLabel,"Now mining: " & $sWorkVanity)
$iVanitygenPid = Run($xfVanitygen & " -F compressed -P "&$sWorkKey&" -X "&$iWorkByte&" -o "&$xfTempFile&" "&$sWorkVanity,@ScriptDir,@SW_HIDE,$STDOUT_CHILD)
$iDelayProcessCheck = 250 ; Check for the process every 0.25s
$iDelayWorkPoll = $xiWorkInterval*60*1000 ; Check for work every $xiWorkInterval minutes
For $iDelayCounter = 0 To $iDelayWorkPoll Step $iDelayProcessCheck
; Inaccurate, but it'll do.
sleep($iDelayProcessCheck)

; Let's see what vanitygen has to say...
$sStdOut = StdoutRead($iVanitygenPid)
$aStdOut = StringSplit($sStdOut,@CRLF)
If ($aStdOut[0] >= 2) Then
GuiCtrlSetData($guiVanitygenLabel,$aStdOut[$aStdOut[0]])
EndIf

; If vanitygen exited early
If (Not ProcessExists($iVanitygenPid)) Then
; Maybe it found something!
If (FileExists($xfTempFile)) Then
$sPrivKey = StringTrimLeft(FileReadLine($xfTempFile,3),13) ; This is what we need, the generator part private key
FileDelete($xfTempFile)
Local $url = "https://vanitypool.appspot.com/solve?key=" &$sWorkVanity&":"&$sWorkKey&"&privateKey="&$sPrivKey&"&bitcoinAddress=" & $xsPayAddress
FileWriteLine($xfPostWork,"Input : " & $url)
InetGet($url,$xfTempFile,1)
FileWriteLine($xfPostWork,"Output: " & FileReadLine($xfTempFile,1))
FileDelete($xfTempFile)
EndIf
; Otherwise the user probably killed the process, or it crashed, or something.
; Either way, let's exit the process check loop
ExitLoop
EndIf
Next
; We've waited $xiWorkInterval minutes, kill vanitygen (if running)
fnCleanup()
; And start anew!
WEnd

; Called when getting new work, and when exiting the script - makes sure vanitygen is closed, files are cleaned up
Func fnCleanup()
If (ProcessExists($iVanitygenPid)) Then
ProcessClose($iVanitygenPid)
EndIf
If (FileExists($xfTempFile)) Then
FileDelete($xfTempFile)
EndIf
EndFunc

; Closed the GUI?  Then we better exit (the exit handler already takes care of cleanup)
Func fnCloseButton()
Exit
EndFunc
hero member
Activity: 692
Merit: 569
Can i run vanity miner using cpu , without opencl

Yes. Use Vanitygen or Vanitygen64. oclvanitygen(32 & 64) uses OpenCL.

Vanitygen doesn't accept pool url as parameter , Basically I want to join vanity pool vanitypool.appspot.com using cpu mining
legendary
Activity: 1820
Merit: 1001
Bither Desktop looks like a nice app going to try it and see how it works. I wonder if they keep the private keys or it is legit and secure to use.
legendary
Activity: 1512
Merit: 1012
Sounds nice, I'll try it soon! Is it the same vanitygen that is linked here? CPU+GPU or CPU only?
While it's not guaranteed that it matches the binaries, you can check out their repository here:
https://github.com/bither/

You can then see that they forked the original source code from samr7 and only made some changes with regard to compiling on OS X and specific libbed linux distros.
Separate binary compiles are in /bither-desktop-java/vanitygen

Code-wise, it looks like it calls those binaries similar to the way you would on a command line - so the GUI is in effect just a front-end similar to - but more polished than - that .bat file floating around on these forums somewhere Smiley

Looks good, thanks for sharing Smiley

Also, that Apple Watch app looks really cool! Smiley
hero member
Activity: 686
Merit: 500
FUN > ROI
Sounds nice, I'll try it soon! Is it the same vanitygen that is linked here? CPU+GPU or CPU only?
While it's not guaranteed that it matches the binaries, you can check out their repository here:
https://github.com/bither/

You can then see that they forked the original source code from samr7 and only made some changes with regard to compiling on OS X and specific libbed linux distros.
Separate binary compiles are in /bither-desktop-java/vanitygen

Code-wise, it looks like it calls those binaries similar to the way you would on a command line - so the GUI is in effect just a front-end similar to - but more polished than - that .bat file floating around on these forums somewhere Smiley
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
FYI: Bither wallet has implemented vanitygen into the wallet which gives makes it GUI vanitygen(sort of).

Sounds nice, I'll try it soon! Is it the same vanitygen that is linked here? CPU+GPU or CPU only?

I think so.

Bither Desktop v1.3.2 released with vanitygen  Grin




Latest release:

Bither iOS v1.3.2 now supports Apple Watch  Cheesy


legendary
Activity: 1512
Merit: 1012
FYI: Bither wallet has implemented vanitygen into the wallet which gives makes it GUI vanitygen(sort of).

Sounds nice, I'll try it soon! Is it the same vanitygen that is linked here? CPU+GPU or CPU only?
hero member
Activity: 560
Merit: 509
I prefer Zakir over Muhammed when mentioning me!
FYI: Bither wallet has implemented vanitygen into the wallet which gives makes it GUI vanitygen(sort of).
legendary
Activity: 1820
Merit: 1001
I need keyconv, does anyone have it? the latest version come without the keyconv Huh
Kangaderoo's repo has a Windows build:
https://github.com/kangaderoo/vanitygen/tree/master/WIN32Build

Would be nice if vanitygen had a GUI for it to make generating addresses with ease. Right now I have a fair few problems using to use with GPU I get it to generate but it never outputs addresses. Using cpu is perfectly fine however want to make more complex addresses with 5 digits custom of me own tan 3 to 4 if using 5 and beyond with cpu takes way too long. Any recommendations on how to get working with  an AMD R9 280x gpu
A GUI probably wouldn't help with your problems.  Would probably need somebody to look at the GPU code and figure out why it's not working properly for that card ( I seem to recall you asking about the 280x before, so I'm assuming you had no luck with existing info. )

Yeah I had looked at many different options before and indeed did look at trying to get resolved some months back and had a week on it then gave up and decided to try again with some more stuff I found and come across and still at a stand still with it. So think only way am going to succeed with this if I go on Linux or something and look at it in more detail and try to figure it out.
hero member
Activity: 686
Merit: 500
FUN > ROI
I need keyconv, does anyone have it? the latest version come without the keyconv Huh
Kangaderoo's repo has a Windows build:
https://github.com/kangaderoo/vanitygen/tree/master/WIN32Build

Would be nice if vanitygen had a GUI for it to make generating addresses with ease. Right now I have a fair few problems using to use with GPU I get it to generate but it never outputs addresses. Using cpu is perfectly fine however want to make more complex addresses with 5 digits custom of me own tan 3 to 4 if using 5 and beyond with cpu takes way too long. Any recommendations on how to get working with  an AMD R9 280x gpu
A GUI probably wouldn't help with your problems.  Would probably need somebody to look at the GPU code and figure out why it's not working properly for that card ( I seem to recall you asking about the 280x before, so I'm assuming you had no luck with existing info. )
legendary
Activity: 1820
Merit: 1001
Would be nice if vanitygen had a GUI for it to make generating addresses with ease. Right now I have a fair few problems using to use with GPU I get it to generate but it never outputs addresses. Using cpu is perfectly fine however want to make more complex addresses with 5 digits custom of me own tan 3 to 4 if using 5 and beyond with cpu takes way too long. Any recommendations on how to get working with  an AMD R9 280x gpu
newbie
Activity: 16
Merit: 0
I need keyconv, does anyone have it? the latest version come without the keyconv Huh
hero member
Activity: 686
Merit: 500
FUN > ROI
A distributed Vanity Address generator might be faster
If you can't consolidate the GPUs, just launch multiple times.. not that much of a PITA.  Though if you're volunteering, continued development would certainly be appreciated ( though I think a vanityminer with shares is nearer the top of the list if requests Wink )
member
Activity: 98
Merit: 10
A distributed Vanity Address generator might be faster, dividing work across all GPU's instead of one work per GPU. There are lots of distributed designs out there already, some open source but for CUDA, would need to convert CUDA language to OpenCL language. This would make it easier for those with large farms to utilize an address generator without it being a PITA to setup.
Pages:
Jump to: