various small updates and bug fixes to improve user experience

This commit is contained in:
root 2021-10-23 18:06:36 +00:00
parent 9a0175e18f
commit 6fdbbae67b
10 changed files with 194 additions and 105 deletions

View file

@ -1,9 +1,9 @@
coinbin coinbin
======= =======
A Open Source Browser Based Bitcoin Wallet. Version 1.6 beta by OutCast3k A Open Source Browser Based Bitcoin Wallet. Version 1.7 beta by OutCast3k
Live version available at http://coinb.in/ or http://4zpinp6gdkjfplhk.onion Live version available at http://coinb.in/ or coinbin3ravkwb24f7rmxx6w3snkjw45jhs5lxbh3yfeg3vpt6janwqd.onion
Github URL: https://github.com/OutCast3k/coinbin/ Github URL: https://github.com/OutCast3k/coinbin/

BIN
images/bitrefill16x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

BIN
images/changelly16x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 B

BIN
images/coinbin.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

125
images/coinbin.svg Normal file
View file

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 18.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 3080 952" enable-background="new 0 0 3080 952" xml:space="preserve">
<path fill="#695F3D" d="M131,263c0,0,249.3,150.4,475.5-6.7C606.4,256.2,401.2,87.1,131,263z"/>
<g>
<linearGradient id="SVGID_1_" gradientUnits="userSpaceOnUse" x1="556.3605" y1="430.2783" x2="113.3624" y2="47.5836">
<stop offset="0" style="stop-color:#747573"/>
<stop offset="0.1084" style="stop-color:#E7E8E7"/>
<stop offset="0.3054" style="stop-color:#C5C6C4"/>
<stop offset="0.5025" style="stop-color:#FFFFFF"/>
<stop offset="0.6798" style="stop-color:#A7A9A6"/>
<stop offset="0.8571" style="stop-color:#DADADA"/>
<stop offset="1" style="stop-color:#686967"/>
</linearGradient>
<path fill="url(#SVGID_1_)" d="M286.3,171.8c-143.1,19.6-190.1,84.5-190.1,84.5l26.7,45.8l95.1,80L579.8,367l53.9-110.7
c-7.4-18.7-39.2-36-75.3-50.3C472.1,171.9,378.2,159.2,286.3,171.8z M146,256.2c252.8-143.2,433.7,0,433.7,0
C383.8,387.9,146,256.2,146,256.2z"/>
</g>
<linearGradient id="SVGID_2_" gradientUnits="userSpaceOnUse" x1="96.1755" y1="519.8702" x2="633.6877" y2="519.8702">
<stop offset="0" style="stop-color:#747573"/>
<stop offset="0.1084" style="stop-color:#E7E8E7"/>
<stop offset="0.3054" style="stop-color:#C5C6C4"/>
<stop offset="0.5025" style="stop-color:#FFFFFF"/>
<stop offset="0.6798" style="stop-color:#A7A9A6"/>
<stop offset="0.8571" style="stop-color:#DADADA"/>
<stop offset="1" style="stop-color:#686967"/>
</linearGradient>
<path fill="url(#SVGID_2_)" d="M96.2,256.2l55.7,466.2c0,0,187.9,137.4,438.4,0l43.5-466.2c0,0-58.3,86.1-279.2,80.9
C354.5,337.1,145.8,332.8,96.2,256.2z"/>
<path fill="#E3B852" d="M193.5,277.6c0,0-53.8-94.7,73.6-102.8c0,0,104.3,6.2,94,139.5C361.1,314.3,258.2,307.8,193.5,277.6z"/>
<path fill="#E3B852" d="M385.8,314.3c0,0-14.6-96.1,93.6-110.3c34.8-4.6,76,21.6,78.9,57.5c0.2,2.5,0.3,5.1,0.2,7.8
C558.6,269.4,501.5,314.1,385.8,314.3z"/>
<path fill="#E3B852" d="M311.6,190.3c0,0,10.6-50.9,54.2-47.3c31.6,2.6,58.1,27.7,61.1,59.3c0.9,9.8-0.1,20.8-4.9,32.5l-16.2,54.4
c0,0-56.5,22.6-69.6-11.3L311.6,190.3z"/>
<path fill="#CDA547" d="M226,289.2c0,0-50.7-94.7,30.2-89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,216.5l-1.3,0.3l0.2,9.8c0.1,1.7,0.3,1.9,1.8,1.9l2.1,0c1.8,0,3.8-0.1,5.8-0.5
c1.7-0.4,2.9-0.9,3.9-1.7c1.5-1.3,2.4-3.2,2.1-4.9c-0.3-1.7-1.4-3.1-3.3-3.9c-0.7-0.3-1.5-0.5-2.3-0.7l-1.6-0.2
c-1.1-0.1-2.2-0.2-3.3-0.2C369,216.3,366.2,216.5,366.2,216.5z M369.3,201.1c-1.2,0-2.4,0.1-3.6,0.1l-0.1,0.1l-1.4,0.7l0.4,9.3
l1.4,0.8l3.2,0c1.9-0.1,4-0.3,5.9-1.3c1.3-0.7,2.2-1.9,2.6-3.2c0.3-1.2,0.1-2.4-0.5-3.5c-1.1-1.9-3.1-2.5-4.6-2.8
C371.5,201.2,370.4,201.1,369.3,201.1z"/>
</g>
<g>
<path fill="#686967" d="M364.5,789.4c-102.8,0-176.6-39-204.6-56.5c-7.6-4.7-12.5-12.6-13.6-21.6L93.2,261.4l3-5.2l58.4,454
c0.8,6.5,4.3,12.1,9.7,15.5c44.1,27.7,204,109.3,411.7-0.4c6.3-3.3,10.7-9.9,11.4-17.2l46.3-451.9l4.2,5.2L595.7,709
c-1,10-7,19.2-15.8,23.8C499.9,775,426.9,789.4,364.5,789.4z"/>
</g>
<path fill="#CDA547" d="M2290.3,592.5c0-25.4,19.1-42.9,46.4-42.9c26.8,0,45.4,17.1,45.9,42.9c0,24.5-18.5,42.5-46.9,42.5
C2309.3,634.9,2290.3,616.9,2290.3,592.5z"/>
<g>
<g>
<path fill="#5F615E" d="M943.1,637.9c-94.7,0-153.5-50.6-153.5-132.1c0-82.3,66.8-137.6,166.3-137.6c22.6,0,47.3,3.4,65.7,9
l-12.6,53.3c-13.4-4.5-29.7-6.8-48.8-6.8c-25.5,0-47.8,8.4-62.9,23.8c-14,14.2-21.3,33.3-21,55.1c0,47.1,34.5,78.8,85.7,78.8
c19,0,35.3-2.4,49.7-7.3l9.5,52.9C1003.4,633.7,973.4,637.9,943.1,637.9z"/>
</g>
<g>
<path fill="#5F615E" d="M1207.3,638.5c-89.6,0-149.9-53.5-149.9-133.2c0-83.6,61-137.6,155.3-137.6c88.2,0,147.4,53.3,147.4,132.7
C1360.2,595.8,1283.4,638.5,1207.3,638.5z M1209.7,418.8c-48,0-65.1,45.4-65.1,84.3c0,51.2,25.5,84.3,65.1,84.3
c38.4,0,63.2-33.3,63.2-84.8C1273,463.9,1256.4,418.8,1209.7,418.8z"/>
</g>
<g>
<path fill="#5F615E" d="M1782.6,632.5V488.9c0-39.9-18.1-61.9-51-61.9c-22.9,0-42.1,12.5-51.3,33.6c-2.3,5.2-3.4,12.3-3.4,22.4
v149.5h-84.2V455.1c0-30.8-1-57.1-2.2-80.9h72.3l4.3,37.1h7.7l1.3-1.8c13.9-20,44.5-41.3,88.5-41.3c65.1,0,102.4,40.4,102.4,110.8
v153.4H1782.6z"/>
</g>
<g>
<path fill="#5F615E" d="M2115.7,638.5c-26.9,0-63.7-7.1-86-41.2l-1.2-1.9h-6l-1.6,3.8l-3.3,33.3h-70.3c1.1-17.7,2.2-47.1,2.2-75.4
V253.8h84.2v152.1h6.2l2.5-1.6c17.9-23.2,48.7-36,86.8-36c32.8,0,61.3,11.3,82.5,32.7c23.6,23.8,35.9,57.6,35.6,97.7
C2247.3,594.7,2179.1,638.5,2115.7,638.5z M2093.8,423.7c-27.3,0-51.8,18.5-58.2,44c-1.3,5.3-1.9,10.7-1.9,16.3v39.2
c0,5.8,0.7,11.1,2,15.8c7,24.9,30.9,42.3,58.2,42.3c42.6,0,68.1-29.7,68.1-79.4C2161.9,453.7,2135.8,423.7,2093.8,423.7z"/>
</g>
<g>
<path fill="#5F615E" d="M2807.8,632.5V488.9c0-39.9-18.1-61.9-51-61.9c-22.9,0-42.1,12.5-51.3,33.6c-2.3,5.2-3.4,12.3-3.4,22.4
v149.5h-84.2V455.1c0-30.8-1-57.1-2.2-80.9h72.3l4.3,37.1h7.7l1.3-1.8c13.9-20,44.5-41.3,88.5-41.3c65.1,0,102.4,40.4,102.4,110.8
v153.4H2807.8z"/>
</g>
<g>
<rect x="1430.2" y="258.7" fill="#5F615E" width="76" height="73.4"/>
</g>
<g>
<rect x="1425.5" y="373.5" fill="#5F615E" width="80.7" height="257.2"/>
</g>
<g>
<rect x="2473.9" y="258.7" fill="#5F615E" width="76" height="73.4"/>
</g>
<g>
<rect x="2469.2" y="373.5" fill="#5F615E" width="80.7" height="257.2"/>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
images/hodlhodl16x.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 724 B

View file

@ -51,7 +51,7 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<a href="#home" class="navbar-brand" id="homeBtn"><img src="images/coinbin.gif" style="height:25px;margin-top:-5px"></a> <a href="#home" class="navbar-brand" id="homeBtn"><img src="images/coinbin.png" style="height:49px;margin-top:-15px"></a>
</div> </div>
<div class="collapse navbar-collapse"> <div class="collapse navbar-collapse">
<ul class="nav navbar-nav"> <ul class="nav navbar-nav">
@ -71,10 +71,17 @@
<li><a href="#sign" data-toggle="tab"><span class="glyphicon glyphicon-pencil"></span> Sign</a></li> <li><a href="#sign" data-toggle="tab"><span class="glyphicon glyphicon-pencil"></span> Sign</a></li>
<li><a href="#broadcast" data-toggle="tab"><span class="glyphicon glyphicon-globe"></span> Broadcast</a></li> <li><a href="#broadcast" data-toggle="tab"><span class="glyphicon glyphicon-globe"></span> Broadcast</a></li>
<li><a href="#wallet" data-toggle="tab"><span class="glyphicon glyphicon-briefcase"></span> Wallet</a></li> <li><a href="#wallet" data-toggle="tab"><span class="glyphicon glyphicon-briefcase"></span> Wallet</a></li>
<li><a href="#about" data-toggle="tab"><span class="glyphicon glyphicon-info-sign"></span> About</a></li>
<li class="hidden"><a href="#settings" data-toggle="tab"><span class="glyphicon glyphicon-cog"></span> Settings</a></li> <li class="dropdown">
<li class="hidden"><a href="#fees" data-toggle="tab"><span class="glyphicon glyphicon-tag"></span> Fees</a></li> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-info-sign"></span> Help<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#settings" data-toggle="tab">Settings</a></li>
<li><a href="#fees" data-toggle="tab">Fee Calculator</a></li>
<li><a href="https://status.coinb.in/" target="_blank">Service Status</a></li>
<li role="separator" class="divider"></li>
<li><a href="#about" data-toggle="tab">About</a></li>
</ul>
</li>
</ul> </ul>
</div> </div>
</div> </div>
@ -200,14 +207,29 @@
<ul class="nav nav-pills" role="tablist"> <ul class="nav nav-pills" role="tablist">
<li role="presentation" class="active"><a href="javascript:;" id="walletBalance">0.00 BTC</a></li> <li role="presentation" class="active"><a href="javascript:;" id="walletBalance">0.00 BTC</a></li>
<li role="presentation"><a href="javascript:;" id="walletShowSpend">Spend</a></li> <li role="presentation"><a href="javascript:;" id="walletShowSpend">Spend</a></li>
<li role="presentation"><a id="walletHistory" href="javascript:;" target="_blank">History</a></li> <li role="presentation"><a href="javascript:;" id="walletHistory" target="_blank">History</a></li>
<li role="presentation"><a href="https://localbitcoins.com/?ch=173j" target="_blank">Buy</a></li> <li role="presentation"><a href="javascript:;" id="walletShowBuy">Buy</a></li>
<li role="presentation"><a href="javascript:;" id="walletShowKeys">Keys</a></li> <li role="presentation"><a href="javascript:;" id="walletShowKeys">Keys</a></li>
</ul> </ul>
<br> <br>
<div id="walletKeys" class="hidden"> <div id="walletBuy" class="row walletOptions hidden">
<div class="col-md-6">
<label>Exchanges</label>
<p><img src="images/hodlhodl16x.png" style="padding:2;"> <b><a href="https://hodlhodl.com/join/XD4F" target="_bank">HodlHodl</a></b><br>Multisig p2p exchange</p>
<p><img src="images/changelly16x.png" style="padding:2;"> <b><a href="https://changelly.com/buy?from=usd&to=btc&amount=150&ref_id=wdo6tcw9bn9yrd91" target="_blank">Changelly</a></b> <br>Instant crypto exchange</p>
</div>
<div class="col-md-6">
<label>Services</label>
<p><img src="images/bitrefill16x.png" style="padding:2;"> <b><a href="https://www.bitrefill.com/signup/?code=zwuxxhbo" target="_bank">Bitrefill</a></b><br>Coupons and vouchers</p>
</div>
</div>
<div id="walletKeys" class="walletOptions hidden">
<label>Public Key</label> <label>Public Key</label>
<input class="form-control pubkey" type="text" readonly> <input class="form-control pubkey" type="text" readonly>
@ -229,7 +251,7 @@
<input class="form-control privkeyaes" type="text" readonly> <input class="form-control privkeyaes" type="text" readonly>
</div> </div>
<div id="walletSpend" class="hidden"> <div id="walletSpend" class="walletOptions hidden">
<div class="row"> <div class="row">
<div class="form-inline output"> <div class="form-inline output">
<div class="col-xs-8"> <div class="col-xs-8">
@ -259,11 +281,11 @@
<div class="row"> <div class="row">
<div class="col-xs-6"> <div class="col-xs-6">
<label><abbr title="the amount to pay in network miner fee">Transaction Fee</abbr>&nbsp;&nbsp;<a href="javascript:;" id="feesestwallet"><span class="glyphicon glyphicon-question-sign"></span></a></label> <label><abbr title="the amount to pay in network miner fee">Transaction Fee</abbr>&nbsp;&nbsp;<a href="javascript:;" id="feesestwallet"><span class="glyphicon glyphicon-question-sign"></span></a></label>
<input type="text" class="form-control" value="0.00004000" id="txFee"> <input type="text" class="form-control" value="0.00001000" id="txFee">
</div> </div>
<div class="col-xs-5"> <div class="col-xs-5">
<label><abbr title="the amount to donate to coinb.in">Donation</abbr></label> <label><abbr title="the amount to donate to coinb.in">Donation</abbr></label>
<input type="text" class="form-control" value="0.003" id="developerDonation"> <input type="text" class="form-control" value="0.001" id="developerDonation">
</div> </div>
</div> </div>
<br> <br>
@ -742,7 +764,7 @@
<br> <br>
<div class="row"> <div class="row">
<div class="col-xs-3"> <div class="col-xs-6">
<label><abbr title="What is not spent will be used as a transaction fee, so remember to add a &quot;change address&quot;">Transaction Fee</abbr>&nbsp;&nbsp;<a href="javascript:;" id="feesestnewtx"><span class="glyphicon glyphicon-question-sign"></span></a></label> <label><abbr title="What is not spent will be used as a transaction fee, so remember to add a &quot;change address&quot;">Transaction Fee</abbr>&nbsp;&nbsp;<a href="javascript:;" id="feesestnewtx"><span class="glyphicon glyphicon-question-sign"></span></a></label>
<input type="text" id="transactionFee" class="form-control" value="0.0000" readonly> <input type="text" id="transactionFee" class="form-control" value="0.0000" readonly>
</div> </div>
@ -1333,13 +1355,12 @@
<div class="tab-pane tab-content" id="about"> <div class="tab-pane tab-content" id="about">
<h2>About <small>open source bitcoin wallet</small></h2> <h2>About <small>open source bitcoin wallet</small></h2>
<p>Version 1.6</p> <p>Version 1.7</p>
<p>Compatible with bitcoin core</p> <p>Compatible with bitcoin core</p>
<p>Github <a href="https://github.com/OutCast3k/coinbin/">https://github.com/OutCast3k/coinbin/</a></p> <p>Github <a href="https://github.com/OutCast3k/coinbin/">https://github.com/OutCast3k/coinbin/</a></p>
<p>TOR <a href="http://4zpinp6gdkjfplhk.onion">4zpinp6gdkjfplhk.onion</a></p> <p style="white-space: nowrap; overflow: hidden; text-overflow: ellipsis;">TOR <a href="http://coinbin3ravkwb24f7rmxx6w3snkjw45jhs5lxbh3yfeg3vpt6janwqd.onion"><i>coinbin</i>3ravkwb24f7rmxx6w3snkjw45jhs5lxbh3yfeg3vpt6janwqd.onion</a> | <i><s><a href="http://4zpinp6gdkjfplhk.onion">4zpinp6gdkjfplhk.onion</a></s></i></p>
<h3>What is Bitcoin?</h3> <h3>What is Bitcoin?</h3>
<p>Bitcoin is a type of digital currency in which encryption techniques are used to regulate the generation of units of currency and verify the transfer of funds, operating independently of a central bank. See <a href="http://www.weusecoins.com/" target="_blank">weusecoins.com</a> for more information.</p> <p>Bitcoin is a type of digital currency in which encryption techniques are used to regulate the generation of units of currency and verify the transfer of funds, operating independently of a central bank. See <a href="http://www.weusecoins.com/" target="_blank">weusecoins.com</a> for more information.</p>
<p>If you are looking to buy some Bitcoin try <a href="https://localbitcoins.com/?ch=173j" target="_blank">LocalBitcoins.com</a>.</p>
<h3>Information</h3> <h3>Information</h3>
<p>Coinb.in is a free and open source project released under the MIT license, originally by <a href="https://bitcointalk.org/index.php?action=profile;u=34834" target="_blank">OutCast3k</a> in 2013. Discussion of the project can be found at <a href="https://bitcointalk.org/index.php?topic=390046" target="_blank">bitcointalk.org</a> during its early testing stages when its primary focus was to develop a proof of concept multisig solution in javascript.</p> <p>Coinb.in is a free and open source project released under the MIT license, originally by <a href="https://bitcointalk.org/index.php?action=profile;u=34834" target="_blank">OutCast3k</a> in 2013. Discussion of the project can be found at <a href="https://bitcointalk.org/index.php?topic=390046" target="_blank">bitcointalk.org</a> during its early testing stages when its primary focus was to develop a proof of concept multisig solution in javascript.</p>
<p>Coinb.in is run and funded by the generosity of others in terms of <a href="https://github.com/OutCast3k/coinbin/graphs/contributors" target="_blank">development</a> and hosting.</p> <p>Coinb.in is run and funded by the generosity of others in terms of <a href="https://github.com/OutCast3k/coinbin/graphs/contributors" target="_blank">development</a> and hosting.</p>
@ -1364,7 +1385,6 @@
<option value="bitcoin_mainnet" rel="0x00;0x80;0x05;0x488b21e;0x488ade4;coinb.in;coinb.in">Bitcoin (mainnet)</option> <option value="bitcoin_mainnet" rel="0x00;0x80;0x05;0x488b21e;0x488ade4;coinb.in;coinb.in">Bitcoin (mainnet)</option>
<option value="litecoin_mainnet" rel="0x30;0xb0;0x32;0x019da462;0x019d9cfe;blockcypher_litecoin;blockcypher_litecoin">Litecoin (mainnet)</option> <option value="litecoin_mainnet" rel="0x30;0xb0;0x32;0x019da462;0x019d9cfe;blockcypher_litecoin;blockcypher_litecoin">Litecoin (mainnet)</option>
<option value="dogecoin_mainnet" rel="0x1e;0x9e;0x16;0x0827421e;0x089944e4;blockcypher_dogecoin;blockcypher_dogecoin">Dogecoin (mainnet)</option> <option value="dogecoin_mainnet" rel="0x1e;0x9e;0x16;0x0827421e;0x089944e4;blockcypher_dogecoin;blockcypher_dogecoin">Dogecoin (mainnet)</option>
<option value="carboncoin_mainnet" rel="0x2f;0xaf;0x05;0x488b21e;0x488ade4;cryptoid.info_carboncoin;cryptoid.info_carboncoin">Carboncoin (mainnet)</option>
<option value="shadowcash_mainnet" rel="0x3f;0xbf;0x7d;0xee80286a;0xee8031e8;false;false">ShadowCash (mainnet)</option> <option value="shadowcash_mainnet" rel="0x3f;0xbf;0x7d;0xee80286a;0xee8031e8;false;false">ShadowCash (mainnet)</option>
<option value="bitcoin_testnet" rel="0x6f;0xef;0xc4;0x043587cf;0x04358394;false;false">Bitcoin (testnet)</option> <option value="bitcoin_testnet" rel="0x6f;0xef;0xc4;0x043587cf;0x04358394;false;false">Bitcoin (testnet)</option>
@ -1429,7 +1449,6 @@
<option value="chain.so_bitcoinmainnet"> Chain.so (Bitcoin mainnet)</option> <option value="chain.so_bitcoinmainnet"> Chain.so (Bitcoin mainnet)</option>
<option value="chain.so_litecoin"> Chain.so (Litecoin)</option> <option value="chain.so_litecoin"> Chain.so (Litecoin)</option>
<option value="chain.so_dogecoin"> Chain.so (Dogecoin)</option> <option value="chain.so_dogecoin"> Chain.so (Dogecoin)</option>
<option value="cryptoid.info_carboncoin"> Cryptoid.info (Carboncoin)</option>
</select> </select>
</div> </div>
</div> </div>
@ -1439,7 +1458,7 @@
<div class="row"> <div class="row">
<div class="col-md-12"> <div class="col-md-12">
<b>Unspent outputs</b>: <br> <b>Unspent outputs</b>: <br>
<p class="text-muted">Select the network you wish to retreive your unspent inputs from</p> <p class="text-muted">Select the network you wish to retreive your unspent outputs from</p>
<select class="form-control" id="coinjs_utxo"> <select class="form-control" id="coinjs_utxo">
<option value="coinb.in">coinb.in (Bitcoin mainnet)</option> <option value="coinb.in">coinb.in (Bitcoin mainnet)</option>
<option value="blockcypher_bitcoinmainnet"> Blockcypher.com (Bitcoin mainnet)</option> <option value="blockcypher_bitcoinmainnet"> Blockcypher.com (Bitcoin mainnet)</option>
@ -1451,7 +1470,6 @@
<option value="chain.so_bitcoinmainnet"> Chain.so (Bitcoin mainnet)</option> <option value="chain.so_bitcoinmainnet"> Chain.so (Bitcoin mainnet)</option>
<option value="chain.so_litecoin"> Chain.so (Litecoin)</option> <option value="chain.so_litecoin"> Chain.so (Litecoin)</option>
<option value="chain.so_dogecoin"> Chain.so (Dogecoin)</option> <option value="chain.so_dogecoin"> Chain.so (Dogecoin)</option>
<option value="cryptoid.info_carboncoin"> Cryptoid.info (Carboncoin)</option>
</select> </select>
</div> </div>
</div> </div>
@ -1475,7 +1493,7 @@
<div id="footer"> <div id="footer">
<div class="container text-right"> <div class="container text-right">
<p class="text-muted">Version 1.6</p> <p class="text-muted">Version 1.7</p>
</div> </div>
</div> </div>

View file

@ -22,7 +22,7 @@
coinjs.developer = '33tht1bKDgZVxb39MnZsWa8oxHXHvUYE4G'; //bitcoin coinjs.developer = '33tht1bKDgZVxb39MnZsWa8oxHXHvUYE4G'; //bitcoin
/* bit(coinb.in) api vars */ /* bit(coinb.in) api vars */
coinjs.hostname = ((document.location.hostname.split(".")[(document.location.hostname.split(".")).length-1]) == 'onion') ? '4zpinp6gdkjfplhk.onion' : 'coinb.in'; coinjs.hostname = ((document.location.hostname.split(".")[(document.location.hostname.split(".")).length-1]) == 'onion') ? 'coinbin3ravkwb24f7rmxx6w3snkjw45jhs5lxbh3yfeg3vpt6janwqd.onion' : 'coinb.in';
coinjs.host = ('https:'==document.location.protocol?'https://':'http://')+coinjs.hostname+'/api/'; coinjs.host = ('https:'==document.location.protocol?'https://':'http://')+coinjs.hostname+'/api/';
coinjs.uid = '1'; coinjs.uid = '1';
coinjs.key = '12345678901234567890123456789012'; coinjs.key = '12345678901234567890123456789012';
@ -1140,7 +1140,7 @@
/* broadcast a transaction */ /* broadcast a transaction */
r.broadcast = function(callback, txhex){ r.broadcast = function(callback, txhex){
var tx = txhex || this.serialize(); var tx = txhex || this.serialize();
coinjs.ajax(coinjs.host+'?uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=bitcoin&request=sendrawtransaction&rawtx='+tx+'&r='+Math.random(), callback, "GET"); coinjs.ajax(coinjs.host+'?uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=bitcoin&request=sendrawtransaction', callback, "POST", ["rawtx="+tx]);
} }
/* generate the transaction hash to sign from a transaction input */ /* generate the transaction hash to sign from a transaction input */

View file

@ -128,8 +128,13 @@ $(document).ready(function() {
}); });
$("#walletShowKeys").click(function(){ $("#walletShowKeys").click(function(){
$(".walletOptions").removeClass("hidden").addClass("hidden");
$("#walletKeys").removeClass("hidden"); $("#walletKeys").removeClass("hidden");
$("#walletSpend").removeClass("hidden").addClass("hidden"); });
$("#walletShowBuy").click(function(){
$(".walletOptions").removeClass("hidden").addClass("hidden");
$("#walletBuy").removeClass("hidden");
}); });
$("#walletBalance, #walletAddress, #walletQrCode").click(function(){ $("#walletBalance, #walletAddress, #walletQrCode").click(function(){
@ -280,8 +285,8 @@ $(document).ready(function() {
}); });
$("#walletShowSpend").click(function(){ $("#walletShowSpend").click(function(){
$(".walletOptions").removeClass("hidden").addClass("hidden");
$("#walletSpend").removeClass("hidden"); $("#walletSpend").removeClass("hidden");
$("#walletKeys").removeClass("hidden").addClass("hidden");
}); });
$("#walletSpendTo .addressAdd").click(function(){ $("#walletSpendTo .addressAdd").click(function(){
@ -842,7 +847,6 @@ $(document).ready(function() {
if(navigator.getUserMedia){ if(navigator.getUserMedia){
if (!!window.stream) { if (!!window.stream) {
$("video").attr('src',null); $("video").attr('src',null);
window.stream.stop();
} }
var videoSource = $("select#videoSource").val(); var videoSource = $("select#videoSource").val();
@ -855,18 +859,24 @@ $(document).ready(function() {
navigator.getUserMedia(constraints, function(stream){ navigator.getUserMedia(constraints, function(stream){
window.stream = stream; // make stream available to console window.stream = stream; // make stream available to console
var videoElement = document.querySelector('video'); var videoElement = document.querySelector('video');
videoElement.src = window.URL.createObjectURL(stream); try {
videoElement.srcObject = stream;
} catch {
videoElement.src = window.URL.createObjectURL(stream);
}
videoElement.play(); videoElement.play();
}, function(error){ }); }, function(error){ });
QCodeDecoder().decodeFromCamera(document.getElementById('videoReader'), function(er,data){
QCodeDecoder().decodeFromVideo(document.getElementById('videoReader'), function(er,data){
if(!er){ if(!er){
var match = data.match(/^bitcoin\:([13][a-z0-9]{26,33})/i); var match = data.match(/^bitcoin\:([1|3|bc1][a-z0-9]{25,50})/i);
var result = match ? match[1] : data; var result = match ? match[1] : data;
$(""+$("#qrcode-scanner-callback-to").html()).val(result); $(""+$("#qrcode-scanner-callback-to").html()).val(result);
$("#qrScanClose").click(); $("#qrScanClose").click();
} }
}); });
} else { } else {
$("#videoReaderError").removeClass("hidden"); $("#videoReaderError").removeClass("hidden");
$("#videoReader, #videoSource").addClass("hidden"); $("#videoReader, #videoSource").addClass("hidden");
@ -923,9 +933,6 @@ $(document).ready(function() {
listUnspentBlockchair(redeem, "litecoin"); listUnspentBlockchair(redeem, "litecoin");
} else if(host=='blockchair_dogecoin'){ } else if(host=='blockchair_dogecoin'){
listUnspentBlockchair(redeem, "dogecoin"); listUnspentBlockchair(redeem, "dogecoin");
} else if(host=='cryptoid.info_carboncoin'){
listUnspentCryptoidinfo_Carboncoin(redeem);
} else { } else {
listUnspentDefault(redeem); listUnspentDefault(redeem);
} }
@ -1156,41 +1163,6 @@ $(document).ready(function() {
}); });
} }
/* retrieve unspent data from chain.so for carboncoin */
function listUnspentCryptoidinfo_Carboncoin(redeem) {
$.ajax ({
type: "POST",
url: "https://coinb.in/api/",
data: 'uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=carboncoin&request=listunspent&address='+redeem.addr,
dataType: "xml",
error: function() {
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamation-sign"></span> Unexpected error, unable to retrieve unspent outputs!');
},
success: function(data) {
if($(data).find("result").text()==1){
$("#redeemFromAddress").removeClass('hidden').html('<span class="glyphicon glyphicon-info-sign"></span> Retrieved unspent inputs from address <a href="'+explorer_addr+redeem.addr+'" target="_blank">'+redeem.addr+'</a>');
$.each($(data).find("unspent").children(), function(i,o){
var tx = $(o).find("tx_hash").text();
var n = $(o).find("tx_output_n").text();
var script = (redeem.redeemscript==true) ? redeem.decodedRs : o.script_hex;
var amount = (($(o).find("value").text()*1)/100000000).toFixed(8);
addOutput(tx, n, script, amount);
});
} else {
$("#redeemFromStatus").removeClass('hidden').html('<span class="glyphicon glyphicon-exclamation-sign"></span> Unexpected error, unable to retrieve unspent outputs.');
}
},
complete: function(data, status) {
$("#redeemFromBtn").html("Load").attr('disabled',false);
totalInputAmount();
}
});
}
/* retrieve unspent data from blockchair */ /* retrieve unspent data from blockchair */
function listUnspentBlockchair(redeem,network){ function listUnspentBlockchair(redeem,network){
$.ajax ({ $.ajax ({
@ -1346,32 +1318,6 @@ $(document).ready(function() {
}); });
} }
// broadcast transaction via cryptoid
function rawSubmitcryptoid_Carboncoin(thisbtn) {
$(thisbtn).val('Please wait, loading...').attr('disabled',true);
$.ajax ({
type: "POST",
url: coinjs.host+'?uid='+coinjs.uid+'&key='+coinjs.key+'&setmodule=carboncoin&request=sendrawtransaction',
data: {'rawtx':$("#rawTransaction").val()},
dataType: "xml",
error: function(data) {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').removeClass("hidden").html(" There was an error submitting your request, please try again").prepend('<span class="glyphicon glyphicon-exclamation-sign"></span>');
},
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() + '<br> <a href="https://chainz.cryptoid.info/carbon/tx.dws?' + $(data).find("txid").text() + '" target="_blank">View on Blockchain Explorer</a>');
} else {
$("#rawTransactionStatus").addClass('alert-danger').removeClass('alert-success').prepend('<span class="glyphicon glyphicon-exclamation-sign"></span> ');
}
},
complete: function(data, status) {
$("#rawTransactionStatus").fadeOut().fadeIn();
$(thisbtn).val('Submit').attr('disabled',false);
}
});
}
// broadcast transaction via chain.so (mainnet) // broadcast transaction via chain.so (mainnet)
function rawSubmitChainso(thisbtn, network){ function rawSubmitChainso(thisbtn, network){
$(thisbtn).val('Please wait, loading...').attr('disabled',true); $(thisbtn).val('Please wait, loading...').attr('disabled',true);
@ -1983,11 +1929,11 @@ $(document).ready(function() {
}); });
} else if(host=="chain.so_litecoin"){ } else if(host=="chain.so_litecoin"){
$("#rawSubmitBtn").click(function(){ $("#rawSubmitBtn").click(function(){
rawSubmitchainso(this, "LTC"); rawSubmitChainso(this, "LTC");
}); });
} else if(host=="chain.so_dogecoin"){ } else if(host=="chain.so_dogecoin"){
$("#rawSubmitBtn").click(function(){ $("#rawSubmitBtn").click(function(){
rawSubmitchainso(this, "DOGE"); rawSubmitChainso(this, "DOGE");
}); });
} else if(host=="blockcypher_bitcoinmainnet"){ } else if(host=="blockcypher_bitcoinmainnet"){
$("#rawSubmitBtn").click(function(){ $("#rawSubmitBtn").click(function(){
@ -2013,10 +1959,6 @@ $(document).ready(function() {
$("#rawSubmitBtn").click(function(){ $("#rawSubmitBtn").click(function(){
rawSubmitblockchair(this, "dogecoin"); rawSubmitblockchair(this, "dogecoin");
}); });
} else if(host=="cryptoid.info_carboncoin"){
$("#rawSubmitBtn").click(function(){
rawSubmitcryptoid_Carboncoin(this);
});
} else { } else {
$("#rawSubmitBtn").click(function(){ $("#rawSubmitBtn").click(function(){
rawSubmitDefault(this); // revert to default rawSubmitDefault(this); // revert to default

16
sha1sum
View file

@ -1,9 +1,9 @@
---- Version 1.6 2020.10.02 ---- ---- Version 1.7 2021.10.23 ----
77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js 77e4519962e2f6a9fc93342137dbb31c33b76b04 ./js/aes.js
3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js 3a09a8fc0cfe828b57fc798d668234d0490ee1a6 ./js/bootstrap-datetimepicker.min.js
253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js 253711c6d825de55a8360552573be950da180614 ./js/bootstrap.min.js
cb5717166bf1c99abbd75a06013067c4a5897d5a ./js/coinbin.js 61095a685a6bb343fc5dcdd7cf3e458bfb3aa0a4 ./js/coinbin.js
911fb7bdba24269029f27659e4040cd991b2307c ./js/coin.js 5f83da7e2fce8c55a711a768970899c2300dcd46 ./js/coin.js
988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js 988565bc2cb402d63ed5c5fd7ff47c4278efc2c5 ./js/collapse.js
9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js 9ba5ede3d7f9d4c8fd623395f196adfdcf7e970f ./js/crypto-min.js
f7c09f2f5a721371e7d478050119f7e2d58e3ef9 ./js/crypto-sha256-hmac.js f7c09f2f5a721371e7d478050119f7e2d58e3ef9 ./js/crypto-sha256-hmac.js
@ -23,13 +23,17 @@ ed29315e0ffb3f14382431f2724235bf67f44eb3 ./css/bootstrap.min.css
fc6b4268fbd57ad95d2b41a1d4d6866f222fbdb2 ./css/bootstrap-theme.min.css fc6b4268fbd57ad95d2b41a1d4d6866f222fbdb2 ./css/bootstrap-theme.min.css
eb54f374256b75a17f274847b4ca9985fd046f9f ./css/style.css eb54f374256b75a17f274847b4ca9985fd046f9f ./css/style.css
2e3217a3f3b7c2fb30562ab9a4ef9a407ae81897 ./images/btc32x.png 2e3217a3f3b7c2fb30562ab9a4ef9a407ae81897 ./images/btc32x.png
8ac24915d59cef71c542e7cb7d7e153f560cba1f ./images/coinbin.gif 2c95cc283e4d843655ea111a7e4072c16ab56b7b ./images/bitrefill16x.png
b6e8cb7bc6e7a9cb167e65696439891fc06ded6d ./images/changelly16x.png
774cf795e16b33c5d67b5ad0ae95692c3ce49fce ./images/coinbin.png
f4fbd6f11bf1d81b0fdba3bfb83799fda6c46c67 ./images/coinbin.svg
7645c6b897dc845ed681fad0812b424063374494 ./images/hodlhodl16x.png
f2af060f1cadbc9065c8c465c648dc01be67cc12 ./images/loader.gif f2af060f1cadbc9065c8c465c648dc01be67cc12 ./images/loader.gif
86b6f62b7853e67d3e635f6512a5a5efc58ea3c3 ./fonts/glyphicons-halflings-regular.eot 86b6f62b7853e67d3e635f6512a5a5efc58ea3c3 ./fonts/glyphicons-halflings-regular.eot
ca35b697d99cae4d1b60f2d60fcd37771987eb07 ./fonts/glyphicons-halflings-regular.woff2 ca35b697d99cae4d1b60f2d60fcd37771987eb07 ./fonts/glyphicons-halflings-regular.woff2
de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.svg de51a8494180a6db074af2dee2383f0a363c5b08 ./fonts/glyphicons-halflings-regular.svg
278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff 278e49a86e634da6f2a02f3b47dd9d2a8f26210f ./fonts/glyphicons-halflings-regular.woff
44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf 44bc1850f570972267b169ae18f1cb06b611ffa2 ./fonts/glyphicons-halflings-regular.ttf
ee481606d8d48f402d152fa632ba9e5f9da7f169 ./README.md 283e5a5aa0999fb8e84bdc7a0f2a881db249baf1 ./README.md
a706e95f6436ee4a31dc26b17a9ac8ab1f0d3750 ./index.html 76985f9ad1239f69bdd5083ce222ff33eb6c87e6 ./index.html
7130b64e3ef4cf6f2f1550e902f081c58dc053de ./test.html 7130b64e3ef4cf6f2f1550e902f081c58dc053de ./test.html