Update bitaddress.org.html
Generate vanity pattern for single wallet, paper wallet and bulk wallet.
This commit is contained in:
parent
ca3e489d37
commit
a636e98532
1 changed files with 13 additions and 7 deletions
|
@ -19,11 +19,11 @@
|
|||
do {
|
||||
var key = new Bitcoin.ECKey(false);
|
||||
var bitcoinAddress = key.getBitcoinAddress();
|
||||
} while (bitcoinAddress.substring(0,vanitylength) != vanitypattern)
|
||||
} while (bitcoinAddress.substring(0,vanitypattern.length) != vanitypattern)
|
||||
- for Bulk Wallet:
|
||||
do {
|
||||
var key = new Bitcoin.ECKey(false);
|
||||
} while (key.getBitcoinAddress().substring(0,vanitylength) != vanitypattern)
|
||||
} while (key.getBitcoinAddress().substring(0,vanitypattern.length) != vanitypattern)
|
||||
|
||||
Notice of Copyrights and Licenses:
|
||||
***********************************
|
||||
|
@ -9041,8 +9041,10 @@ ninja.wallets.singlewallet = {
|
|||
// generate bitcoin address and private key and update information in the HTML
|
||||
generateNewAddressAndKey: function () {
|
||||
try {
|
||||
do {
|
||||
var key = new Bitcoin.ECKey(false);
|
||||
var bitcoinAddress = key.getBitcoinAddress();
|
||||
} while (bitcoinAddress.substring(0,vanitypattern.length) != vanitypattern
|
||||
var privateKeyWif = key.getBitcoinWalletImportFormat();
|
||||
document.getElementById("btcaddress").innerHTML = bitcoinAddress;
|
||||
document.getElementById("btcprivwif").innerHTML = privateKeyWif;
|
||||
|
@ -9172,8 +9174,10 @@ ninja.wallets.paperwallet = {
|
|||
});
|
||||
}
|
||||
else {
|
||||
do {
|
||||
var key = new Bitcoin.ECKey(false);
|
||||
var bitcoinAddress = key.getBitcoinAddress();
|
||||
} while (bitcoinAddress.substring(0,vanitypattern.length) != vanitypattern
|
||||
var privateKeyWif = key.getBitcoinWalletImportFormat();
|
||||
if (ninja.wallets.paperwallet.useArtisticWallet) {
|
||||
ninja.wallets.paperwallet.showArtisticWallet(idPostFix, bitcoinAddress, privateKeyWif);
|
||||
|
@ -9349,7 +9353,9 @@ ninja.wallets.bulkwallet = {
|
|||
var bulkWallet = ninja.wallets.bulkwallet;
|
||||
if (bulkWallet.csvRowsRemaining > 0) {
|
||||
bulkWallet.csvRowsRemaining--;
|
||||
do {
|
||||
var key = new Bitcoin.ECKey(false);
|
||||
} while (key.getBitcoinAddress().substring(0,vanitypattern.length) != vanitypattern)
|
||||
key.setCompressed(bulkWallet.compressedAddrs);
|
||||
|
||||
bulkWallet.csv.push((bulkWallet.csvRowLimit - bulkWallet.csvRowsRemaining + bulkWallet.csvStartIndex)
|
||||
|
|
Loading…
Add table
Reference in a new issue