From 9bccc5c512e245af9133ea2336cc8c8b7a6cba88 Mon Sep 17 00:00:00 2001 From: oliverdorn Date: Sat, 25 Nov 2017 00:49:16 +0100 Subject: [PATCH 01/23] Added Buttons for printing Paper Wallets Added Buttons for printint Paper Wallets for generated Legacy- and SegWit-Adresses --- index.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/index.html b/index.html index 353ac493..4a3cff53 100644 --- a/index.html +++ b/index.html @@ -321,6 +321,8 @@

Address Options

+

+
@@ -362,6 +364,8 @@

Address Options

+

+
From b997751791a1f8d1a0f0eb4941bd95b988294e70 Mon Sep 17 00:00:00 2001 From: oliverdorn Date: Sat, 25 Nov 2017 00:53:00 +0100 Subject: [PATCH 02/23] Added functionality for printing Paper Wallet --- js/coinbin.js | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) diff --git a/js/coinbin.js b/js/coinbin.js index c07170ad..15b77fe2 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -309,7 +309,19 @@ $(document).ready(function() { $("#aes256passStatus").removeClass("hidden"); } $("#newPrivKeyEnc").val(CryptoJS.AES.encrypt(coin.wif, $("#aes256pass").val())+''); - + $("#newPaperwalletBtn").prop("disabled", false); + }); + + $("#newPaperwalletBtn").click(function(){ + var paperwallet = window.open(); + paperwallet.document.write('

BTC PaperWallet


Address (Share)

'+$("#newBitcoinAddress").val()+'


Public Key

'+$("#newPubKey").val()+'



Private Key (KEEP SECRET!)

'+$("#newPrivKey").val()+'


'); + paperwallet.document.close(); + paperwallet.focus(); + new QRCode(paperwallet.document.getElementById("qraddress"), {text: $("#newBitcoinAddress").val(), width: 128, height: 128}); + new QRCode(paperwallet.document.getElementById("qrpubkey"), {text: $("#newPubKey").val(), width: 128, height: 128}); + new QRCode(paperwallet.document.getElementById("qrprivkey"), {text: $("#newPrivKey").val(), width: 128, height: 128}); + paperwallet.print(); + paperwallet.close(); }); $("#newBrainwallet").click(function(){ @@ -348,8 +360,21 @@ $(document).ready(function() { $("#newSegWitPubKey").val(coin.pubkey); $("#newSegWitPrivKey").val(coin.wif); coinjs.compressed = compressed; + $("#newSegwitPaperwalletBtn").prop("disabled", false); }); + $("#newSegwitPaperwalletBtn").click(function(){ + var paperwallet = window.open(); + paperwallet.document.write('

BTC SegWit PaperWallet


Address (Share)

'+$("#newSegWitAddress").val()+'


Public Key

'+$("#newSegWitPubKey").val()+'


Redeem Script

'+$("#newSegWitRedeemScript").val()+'



Private Key (KEEP SECRET!)

'+$("#newSegWitPrivKey").val()+'


'); + paperwallet.document.close(); + paperwallet.focus(); + new QRCode(paperwallet.document.getElementById("qraddress"), {text: $("#newSegWitAddress").val(), width: 128, height: 128}); + new QRCode(paperwallet.document.getElementById("qrpubkey"), {text: $("#newSegWitPubKey").val(), width: 128, height: 128}); + new QRCode(paperwallet.document.getElementById("qrredeem"), {text: $("#newSegWitRedeemScript").val(), width: 128, height: 128}); + new QRCode(paperwallet.document.getElementById("qrprivkey"), {text: $("#newSegWitPrivKey").val(), width: 128, height: 128}); + paperwallet.print(); + paperwallet.close(); + }); /* new -> multisig code */ From 87461b58b80ccac10b14a274a6a312d4b49b9975 Mon Sep 17 00:00:00 2001 From: Ivy Dong Date: Sun, 16 Dec 2018 20:04:27 +0800 Subject: [PATCH 03/23] remove redundant quotation marks --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 323edc3b..5f387a50 100644 --- a/index.html +++ b/index.html @@ -609,7 +609,7 @@

Transaction Create a new transaction

(80 byte limit, 40 bytes recommended)

- +

When using this option you may enter a hex string or address into the address field on the output tab.

From 3201550d40b1cb2228dbe2897053ffc06a1ec740 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 14:23:27 -0500 Subject: [PATCH 04/23] Add link to blockchain explorer for Chain.so (Dogecoin) --- js/coinbin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/coinbin.js b/js/coinbin.js index 01b0cce3..34001de5 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1313,7 +1313,7 @@ $(document).ready(function() { success: function(data) { // console.info(JSON.stringify(data, null, 4)); if((data.status && data.data) && data.status=='success'){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend(''); } From ebfb940dd59a4213c5eb9f6cf30c77b6b3cd9117 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 14:32:49 -0500 Subject: [PATCH 05/23] Fix typo in comment --- js/coinbin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/coinbin.js b/js/coinbin.js index 34001de5..e5c01768 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1181,7 +1181,7 @@ $(document).ready(function() { rawSubmitDefault(this); }); - // broadcast transaction vai coinbin (default) + // broadcast transaction via coinbin (default) function rawSubmitDefault(btn){ var thisbtn = btn; $(thisbtn).val('Please wait, loading...').attr('disabled',true); From 5c581316fe8c3d53a2ec82143ee3d4d503321b29 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 14:39:48 -0500 Subject: [PATCH 06/23] Add link to blockchain explorer for Chain.so (Bitcoin) --- js/coinbin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/coinbin.js b/js/coinbin.js index e5c01768..535829c5 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1253,7 +1253,7 @@ $(document).ready(function() { }, success: function(data) { if(data.status && data.data.txid){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: '+data.data.txid); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend(''); } From 2aca9ab28d3193a18acfd74ce048fc40dbf5b7f2 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 14:46:19 -0500 Subject: [PATCH 07/23] Add link to blockchain explorer for Blockcypher.com --- js/coinbin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/coinbin.js b/js/coinbin.js index 535829c5..b8403c84 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1281,7 +1281,7 @@ $(document).ready(function() { }, success: function(data) { if((data.tx) && data.tx.hash){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: '+data.tx.hash); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend(''); } From fcbf25eaecbf1c6af3196984e3c4656c946dbc14 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 15:20:43 -0500 Subject: [PATCH 08/23] Add link to blockchain explorer for coinb.in (Bitcoin) --- js/coinbin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/coinbin.js b/js/coinbin.js index b8403c84..c71d6821 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1196,8 +1196,7 @@ $(document).ready(function() { success: function(data) { $("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden'); if($(data).find("result").text()==1){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger'); - $("#rawTransactionStatus").html('txid: '+$(data).find("txid").text()); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + $(data).find("txid").text() + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend(' '); } From cb81362330effff884aed1fe798bfc522e796c87 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 15:21:39 -0500 Subject: [PATCH 09/23] Add link to blockchain explorer for Cryptoid.info (Carboncoin) --- js/coinbin.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/js/coinbin.js b/js/coinbin.js index c71d6821..59ab8792 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1222,8 +1222,7 @@ $(document).ready(function() { success: function(data) { $("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden'); if($(data).find("result").text()==1){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger'); - $("#rawTransactionStatus").html('txid: '+$(data).find("txid").text()); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + $(data).find("txid").text() + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend(' '); } From 9ccd73808d34f97e0b9019363a270f28faf89c78 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 15:23:09 -0500 Subject: [PATCH 10/23] Capitalize TXID in success message --- js/coinbin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/js/coinbin.js b/js/coinbin.js index 59ab8792..2949aff4 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1196,7 +1196,7 @@ $(document).ready(function() { success: function(data) { $("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden'); if($(data).find("result").text()==1){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + $(data).find("txid").text() + '
View on Blockchain Explorer'); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + $(data).find("txid").text() + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend(' '); } @@ -1222,7 +1222,7 @@ $(document).ready(function() { success: function(data) { $("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden'); if($(data).find("result").text()==1){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + $(data).find("txid").text() + '
View on Blockchain Explorer'); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + $(data).find("txid").text() + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend(' '); } @@ -1251,7 +1251,7 @@ $(document).ready(function() { }, success: function(data) { if(data.status && data.data.txid){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer'); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.data.txid + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend(''); } @@ -1279,7 +1279,7 @@ $(document).ready(function() { }, success: function(data) { if((data.tx) && data.tx.hash){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer'); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.data.txid + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend(''); } @@ -1311,7 +1311,7 @@ $(document).ready(function() { success: function(data) { // console.info(JSON.stringify(data, null, 4)); if((data.status && data.data) && data.status=='success'){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid + '
View on Blockchain Explorer'); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.data.txid + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend(''); } From f088ec2e52d91d0274f8476038959e4930164525 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 15:28:04 -0500 Subject: [PATCH 11/23] Update sha1sum --- sha1sum | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sha1sum b/sha1sum index f2fd201c..f4037018 100644 --- a/sha1sum +++ b/sha1sum @@ -1,8 +1,8 @@ ----- Version 1.4 2018.12.28 --- +---- Version 1.4 2019.01.06 --- 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js -cea69963334927160046abfda7ca82400b34d7fc ./js/coinbin.js +01454eccc09b5707a1373bf95bdb346705e3b32a ./js/coinbin.js d7e828cea4e9af4934cc500d022cb1b6ce12cbb0 ./js/coin.js 988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js 9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js @@ -31,4 +31,4 @@ de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.s 278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff 44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf c024021c71cba503979a859d23cbf7a88b570d82 ./README.md -26552aac02a06e88b419539f93032de8a25e1edd ./index.html +26552aac02a06e88b419539f93032de8a25e1edd ./index.html \ No newline at end of file From 2fc574dde0ea60e0c8a728ffdaea4a5c037261f9 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 15:34:25 -0500 Subject: [PATCH 12/23] Remove unnecessary linebreak at end --- js/coinbin.js | 2 +- sha1sum | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/coinbin.js b/js/coinbin.js index 2949aff4..f674e39e 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -2101,4 +2101,4 @@ $(document).ready(function() { return true; }; -}); +}); \ No newline at end of file diff --git a/sha1sum b/sha1sum index f4037018..0c39ae40 100644 --- a/sha1sum +++ b/sha1sum @@ -2,7 +2,7 @@ 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js -01454eccc09b5707a1373bf95bdb346705e3b32a ./js/coinbin.js +23b664385edee9bed31096c5fa542dfa4c52c0c8 ./js/coinbin.js d7e828cea4e9af4934cc500d022cb1b6ce12cbb0 ./js/coin.js 988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js 9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js From cdf4aa105b763e527aaaaa40a3ea26566289f1b0 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Wed, 6 Feb 2019 15:43:23 -0500 Subject: [PATCH 13/23] Fix variable name in broadcast success message --- js/coinbin.js | 2 +- sha1sum | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/coinbin.js b/js/coinbin.js index f674e39e..c287ddbd 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1279,7 +1279,7 @@ $(document).ready(function() { }, success: function(data) { if((data.tx) && data.tx.hash){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.data.txid + '
View on Blockchain Explorer'); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + data.tx.hash + '
View on Blockchain Explorer'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend(''); } diff --git a/sha1sum b/sha1sum index 0c39ae40..13a109b1 100644 --- a/sha1sum +++ b/sha1sum @@ -2,7 +2,7 @@ 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js -23b664385edee9bed31096c5fa542dfa4c52c0c8 ./js/coinbin.js +a61ad2055a75482f0f7478647fd9a726adfecfb9 ./js/coinbin.js d7e828cea4e9af4934cc500d022cb1b6ce12cbb0 ./js/coin.js 988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js 9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js From c9cfeefc86dd35df3f7f5baf5f0cc2bd780396c6 Mon Sep 17 00:00:00 2001 From: yottalogical Date: Fri, 22 Feb 2019 18:19:35 -0500 Subject: [PATCH 14/23] Correct month in sha1sum --- sha1sum | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sha1sum b/sha1sum index 13a109b1..da8e2d0e 100644 --- a/sha1sum +++ b/sha1sum @@ -1,4 +1,4 @@ ----- Version 1.4 2019.01.06 --- +---- Version 1.4 2019.02.06 --- 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js @@ -31,4 +31,4 @@ de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.s 278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff 44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf c024021c71cba503979a859d23cbf7a88b570d82 ./README.md -26552aac02a06e88b419539f93032de8a25e1edd ./index.html \ No newline at end of file +26552aac02a06e88b419539f93032de8a25e1edd ./index.html From c7a0fda7e546a98670a3894b47dba43978e96cd1 Mon Sep 17 00:00:00 2001 From: Wowee0 Date: Fri, 19 Apr 2019 10:40:59 -0500 Subject: [PATCH 15/23] re-enabled Litecoin --- index.html | 2 ++ js/coinbin.js | 47 ++++++++++++++++++++++++++++++++++++++++++----- 2 files changed, 44 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 323edc3b..6d3f3f0f 100644 --- a/index.html +++ b/index.html @@ -1334,6 +1334,7 @@

Settings making coinb.in even better!

Select which network you'd like to use for key pair generation.

diff --git a/js/coinbin.js b/js/coinbin.js index 01b0cce3..f9c67a6a 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1037,11 +1037,13 @@ $(document).ready(function() { $("#redeemFromAddress").removeClass('hidden').html(' Retrieved unspent inputs from address '+redeem.addr+''); for(var i in data.data.txs){ var o = data.data.txs[i]; - var tx = ((o.txid).match(/.{1,2}/g).reverse()).join("")+''; - var n = o.output_no; - var script = (redeem.redeemscript==true) ? redeem.decodedRs : o.script_hex; - var amount = o.value; - addOutput(tx, n, script, amount); + var tx = ((""+o.txid).match(/.{1,2}/g).reverse()).join("")+''; + if(tx.match(/^[a-f0-9]+$/)){ + var n = o.output_no; + var script = (redeem.redeemscript==true) ? redeem.decodedRs : o.script_hex; + var amount = o.value; + addOutput(tx, n, script, amount); + } } } else { $("#redeemFromStatus").removeClass('hidden').html(' Unexpected error, unable to retrieve unspent outputs.'); @@ -1294,6 +1296,37 @@ $(document).ready(function() { } + // broadcast transaction via chain.so for litecoin + function rawSubmitchainso_litecoin(thisbtn){ + $(thisbtn).val('Please wait, loading...').attr('disabled',true); + $.ajax ({ + type: "POST", + url: "https://chain.so/api/v2/send_tx/LTC", + data: {"tx_hex":$("#rawTransaction").val()}, + dataType: "json", + error: function(data) { + var obj = $.parseJSON(data.responseText); + var r = ' '; + r += (obj.data.tx_hex) ? ' '+obj.data.tx_hex : ''; + r = (r!='') ? r : ' Failed to broadcast'; // build response + $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(r).prepend(''); + // console.error(JSON.stringify(data, null, 4)); + }, + success: function(data) { + // console.info(JSON.stringify(data, null, 4)); + if((data.status && data.data) && data.status=='success'){ + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' Txid: ' + data.data.txid); + } else { + $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(' Unexpected error, please try again').prepend(''); + } + }, + complete: function(data, status) { + $("#rawTransactionStatus").fadeOut().fadeIn(); + $(thisbtn).val('Submit').attr('disabled',false); + } + }); + } + // broadcast transaction via chain.so for dogecoin function rawSubmitchainso_dogecoin(thisbtn){ $(thisbtn).val('Please wait, loading...').attr('disabled',true); @@ -1823,6 +1856,10 @@ $(document).ready(function() { $("#rawSubmitBtn").click(function(){ rawSubmitChainso_BitcoinMainnet(this); }); + } else if(host=="chain.so_litecoin"){ + $("#rawSubmitBtn").click(function(){ + rawSubmitchainso_litecoin(this); + }); } else if(host=="chain.so_dogecoin"){ $("#rawSubmitBtn").click(function(){ rawSubmitchainso_dogecoin(this); From 10aa011c6e2210d9657ce034b35fadd9f7a3aada Mon Sep 17 00:00:00 2001 From: Wowee0 Date: Sat, 20 Apr 2019 23:28:40 -0500 Subject: [PATCH 16/23] LTC SegWit (pre-bech32) address version changed from 5 to 50 (i.e. 3-addresses changed to M-addresses) --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 6d3f3f0f..ab06dd5c 100644 --- a/index.html +++ b/index.html @@ -1334,7 +1334,7 @@

Settings making coinb.in even better!

Select which network you'd like to use for key pair generation.

-

- +
+ + + +

@@ -385,9 +392,17 @@

Address Options

- -

- +
+ + + + +

diff --git a/js/coinbin.js b/js/coinbin.js index e3b1ed1c..cf55b44a 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -344,17 +344,20 @@ $(document).ready(function() { $("#aes256passStatus").removeClass("hidden"); } $("#newPrivKeyEnc").val(CryptoJS.AES.encrypt(coin.wif, $("#aes256pass").val())+''); - $("#newPaperwalletBtn").prop("disabled", false); }); $("#newPaperwalletBtn").click(function(){ + if($("#newBitcoinAddress").val()==""){ + $("#newKeysBtn").click(); + } + var paperwallet = window.open(); - paperwallet.document.write('

BTC PaperWallet


Address (Share)

'+$("#newBitcoinAddress").val()+'


Public Key

'+$("#newPubKey").val()+'



Private Key (KEEP SECRET!)

'+$("#newPrivKey").val()+'


'); + paperwallet.document.write('

BTC PaperWallet


Address (Share)

'+$("#newBitcoinAddress").val()+'


Public Key

'+$("#newPubKey").val()+'


Private Key (KEEP SECRET!)

'+$("#newPrivKey").val()+'

'); paperwallet.document.close(); paperwallet.focus(); - new QRCode(paperwallet.document.getElementById("qraddress"), {text: $("#newBitcoinAddress").val(), width: 128, height: 128}); - new QRCode(paperwallet.document.getElementById("qrpubkey"), {text: $("#newPubKey").val(), width: 128, height: 128}); - new QRCode(paperwallet.document.getElementById("qrprivkey"), {text: $("#newPrivKey").val(), width: 128, height: 128}); + new QRCode(paperwallet.document.getElementById("qraddress"), {text: $("#newBitcoinAddress").val(), width: 125, height: 125}); + new QRCode(paperwallet.document.getElementById("qrpubkey"), {text: $("#newPubKey").val(), width: 125, height: 125}); + new QRCode(paperwallet.document.getElementById("qrprivkey"), {text: $("#newPrivKey").val(), width: 125, height: 125}); paperwallet.print(); paperwallet.close(); }); @@ -402,18 +405,21 @@ $(document).ready(function() { $("#newSegWitPubKey").val(coin.pubkey); $("#newSegWitPrivKey").val(coin.wif); coinjs.compressed = compressed; - $("#newSegwitPaperwalletBtn").prop("disabled", false); }); $("#newSegwitPaperwalletBtn").click(function(){ + if($("#newSegWitAddress").val()==""){ + $("#newSegWitKeysBtn").click(); + } + var paperwallet = window.open(); - paperwallet.document.write('

BTC SegWit PaperWallet


Address (Share)

'+$("#newSegWitAddress").val()+'


Public Key

'+$("#newSegWitPubKey").val()+'


Redeem Script

'+$("#newSegWitRedeemScript").val()+'



Private Key (KEEP SECRET!)

'+$("#newSegWitPrivKey").val()+'


'); + paperwallet.document.write('

BTC SegWit PaperWallet


Address (Share)

'+$("#newSegWitAddress").val()+'


Public Key

'+$("#newSegWitPubKey").val()+'


Redeem Script

'+$("#newSegWitRedeemScript").val()+'


Private Key (KEEP SECRET!)

'+$("#newSegWitPrivKey").val()+'

'); paperwallet.document.close(); paperwallet.focus(); - new QRCode(paperwallet.document.getElementById("qraddress"), {text: $("#newSegWitAddress").val(), width: 128, height: 128}); - new QRCode(paperwallet.document.getElementById("qrpubkey"), {text: $("#newSegWitPubKey").val(), width: 128, height: 128}); - new QRCode(paperwallet.document.getElementById("qrredeem"), {text: $("#newSegWitRedeemScript").val(), width: 128, height: 128}); - new QRCode(paperwallet.document.getElementById("qrprivkey"), {text: $("#newSegWitPrivKey").val(), width: 128, height: 128}); + new QRCode(paperwallet.document.getElementById("qraddress"), {text: $("#newSegWitAddress").val(), width: 110, height: 110}); + new QRCode(paperwallet.document.getElementById("qrpubkey"), {text: $("#newSegWitPubKey").val(), width: 110, height: 110}); + new QRCode(paperwallet.document.getElementById("qrredeem"), {text: $("#newSegWitRedeemScript").val(), width: 110, height: 110}); + new QRCode(paperwallet.document.getElementById("qrprivkey"), {text: $("#newSegWitPrivKey").val(), width: 110, height: 110}); paperwallet.print(); paperwallet.close(); }); @@ -2171,4 +2177,4 @@ $(document).ready(function() { return true; }; -}); \ No newline at end of file +}); diff --git a/sha1sum b/sha1sum index 13188375..f6caa02e 100644 --- a/sha1sum +++ b/sha1sum @@ -1,8 +1,8 @@ ----- Version 1.4 2019.05.05 --- +---- Version 1.4 2019.05.24 --- 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js -82b602589fb4cf9be970fb67a9fc1a9b504d8075 ./js/coinbin.js +e78a1273d4e0d98fe7c24a991251f6bb8a0f0da7 .js/coinbin.js d7e828cea4e9af4934cc500d022cb1b6ce12cbb0 ./js/coin.js 988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js 9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js @@ -31,4 +31,5 @@ de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.s 278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff 44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf c024021c71cba503979a859d23cbf7a88b570d82 ./README.md -ec9ad10deec0de54879c05fcfe44a96270458265 ./index.html +42541e9411de4550496cea79f2eb1edb4dcf2922 ./index.html + From 40ea3230fd13c9fc42820505cea553376342c177 Mon Sep 17 00:00:00 2001 From: OutCast3k Date: Tue, 28 May 2019 15:21:58 +0000 Subject: [PATCH 22/23] removed blockchain.com links --- js/coinbin.js | 2 +- sha1sum | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/coinbin.js b/js/coinbin.js index cf55b44a..759ddd0a 100644 --- a/js/coinbin.js +++ b/js/coinbin.js @@ -1229,7 +1229,7 @@ $(document).ready(function() { success: function(data) { $("#rawTransactionStatus").html(unescape($(data).find("response").text()).replace(/\+/g,' ')).removeClass('hidden'); if($(data).find("result").text()==1){ - $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + $(data).find("txid").text() + '
View on Blockchain Explorer'); + $("#rawTransactionStatus").addClass('alert-success').removeClass('alert-danger').removeClass("hidden").html(' TXID: ' + $(data).find("txid").text() + '
View on Blockchain'); } else { $("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend(' '); } diff --git a/sha1sum b/sha1sum index f6caa02e..fa452b2c 100644 --- a/sha1sum +++ b/sha1sum @@ -2,7 +2,7 @@ 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js -e78a1273d4e0d98fe7c24a991251f6bb8a0f0da7 .js/coinbin.js +c151bb100bb186b58407b18055d354abca92042a ./js/coinbin.js d7e828cea4e9af4934cc500d022cb1b6ce12cbb0 ./js/coin.js 988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js 9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js From e73e8093b3f7b68ca861490f351b48631ef70636 Mon Sep 17 00:00:00 2001 From: OutCast3k Date: Wed, 5 Jun 2019 19:34:45 +0000 Subject: [PATCH 23/23] change made to avoid captcha provided by cloudflare to TOR users --- js/coin.js | 3 ++- sha1sum | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/js/coin.js b/js/coin.js index 87a94a68..b25c197c 100644 --- a/js/coin.js +++ b/js/coin.js @@ -22,7 +22,8 @@ coinjs.developer = '3K1oFZMks41C7qDYBsr72SYjapLqDuSYuN'; //bitcoin /* bit(coinb.in) api vars */ - coinjs.host = ('https:'==document.location.protocol?'https://':'http://')+'coinb.in/api/'; + coinjs.hostname = ((document.location.hostname.split(".")[(document.location.hostname.split(".")).length-1]) == 'onion') ? '4zpinp6gdkjfplhk.onion' : 'coinb.in'; + coinjs.host = ('https:'==document.location.protocol?'https://':'http://')+coinjs.hostname+'/api/'; coinjs.uid = '1'; coinjs.key = '12345678901234567890123456789012'; diff --git a/sha1sum b/sha1sum index fa452b2c..e4d7d26e 100644 --- a/sha1sum +++ b/sha1sum @@ -1,9 +1,9 @@ ----- Version 1.4 2019.05.24 --- +---- Version 1.4 2019.06.05 ---- 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js c151bb100bb186b58407b18055d354abca92042a ./js/coinbin.js -d7e828cea4e9af4934cc500d022cb1b6ce12cbb0 ./js/coin.js +8f1286e72a6b06259ba1892e532cb35b11c88c37 ./js/coin.js 988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js 9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js f7c09f2f5a721371e7d478050119f7e2d58e3ef9 ./js/crypto-sha256-hmac.js