Bitcoin Forum
May 11, 2024, 07:12:58 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Brainwallet with Vanity Address  (Read 3806 times)
Bitcoin++ (OP)
Full Member
***
Offline Offline

Activity: 180
Merit: 100


View Profile
June 20, 2014, 12:58:28 PM
 #1

Is there any open source brainwallet that lets you make a vanity address, e.g. starts like 1777...?

If it does not exist it should be easy to make. In addition to the passphrase, the user should input the desired pattern. The javascript should generate addresses until pattern found. For each iteration it could use the passphrase + a counter.
1715411578
Hero Member
*
Offline Offline

Posts: 1715411578

View Profile Personal Message (Offline)

Ignore
1715411578
Reply with quote  #2

1715411578
Report to moderator
1715411578
Hero Member
*
Offline Offline

Posts: 1715411578

View Profile Personal Message (Offline)

Ignore
1715411578
Reply with quote  #2

1715411578
Report to moderator
1715411578
Hero Member
*
Offline Offline

Posts: 1715411578

View Profile Personal Message (Offline)

Ignore
1715411578
Reply with quote  #2

1715411578
Report to moderator
You get merit points when someone likes your post enough to give you some. And for every 2 merit points you receive, you can send 1 merit point to someone else!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715411578
Hero Member
*
Offline Offline

Posts: 1715411578

View Profile Personal Message (Offline)

Ignore
1715411578
Reply with quote  #2

1715411578
Report to moderator
JohnFromWIT
Member
**
Offline Offline

Activity: 112
Merit: 10


View Profile
June 20, 2014, 01:35:58 PM
 #2

You might end up with a huge number in your private key that you'd have to memorize.
But I think it could be done, maybe by making private keys out of random collection of words from a list.

Justin00
Legendary
*
Offline Offline

Activity: 910
Merit: 1000


★YoBit.Net★ 350+ Coins Exchange & Dice


View Profile
June 20, 2014, 02:24:52 PM
 #3

I know this isnt what you are after...
but couldnt you use vanitygen to generate desired address.. and just encrypt the privkey using gpg or whatever and just have that password protected with some long password you remember... kind of defeats brain wallet.. cause you need the backup... but the password part would be brainwallet-a-tised

or am I totally off track ?

TimS
Sr. Member
****
Offline Offline

Activity: 250
Merit: 253


View Profile WWW
June 20, 2014, 05:07:17 PM
 #4

Is there any open source brainwallet that lets you make a vanity address, e.g. starts like 1777...?

If it does not exist it should be easy to make. In addition to the passphrase, the user should input the desired pattern. The javascript should generate addresses until pattern found. For each iteration it could use the passphrase + a counter.
A significant amount of work can go into finding a vanity address. It could take a prohibitively long time to refind the vanity address (with JS on the CPU, no less) every time you want to access the wallet.

I'd want to include the end count, at least to a little precision, in the brain wallet. You could encode this as a passphrase. E.g. let's say that the JS can try 10k per second to brute force the vanity pattern, and the vanity pattern you wanted was the 57,434,567th thing tried. The program would find the index to remember is "5743", which it encodes as "maybe inside" (with a list like Electrum's, you can have over 2.6 million two-word combos); if you tell it your passphrase along with "maybe inside", the JS can find it within a second. If not, then you have to let it start from 0 to find it.

Or, just take the resulting private key and encode that (with diceware/Electrum-style encoding) as a series of words, and use that as your brainwallet. It would be twice as long as an Electrum seed, unfortunately, which would make for a pretty tough-to-remember brainwallet.
Bitcoin++ (OP)
Full Member
***
Offline Offline

Activity: 180
Merit: 100


View Profile
June 21, 2014, 03:15:44 PM
Last edit: June 23, 2014, 06:05:23 AM by Bitcoin++
 #5

I did the coding myself. Very simple.

In bitadress.org's HTML, lines 9086-9088, replace original code with this:

            var pattern = "77";
            var j = pattern.length + 1;
            var i = -1;
            var bytes;
            var btcKey;
            do {
            i = i + 1;
            bytes = Crypto.SHA256(key + i, { asBytes: true });
            btcKey = new Bitcoin.ECKey(bytes);
            } while (btcKey.getBitcoinAddress().substring(1, j) != pattern);
            var bitcoinAddress = btcKey.getBitcoinAddress();
            alert("Passphrase with nonce added : " + key + i);


You must replace "77" with whatever you please.

Note that the javascript will loop for a while. The browser may freeze.
dabura667
Sr. Member
****
Offline Offline

Activity: 475
Merit: 252


View Profile
June 22, 2014, 04:47:33 PM
 #6

I did the coding myself. Very simple.

In bitadress.org's HTML, lines 9086-9088, replace original code with this:

            var pattern = "77";
            var j = pattern.length + 1;
            var i = 0;
            var bytes;
            var btcKey;
            do {
            i = i + 1;
            bytes = Crypto.SHA256(key + i, { asBytes: true });
            btcKey = new Bitcoin.ECKey(bytes);
            } while (btcKey.getBitcoinAddress().substring(1, j) != pattern);
            var bitcoinAddress = btcKey.getBitcoinAddress();


You must replace "77" with whatever you please.

Note that the javascript will loop for a while. The browser may freeze.

Shouldn't you also change the javascript to display the nonce that must be added to the brainwallet to get the address? Otherwise it's not really a brainwallet...

My Tip Address:
1DXcHTJS2DJ3xDoxw22wCt11FeAsgfzdBU
Bitcoin++ (OP)
Full Member
***
Offline Offline

Activity: 180
Merit: 100


View Profile
June 23, 2014, 06:04:22 AM
 #7

Shouldn't you also change the javascript to display the nonce that must be added to the brainwallet to get the address? Otherwise it's not really a brainwallet...

Yes, with the nonce added you can recover the address also with the original brainwallet. If not, it can still be recovered with this modified version, though it needs to make the same slow loop.

I updated the code with a messagebox that shows passphrase plus nonce.
Harley997
Sr. Member
****
Offline Offline

Activity: 266
Merit: 250


View Profile
July 04, 2014, 05:18:51 PM
 #8

I know this isnt what you are after...
but couldnt you use vanitygen to generate desired address.. and just encrypt the privkey using gpg or whatever and just have that password protected with some long password you remember... kind of defeats brain wallet.. cause you need the backup... but the password part would be brainwallet-a-tised

or am I totally off track ?
This is probably the closest thing to a vanity brain wallet that you will find. A vanity address by definition must use a "random" private address that associates with the public address with your "vanity" while a brain wallet is a private key that uses some kind of algorithm to get from your "password" to your private key, the algorithm must be standard enough so that you can get to it from a number of different sources.

One option would be to generate a vanity address and a separate brain wallet. You would then create a script to be run on an EC2 instance that would automatically sweep funds from the vanity address into the brain wallet upon receipt.   

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
PRIMEDICE
The Premier Bitcoin Gambling Experience @PrimeDice
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
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!