From 3de4bfb62bcfbe708cd910d59f466b11b2110e8d Mon Sep 17 00:00:00 2001 From: dabura667 Date: Sun, 9 Aug 2015 02:39:57 +0900 Subject: [PATCH 1/2] Delete ninja.brainwallet.js --- src/ninja.brainwallet.js | 66 ---------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 src/ninja.brainwallet.js diff --git a/src/ninja.brainwallet.js b/src/ninja.brainwallet.js deleted file mode 100644 index aec0c7f3d..000000000 --- a/src/ninja.brainwallet.js +++ /dev/null @@ -1,66 +0,0 @@ -ninja.wallets.brainwallet = { - isOpen: function () { - return (document.getElementById("brainwallet").className.indexOf("selected") != -1); - }, - - open: function () { - document.getElementById("brainarea").style.display = "block"; - document.getElementById("brainpassphrase").focus(); - document.getElementById("brainwarning").innerHTML = ninja.translator.get("brainalertpassphrasewarning"); - }, - - close: function () { - document.getElementById("brainarea").style.display = "none"; - }, - - minPassphraseLength: 15, - - view: function () { - var key = document.getElementById("brainpassphrase").value.toString() - document.getElementById("brainpassphrase").value = key; - var keyConfirm = document.getElementById("brainpassphraseconfirm").value.toString() - document.getElementById("brainpassphraseconfirm").value = keyConfirm; - - if (key == keyConfirm || document.getElementById("brainpassphraseshow").checked) { - // enforce a minimum passphrase length - if (key.length >= ninja.wallets.brainwallet.minPassphraseLength) { - var bytes = Crypto.SHA256(key, { asBytes: true }); - var btcKey = new Bitcoin.ECKey(bytes); - var bitcoinAddress = btcKey.getBitcoinAddress(); - var privWif = btcKey.getBitcoinWalletImportFormat(); - document.getElementById("brainbtcaddress").innerHTML = bitcoinAddress; - document.getElementById("brainbtcprivwif").innerHTML = privWif; - ninja.qrCode.showQrCode({ - "brainqrcodepublic": bitcoinAddress, - "brainqrcodeprivate": privWif - }); - document.getElementById("brainkeyarea").style.visibility = "visible"; - } - else { - alert(ninja.translator.get("brainalertpassphrasetooshort") + ninja.translator.get("brainalertpassphrasewarning")); - ninja.wallets.brainwallet.clear(); - } - } - else { - alert(ninja.translator.get("brainalertpassphrasedoesnotmatch")); - ninja.wallets.brainwallet.clear(); - } - }, - - clear: function () { - document.getElementById("brainkeyarea").style.visibility = "hidden"; - }, - - showToggle: function (element) { - if (element.checked) { - document.getElementById("brainpassphrase").setAttribute("type", "text"); - document.getElementById("brainpassphraseconfirm").style.visibility = "hidden"; - document.getElementById("brainlabelconfirm").style.visibility = "hidden"; - } - else { - document.getElementById("brainpassphrase").setAttribute("type", "password"); - document.getElementById("brainpassphraseconfirm").style.visibility = "visible"; - document.getElementById("brainlabelconfirm").style.visibility = "visible"; - } - } -}; \ No newline at end of file From 750d2388a9a060f65862d86c372b75ca3897ba96 Mon Sep 17 00:00:00 2001 From: dabura667 Date: Sun, 9 Aug 2015 02:45:34 +0900 Subject: [PATCH 2/2] Update bitaddress.org.html --- bitaddress.org.html | 123 ++------------------------------------------ 1 file changed, 4 insertions(+), 119 deletions(-) diff --git a/bitaddress.org.html b/bitaddress.org.html index 51c7c04ee..e9e3af5db 100644 --- a/bitaddress.org.html +++ b/bitaddress.org.html @@ -6561,7 +6561,6 @@
  • Single Wallet
  • Paper Wallet
  • Bulk Wallet -
  • Brain Wallet
  • Vanity Wallet
  • Split Wallet
  • Wallet Details @@ -6671,40 +6670,6 @@ -
    -
    -
    - - - - -
    -
    - - - - Algorithm: SHA256(passphrase) -
    -
    -
    -
    -
    -
    -
    - Bitcoin Address: - -
    -
    -
    -
    -
    - Private Key (Wallet Import Format): - -
    -
    -
    -
    -