added comp wif to csv

This commit is contained in:
coretechs 2012-03-08 23:39:49 -05:00
parent 099201cc62
commit bdaa695478

View file

@ -3763,7 +3763,7 @@
return privWif;
};
// Compressed Sipa Private Key Wallet Import Format (added by coretechs)
// Compressed Sipa Private Key Wallet Import Format
ECKey.prototype.getBitcoinWalletImportFormatComp = function () {
// Get a copy of private key as a byte array
var bytes = this.priv.toByteArrayUnsigned();
@ -4417,7 +4417,7 @@
var key = new Bitcoin.ECKey(false);
bulkWallet.csv.push((bulkWallet.csvRowLimit - bulkWallet.csvRowsRemaining + bulkWallet.csvStartIndex)
+ ",\"" + key.getBitcoinAddress() + "\",\"" + key.getBitcoinWalletImportFormat()
+ ",\"" + key.getBitcoinAddress() + "\",\"" + key.toString("wif") + "\",\"" + key.toString("wifcomp")
//+ "\",\"" + key.getBitcoinHexFormat() + "\",\"" + key.toString("base64") // uncomment this line to add different private key formats to the CSV
+ "\"");