Ok, here's the reason: I want to make some gift for Christmas, and I have generated a lot of vanity address for every person (the nickname of the person is in the address). So, I would like to put their vanity address on a nice Paper Wallet. This should explain why I'm asking that. Of course I'll warn the people that receive the gift that I could know their private key (though I don't), and they should transfer the money on a new address.
Yes, I'll use the offline javascript, and yes, I know what I'm doing.
Ciao,
IlMao.
Ok, I've done it by myself. I hoped to save some time to not scroll the entire code finding the right place to force an address before to print the Paper Wallet, but the old "If you want something done, do it yourself" is always valid
Anyway, here is a very simple solution:
Im the bitaddress.org source (I don't explain how to use the offline source, of course), find the line
ninja.wallets.paperwallet.showArtisticWallet(idPostFix, bitcoinAddress, privateKeyWif);
it is in the generateNewWallet function. After this line, add some line like these ones:
if (idPostFix == 1) ninja.wallets.paperwallet.showArtisticWallet(idPostFix, "1BkitgPRgiQWPYP6uyRE1bYM3gscKne5zT", "5Jiyo6RqEtX5iD6EQFoBUHg1HrxEemhQYEERDftLY1M4gNNZK8i");
if (idPostFix == 2) ninja.wallets.paperwallet.showArtisticWallet(idPostFix, "1G1tu9fzMYF4GtuDuuNrzQxmdr5ZtzcRwh", "5JDRUi45wjVNi9Z5NzHYg1kiRwJVgHXHprJxRdrkDEqVuFYb1sT");
I believe you have got the point: just substitute the variable bitcoinAddress with your public key, and privateKeyWif with the private one. Then, use a progressive number as for var idPostFix.
That's it! Then generate the Paper Wallet as usual, and program will use your keys to print them, creating art and QR code.
Now I can create my gifts... May be it could be useful for someone else.
Ciao,
IlMao.