Skip to content

Commit

Permalink
Add cashaddr address format for bitcoin cash
Browse files Browse the repository at this point in the history
  • Loading branch information
iancoleman committed May 8, 2018
1 parent 956e44e commit e0f91e2
Show file tree
Hide file tree
Showing 5 changed files with 9,394 additions and 37 deletions.
19 changes: 16 additions & 3 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -608,13 +608,25 @@ <h2>Derivation Path</h2>
<h2>Derived Addresses</h2>
<p>Note these addresses are derived from the BIP32 Extended Key</p>
</div>
<div class="col-md-12 use-bitpay-addresses-container hidden">
<div class="checkbox">
<div class="col-md-12 bch-addr-type-container hidden">
<div class="radio">
<label>
<input type="radio" value="cashaddr" name="bch-addr-type" class="use-bch-cashaddr-addresses" checked="checked">
<span>Use CashAddr addresses for Bitcoin Cash (ie starting with 'q' instead of '1')</span>
</label>
</div>
<div class="radio">
<label>
<input type="checkbox" class="use-bitpay-addresses">
<input type="radio" value="bitpay" name="bch-addr-type" class="use-bch-bitpay-addresses">
<span>Use BitPay-style addresses for Bitcoin Cash (ie starting with 'C' instead of '1')</span>
</label>
</div>
<div class="radio">
<label>
<input type="radio" value="legacy" name="bch-addr-type" class="use-bch-legacy-addresses">
<span>Use legacy addresses for Bitcoin Cash (ie starting with '1')</span>
</label>
</div>
</div>
<div class="col-md-12">
<div class="checkbox">
Expand Down Expand Up @@ -903,6 +915,7 @@ <h3>Libraries</h3>
<script src="js/segwit-parameters.js"></script>
<script src="js/ethereumjs-util.js"></script>
<script src="js/ripple-util.js"></script>
<script src="js/bchaddrjs-0.2.1.js"></script>
<script src="js/sjcl-bip39.js"></script>
<script src="js/wordlist_english.js"></script>
<script src="js/wordlist_japanese.js"></script>
Expand Down
Loading

0 comments on commit e0f91e2

Please sign in to comment.