btc -> lbc
This commit is contained in:
parent
f0ace3eae5
commit
b378740ed0
4 changed files with 26 additions and 97 deletions
|
@ -5,7 +5,7 @@ A Open Source Browser Based Bitcoin Wallet. Version 1.7 beta by OutCast3k
|
|||
|
||||
Live version available at http://coinb.in/ or coinbin3ravkwb24f7rmxx6w3snkjw45jhs5lxbh3yfeg3vpt6janwqd.onion
|
||||
|
||||
Github URL: https://github.com/OutCast3k/coinbin/
|
||||
Github URL: https://github.com/lbryio/coinbin/
|
||||
|
||||
Coinb.in supports a number of key features such as:
|
||||
|
||||
|
|
117
index.html
117
index.html
|
@ -2,7 +2,7 @@
|
|||
<html lang="en">
|
||||
<head>
|
||||
|
||||
<title>Bitcoin Wallet by Coinb.in</title>
|
||||
<title>LBRY Wallet by Coinb.in</title>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<meta name="keywords" content="bitcoin, wallet, multisig, multisignature, address, browser, segwit, javascript, js, broadcast, transaction, verify, decode" />
|
||||
|
@ -77,7 +77,6 @@
|
|||
<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>
|
||||
|
@ -137,7 +136,7 @@
|
|||
|
||||
<div class="col-md-4">
|
||||
<h3><span class="glyphicon glyphicon-wrench"></span> Development</h3>
|
||||
<p>Use what we've built to write your own projects! See our documention (coming soon), or contribute at <a href="https://github.com/OutCast3k/coinbin/">github</a>.</p>
|
||||
<p>Use what we've built to write your own projects! See our documention (coming soon), or contribute at <a href="https://github.com/lbryio/coinbin/">github</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -205,7 +204,7 @@
|
|||
<br>
|
||||
<div style="text-align:center; width:350px;">
|
||||
<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 LBC</a></li>
|
||||
<li role="presentation"><a href="javascript:;" id="walletShowSpend">Spend</a></li>
|
||||
<li role="presentation"><a href="javascript:;" id="walletHistory" target="_blank">History</a></li>
|
||||
<li role="presentation"><a href="javascript:;" id="walletShowBuy">Buy</a></li>
|
||||
|
@ -214,20 +213,6 @@
|
|||
|
||||
<br>
|
||||
|
||||
<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>
|
||||
|
@ -305,7 +290,7 @@
|
|||
|
||||
<div class="tab-pane tab-content" id="newAddress">
|
||||
<h2>New Address <small>create a new address</small></h2>
|
||||
<p>Any keys used you will need to manually store safely as they will be needed later to redeem the bitcoins.</p>
|
||||
<p>Any keys used you will need to manually store safely as they will be needed later to redeem the credits.</p>
|
||||
<label>Address (Share)</label>
|
||||
|
||||
<div class="input-group">
|
||||
|
@ -376,7 +361,7 @@
|
|||
<div class="tab-pane tab-content" id="newSegWit">
|
||||
<h2>New SegWit Address <small> Smaller & Faster Transactions</small></h2>
|
||||
|
||||
<p>Any keys used you will need to manually store safely as they will be needed later to redeem the bitcoins.</p>
|
||||
<p>Any keys used you will need to manually store safely as they will be needed later to redeem the credits.</p>
|
||||
|
||||
<label>SegWit Address (Share)</label>
|
||||
|
||||
|
@ -434,7 +419,7 @@
|
|||
<div class="row">
|
||||
|
||||
<div class="col-md-8">
|
||||
<p>Public keys can be <a href="#newAddress">generated in your browser</a> or from your bitcoin client</a>.</p>
|
||||
<p>Public keys can be <a href="#newAddress">generated in your browser</a> or from your LBRY client</a>.</p>
|
||||
<p>Enter the public keys of all the participants, to create a <a href="https://en.bitcoin.it/wiki/Address#Multi-signature_addresses" target="_blank">multi signature address</a>. Maximum of 15 allowed. Compressed and uncompressed public keys are accepted.</p>
|
||||
</div>
|
||||
|
||||
|
@ -497,7 +482,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<label>Redeem Script</label>
|
||||
<p>This script should be <i>saved and should be shared with all the participants before a payment is made</i>, so they may validate the authenticity of the address, it will also be used later to release the bitcoins.</p>
|
||||
<p>This script should be <i>saved and should be shared with all the participants before a payment is made</i>, so they may validate the authenticity of the address, it will also be used later to release the credits.</p>
|
||||
<textarea class="form-control script" style="height:160px" readonly></textarea>
|
||||
<label>Shareable URL</label>
|
||||
<input type="text" class="scriptUrl form-control" readonly>
|
||||
|
@ -514,7 +499,7 @@
|
|||
|
||||
<div class="col-md-11">
|
||||
<p>Use <i><a href="https://github.com/bitcoin/bips/blob/master/bip-0065.mediawiki" target="_blank">OP_CHECKLOCKTIMEVERIFY</a></i> (OP_HODL) to create a time locked address where the funds are unspendable until a set date and time has passed.</p>
|
||||
<p>Public keys can be <a href="#newAddress">generated in your browser</a> or from your bitcoin client</a>.</p>
|
||||
<p>Public keys can be <a href="#newAddress">generated in your browser</a> or from your LBRY client</a>.</p>
|
||||
<p>Enter the public key that will be able to unlock the funds after the a certain date.
|
||||
</div>
|
||||
|
||||
|
@ -574,7 +559,7 @@
|
|||
</div>
|
||||
</div>
|
||||
<label>Redeem Script</label>
|
||||
<p>This script should be <i>saved and should be shared with all the participants before a payment is made</i>, so they may validate the authenticity of the address, it will also be used later to release the bitcoins.</p>
|
||||
<p>This script should be <i>saved and should be shared with all the participants before a payment is made</i>, so they may validate the authenticity of the address, it will also be used later to release the credits.</p>
|
||||
<textarea class="form-control script" style="height:160px" readonly></textarea>
|
||||
<label>Shareable URL</label>
|
||||
<input type="text" class="scriptUrl form-control" readonly>
|
||||
|
@ -792,12 +777,12 @@
|
|||
|
||||
|
||||
<div class="tab-pane tab-content" id="fees">
|
||||
<h2>Bitcoin Fee Calculator</h2>
|
||||
<h2>LBC Fee Calculator</h2>
|
||||
<p>This page will give you a guide on the lowest fee to use to get your transaction included within the next few blocks. It works by predicting the size of a transaction and comparing it to another transaction in a recent block to determine an appropriate fee.</p>
|
||||
|
||||
<div align="center" class="alert alert-info">
|
||||
<h2><span class="glyphicon glyphicon-question-sign"></span> Recommended Fee: <span class="recommendedFee">0.00000000</span> BTC <small> <br> for a transaction of <span class="feeTxSize">0</span> bytes</small></h2>
|
||||
<span class="text-muted"><i><span class="feeSatByte">?</span> Sat/Byte</i></span>
|
||||
<h2><span class="glyphicon glyphicon-question-sign"></span> Recommended Fee: <span class="recommendedFee">0.00000000</span> LBC <small> <br> for a transaction of <span class="feeTxSize">0</span> bytes</small></h2>
|
||||
<span class="text-muted"><i><span class="feeSatByte">?</span> Dewey/Byte</i></span>
|
||||
</div>
|
||||
|
||||
<div id="txsliders" class="row">
|
||||
|
@ -930,9 +915,9 @@
|
|||
<p class="hideOverflow"><b>Transaction ID</b>: <span class="txId">?</span></p>
|
||||
<p><b>Transaction Size</b>: <span class="txSize">0</span> bytes</p>
|
||||
<p><b>Transaction Fee</b>: <span class="txFee">0.00000000</span></p>
|
||||
<p><b>Satoshi per Byte</b>: <span class="feeSatByte">0</span></p>
|
||||
<p><b>Dewey per Byte</b>: <span class="feeSatByte">0</span></p>
|
||||
|
||||
<p>Based on your data and this recently mined transaction we recommend a fee of <b><span class="recommendedFee">0.00000000</span> BTC</b> to get it into the next few blocks</p>
|
||||
<p>Based on your data and this recently mined transaction we recommend a fee of <b><span class="recommendedFee">0.00000000</span> LBC</b> to get it into the next few blocks</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -1301,9 +1286,9 @@
|
|||
|
||||
<select id="sighashType" class="form-control">
|
||||
<option value="1" rel="SIGHASH_ALL: Signs all the inputs and outputs, protecting everything against modification.">ALL (default)</option>
|
||||
<option value="2" rel="SIGHASH_NONE: Signs all of the inputs but none of the outputs, allowing anyone to change where the satoshis are going unless other signatures using other signature hash flags protect the outputs.">NONE</option>
|
||||
<option value="2" rel="SIGHASH_NONE: Signs all of the inputs but none of the outputs, allowing anyone to change where the deweys are going unless other signatures using other signature hash flags protect the outputs.">NONE</option>
|
||||
<option value="3" rel="SIGHASH_SINGLE: The only output signed is the one corresponding to this input, ensuring nobody can change your part of the transaction but allowing other signers to change their part of the transaction.">SINGLE</option>
|
||||
<option value="129" rel="SIGHASH_ALL|SIGHASH_ANYONECANPAY: Signs all of the outputs but only this one input, it allows anyone to add or remove other inputs, so anyone can contribute additional satoshis but they cannot change how many satoshis are sent nor where they go.">ALL|ANYONECANPAY</option>
|
||||
<option value="129" rel="SIGHASH_ALL|SIGHASH_ANYONECANPAY: Signs all of the outputs but only this one input, it allows anyone to add or remove other inputs, so anyone can contribute additional deweys but they cannot change how many deweys are sent nor where they go.">ALL|ANYONECANPAY</option>
|
||||
<option value="130" rel="SIGHASH_NONE|SIGHASH_ANYONECANPAY: Signs only this one input and allows anyone to add or remove other inputs or outputs, so anyone who gets a copy of this input can spend it however they'd like.">NONE|ANYONECANPAY</option>
|
||||
<option value="131" rel="SIGHASH_SINGLE|SIGHASH_ANYONECANPAY: Signs this one input and its corresponding output. Allows anyone to add or remove other inputs.">SINGLE|ANYONECANPAY</option>
|
||||
</select>
|
||||
|
@ -1336,9 +1321,9 @@
|
|||
</div>
|
||||
|
||||
<div class="tab-pane tab-content" id="broadcast">
|
||||
<h2>Broadcast Transaction <small>into the bitcoin network</small></h2>
|
||||
<h2>Broadcast Transaction <small>into the LBRY network</small></h2>
|
||||
<a href="#settings" style="float:right;"><span class="glyphicon glyphicon-cog"></span></a>
|
||||
<p>Enter your hex encoded bitcoin transaction</p>
|
||||
<p>Enter your hex encoded transaction</p>
|
||||
<textarea class="form-control" style="height:125px" id="rawTransaction"></textarea>
|
||||
<br>
|
||||
<div id="rawTransactionStatus" class="alert hidden">
|
||||
|
@ -1354,23 +1339,8 @@
|
|||
</div>
|
||||
|
||||
<div class="tab-pane tab-content" id="about">
|
||||
<h2>About <small>open source bitcoin wallet</small></h2>
|
||||
<p>Version 1.7</p>
|
||||
<p>Compatible with bitcoin core</p>
|
||||
<p>Github <a href="https://github.com/OutCast3k/coinbin/">https://github.com/OutCast3k/coinbin/</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>
|
||||
<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>
|
||||
<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 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 kindly hosted by <a href="https://www.bitvps.com/" target="_blank">BitVPS.com</a>.</p>
|
||||
<h3>Privacy</h3>
|
||||
<p>Coinb.in believes strongly in privacy, not only do we support the use of TOR, the site does not collect and store IP or transaction data via our servers nor do we store your bitcoins private key. We do route traffic via cloudflare using an SSL certificate.</p>
|
||||
<h3>Support</h3>
|
||||
<p>We recommend that you first check our <a href="https://status.coinb.in/" target="_blank">service status</a> page and then <a href="https://blog.coinb.in/" target="_blank">blog</a> page which has multiple <a href="https://blog.coinb.in/guides" target="_blank">guides</a>. However if the problem persists you can contact us by emailing support{at}coinb.in.</p>
|
||||
<h3>Donate</h3>
|
||||
<p>Please donate to <a href="bitcoin:33tht1bKDgZVxb39MnZsWa8oxHXHvUYE4G">33tht1bKDgZVxb39MnZsWa8oxHXHvUYE4G</a> if you found this project useful or want to see more features!</p>
|
||||
<h2>About</h2>
|
||||
<p>Github <a href="https://github.com/lbryio/coinbin/">https://github.com/lbryio/coinbin/</a></p>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane tab-content" id="settings">
|
||||
|
@ -1428,47 +1398,6 @@
|
|||
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<b>Broadcast</b>: <br>
|
||||
<p class="text-muted">Select the network you wish to broadcast the transaction via</p>
|
||||
<select class="form-control" id="coinjs_broadcast">
|
||||
<option value="coinb.in">coinb.in (Bitcoin mainnet)</option>
|
||||
<option value="blockcypher_bitcoinmainnet"> Blockcypher.com (Bitcoin mainnet)</option>
|
||||
<option value="blockcypher_litecoin"> Blockcypher.com (Litecoin)</option>
|
||||
<option value="blockcypher_dogecoin"> Blockcypher.com (Dogecoin)</option>
|
||||
<option value="blockchair_bitcoinmainnet"> Blockchair.com (Bitcoin mainnet)</option>
|
||||
<option value="blockchair_litecoin"> Blockchair.com (Litecoin)</option>
|
||||
<option value="blockchair_dogecoin"> Blockchair.com (Dogecoin)</option>
|
||||
<option value="chain.so_bitcoinmainnet"> Chain.so (Bitcoin mainnet)</option>
|
||||
<option value="chain.so_litecoin"> Chain.so (Litecoin)</option>
|
||||
<option value="chain.so_dogecoin"> Chain.so (Dogecoin)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<b>Unspent outputs</b>: <br>
|
||||
<p class="text-muted">Select the network you wish to retreive your unspent outputs from</p>
|
||||
<select class="form-control" id="coinjs_utxo">
|
||||
<option value="coinb.in">coinb.in (Bitcoin mainnet)</option>
|
||||
<option value="blockcypher_bitcoinmainnet"> Blockcypher.com (Bitcoin mainnet)</option>
|
||||
<option value="blockcypher_litecoin"> Blockcypher.com (Litecoin)</option>
|
||||
<option value="blockcypher_dogecoin"> Blockcypher.com (Dogecoin)</option>
|
||||
<option value="blockchair_bitcoinmainnet"> Blockchair.com (Bitcoin mainnet)</option>
|
||||
<option value="blockchair_litecoin"> Blockchair.com (Litecoin)</option>
|
||||
<option value="blockchair_dogecoin"> Blockchair.com (Dogecoin)</option>
|
||||
<option value="chain.so_bitcoinmainnet"> Chain.so (Bitcoin mainnet)</option>
|
||||
<option value="chain.so_litecoin"> Chain.so (Litecoin)</option>
|
||||
<option value="chain.so_dogecoin"> Chain.so (Dogecoin)</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<br>
|
||||
|
||||
<div id="statusSettings" class="hidden alert">
|
||||
</div>
|
||||
|
@ -1478,7 +1407,7 @@
|
|||
</div>
|
||||
|
||||
<br>
|
||||
<p class="text-muted">This page uses javascript to generate your addresses and sign your transactions within your browser, this means we <i>never</i> receive your private keys, this can be independently verified by reviewing the source code on <a href="https://github.com/OutCast3k/coinbin/" target="_blank">github</a>. You can even <a href="https://github.com/OutCast3k/coinbin/archive/master.zip">download</a> this page and host it yourself or run it offline!</p>
|
||||
<p class="text-muted">This page uses javascript to generate your addresses and sign your transactions within your browser, this means we <i>never</i> receive your private keys, this can be independently verified by reviewing the source code on <a href="https://github.com/lbryio/coinbin/" target="_blank">github</a>. You can even <a href="https://github.com/lbryio/coinbin/archive/master.zip">download</a> this page and host it yourself or run it offline!</p>
|
||||
<br>
|
||||
|
||||
</div>
|
||||
|
@ -1502,7 +1431,7 @@
|
|||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
<p>You are about to send a transaction to the value of <span id="spendAmount">0.00</span> BTC</p>
|
||||
<p>You are about to send a transaction to the value of <span id="spendAmount">0.00</span> LBC</p>
|
||||
|
||||
<br>
|
||||
<div id="walletSendConfirmStatus" class="alert alert-danger hidden"></div>
|
||||
|
@ -1635,7 +1564,7 @@
|
|||
</div>
|
||||
|
||||
<div class="modal-body">
|
||||
Please be aware that you have created a transaction with what seems to be a very high fee of <span id="modalWarningFeeAmount"></span> BTC!
|
||||
Please be aware that you have created a transaction with what seems to be a very high fee of <span id="modalWarningFeeAmount"></span> LBC!
|
||||
</div>
|
||||
|
||||
<div class="modal-footer">
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
Coinjs 0.01 beta by OutCast3k{at}gmail.com
|
||||
A bitcoin framework.
|
||||
|
||||
http://github.com/OutCast3k/coinjs or http://coinb.in/coinjs
|
||||
http://github.com/lbryio/coinjs or http://coinb.in/coinjs
|
||||
*/
|
||||
|
||||
(function () {
|
||||
|
|
|
@ -292,7 +292,7 @@
|
|||
|
||||
|
||||
// create a lot of timelock scripts, compare them to known ones created using bitcoinjs-lib
|
||||
// focus on edge cases like described in https://github.com/OutCast3k/coinbin/issues/201
|
||||
// focus on edge cases like described in https://github.com/lbryio/coinbin/issues/201
|
||||
// ranges 80-ff, 8000-ffff, 800000-ffffff, 80000000-ffffffff.
|
||||
{
|
||||
var testExpected = "HODL_depositAddress: 2NAx7Sx9B6epdUGyPeUEAU2tJiPectEym4F HODL_redeemScript: 050000008000b175210279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798ac\n" +
|
||||
|
|
Loading…
Reference in a new issue