forked from ttutdxh-nubits/cointoolkit
-
Notifications
You must be signed in to change notification settings - Fork 11
/
index.html
1833 lines (1545 loc) · 76.6 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="en">
<head>
<title>Cointoolkit</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" />
<meta name="description" content="A cryptoasset toolkit written in Javascript. Supports Multisig, Custom Transactions, nLockTime and more!" />
<meta name="referrer" content="no-referrer" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/jquery-ui-sort-only.min.css" media="screen">
<link rel="stylesheet" href="css/bootstrap.min.css" media="screen">
<link rel="stylesheet" href="css/bootstrap-datetimepicker.min.css">
<link rel="stylesheet" href="css/style.css" media="screen">
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/jquery-ui-sort-only.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/moment.min.js"></script>
<script type="text/javascript" src="js/bootstrap-datetimepicker.min.js"></script>
<script type="text/javascript" src="js/crypto-min.js"></script>
<script type="text/javascript" src="js/crypto-sha256.js"></script>
<script type="text/javascript" src="js/crypto-sha256-hmac.js"></script>
<script type="text/javascript" src="js/sha512.js"></script>
<script type="text/javascript" src="js/ripemd160.js"></script>
<script type="text/javascript" src="js/aes.js"></script>
<script type="text/javascript" src="js/qrcode.js"></script>
<script type="text/javascript" src="js/qcode-decoder.min.js"></script>
<script type="text/javascript" src="js/jsbn.js"></script>
<script type="text/javascript" src="js/ellipticcurve.js"></script>
<script type="text/javascript" src="js/ledger.js"></script>
<script type="text/javascript" src="js/u2f-api.js"></script>
<script type="text/javascript" src="js/coin.js"></script>
<script type="text/javascript" src="js/cointoolkit.js"></script>
<script type="text/javascript" src="known-pubkeys.js"></script>
</head>
<body>
<div id="wrap">
<!-- Fixed navbar -->
<div id="header" class="navbar navbar-default " role="navigation">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a href="#home" class="navbar-brand" id="homeBtn">Cointoolkit</a>
</div>
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-plus"></span> New<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#newAddress" data-toggle="tab">Address</a></li>
<li><a href="#newSegWit" data-toggle="tab">SegWit Address</a></li>
<li><a href="#newMultiSig" data-toggle="tab">MultiSig Address</a></li>
<li><a href="#newTimeLocked" data-toggle="tab">Time Locked Address</a></li>
<li><a href="#newHDaddress" data-toggle="tab">HD Address</a></li>
<li class="divider"></li>
<li><a href="#newTransaction" data-toggle="tab">Transaction</a></li>
</ul>
</li>
<li><a href="#verify" data-toggle="tab"><span class="glyphicon glyphicon-ok"></span> Verify</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 class="hidden"><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><a href="#settings" data-toggle="tab"><span class="glyphicon glyphicon-cog"></span> Settings</a></li>
</ul>
<ul class="nav navbar-right">
<li>
<div style="padding-top: 15px; padding-bottom: 15px; line-height: 20px;">
<span>Change mode</span> :
<select id="coinSelector">
</select>
</div>
</li>
</ul>
</div>
</div>
</div>
<div id="content" class="container">
<noscript class="alert alert-danger center-block"><span class="glyphicon glyphicon-exclamation-sign"></span> This page uses javascript, please enable it to continue!</noscript>
<div class="tab-content">
<div class="tab-pane tab-content active" id="home">
<div class="row">
<div class="col-md-12">
<h2>Cointoolkit <small>Welcome to the Blockchain</small></h2>
</div>
</div>
<div class="jumbotron">
<h1>Cointoolkit</h1>
<p>Be your own bank, take control of your own money and start using <a href="https://www.peercoin.net/">Peercoin</a> today!</p>
<p><a class="btn btn-primary btn-lg" href="#newAddress" role="button">Create new address »</a></p>
</div>
<hr>
<div class="row">
<div class="col-md-4">
<h3><span class="glyphicon glyphicon-ok"></span> Open Source</h3>
<p>Cointoolkit is an open source web based wallet written in javascript and released under the <a href="LICENSE">MIT license</a> which means it's free to use and edit.</p>
</div>
<div class="col-md-4">
<h3><span class="glyphicon glyphicon-fullscreen"></span> MultiSig</h3>
<p>This is the first tool that supports combining signatures in a multi signature transaction. <a href="#verify">Verify</a> your first transaction, click the number of signatures and <strong>combine</strong> the other versions</p>
</div>
<div class="col-md-4">
<h3><span class="glyphicon glyphicon-random"></span> Raw Transactions</h3>
<p><a href="#newTransaction">Create</a>, <a href="#verify">verify</a>, <a href="#sign">sign</a> and <a href="#broadcast">broadcast</a> custom raw transactions online with advanced features and minimal effort!</p>
</div>
</div>
<div class="row">
<div class="col-md-4">
<h3><span class="glyphicon glyphicon-piggy-bank"></span> Wallet</h3>
<p>Quick access to an <a href="#wallet">online wallet</a> where only you have access to your own private keys!</p>
</div>
<div class="col-md-4">
<h3><span class="glyphicon glyphicon-globe"></span> Addresses</h3>
<p>We support <a href="#newAddress">regular addresses</a>, <a href="#newMultiSig">multisig</a>, <a href="#newSegWit">segwit / bech32</a> and stealth all with access to your own private keys!</p>
</div>
<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/backpacker69/cointoolkit">github</a>.</p>
</div>
</div>
</div>
<div class="tab-pane tab-content" id="wallet">
<div class="row">
<div class="col-md-12">
<h2>Open Wallet <small> browser based wallet</small></h2>
<div id="openLogin">
<form class="form-signin" role="form" action="javascript:;">
<p>Use the form below to open a wallet and begin using this service.</p>
<div class="alert alert-warning">
<b>Notice</b>: Different email address and password combination will open different wallets, be careful when entering your details as lost accounts can not be recovered!
</div>
<input id="openEmail" type="email" class="form-control" placeholder="Email address" required autofocus>
<input id="openPass" type="password" class="form-control" placeholder="Password" required>
<input id="openPassConfirm" type="password" class="form-control" placeholder="Password confirm" required>
<br>
<div>
<a href="javascript:;" class="optionsCollapse"><div class="well well-sm"><span class="glyphicon glyphicon-collapse-down" id="glyphcollapse"></span> Advanced Options</div></a>
<div class="hidden optionsAdvanced">
<label>Segregated Witness Address</label>
<p class="checkbox">
<label><input type="checkbox" id="walletSegwit" class="checkbox-inline" checked> Use a segwit address instead of a regular address. <span class="text-muted"><i>(recommended)</i></span></label></label> <br>
<label><input type="radio" id="walletSegwitp2sh" class="walletSegwitType" name="walletSegWitType" value="p2sh" checked> p2sh address</label> <br>
<label><input type="radio" id="walletSegwitBech32" class="walletSegwitType" name="walletSegWitType" value="bech32"> bech32 address</label>
</p>
</div>
</div>
<div id="openLoginStatus" class="alert alert-danger hidden"></div>
<button id="openBtn" class="btn btn-primary" type="submit">Load wallet</button>
</form>
</div>
<div id="openWallet" class="hidden">
<div class="row">
<div class="col-md-12">
<p><span style="float:right;"><a href="javascript:;" id="walletLogout"><span class="glyphicon glyphicon-log-out"></span> Logout</a></span>Welcome to your wallet, enjoy your stay!</p>
</div>
<div class="col-md-12" align="center">
<div id="walletQrCode"></div> <br>
<div>
<span id="walletLoader" class="hidden"><img src="images/loader.gif"></span>
<span id="walletAddress"></span>
<div class="btn-group">
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" id="walletToBtn">SegWit <span class="caret"></span></button>
<ul class="dropdown-menu">
<li><a href="javascript:;" id="walletToSegWit">SegWit</a></li>
<li><a href="javascript:;" id="walletToSegWitBech32">SegWit/Bech32</a></li>
<li><a href="javascript:;" id="walletToLegacy">Legacy</a></li>
</ul>
</div>
</div>
<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"><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="walletShowKeys">Keys</a></li>
</ul>
<br>
<div id="walletKeys" class="hidden">
<label>Public Key</label>
<input class="form-control pubkey" type="text" readonly>
<div class="walletSegWitRS hidden">
<label>Redeem Script <i>(SegWit)</i></label>
<input class="form-control" type="text" readonly>
</div>
<label>Private key</label>
<div class="input-group">
<input class="form-control privkey" type="password" readonly>
<span class="input-group-btn">
<button class="showKey btn btn-default" type="button">Show</button>
</span>
</div>
<label>Private Key (AES256 encrypted key)</label>
<input class="form-control privkeyaes" type="text" readonly>
</div>
<div id="walletSpend" class="hidden">
<div class="row">
<div class="form-inline output">
<div class="col-xs-8">
<label>Address</label>
</div>
<div class="col-xs-3">
<label>Amount</label>
</div>
</div>
</div>
<div class="row" id="walletSpendTo">
<div class="form-horizontal output">
<div class="col-xs-8">
<input type="text" class="form-control addressTo" data-original-title="" title="">
</div>
<div class="col-xs-3">
<input type="text" class="form-control amount" data-original-title="" title="" placeholder="0.00">
</div>
<a href="javascript:;" class="addressAdd"><span class="glyphicon glyphicon-plus"></span></a>
<br><br>
</div>
</div>
<div class="row">
<div class="col-xs-6">
<label><abbr title="the amount to pay in network miner fees - 0.0001 or more recommended">Transaction Fee</abbr></label>
<input type="text" class="form-control" value="0.00001" id="txFee">
</div>
<div class="col-xs-5">
<label><abbr title="the amount to donate">Donation</abbr></label>
<input type="text" class="form-control" value="0.001" id="developerDonation">
</div>
</div>
<br>
<div id="walletSendStatus" class="alert alert-danger hidden"></div>
<button class="btn btn-primary" type="button" id="walletSendBtn">Send</button>
<button class="btn btn-default" type="button">Reset</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="tab-pane tab-content" id="newQrCode">
<h2>QR Code Generator<small> transfer data easily between devices</small></h2>
<p>You can store anything from an address to a entire transaction or a private key</p>
<div class="row">
<div class="col-md-12">
<textarea type="text" id="qrCodeText" class="form-control" style="height:125px"></textarea>
</div>
</div>
<br>
<div>
<input type="button" value="Generate" class="btn btn-primary qrcodeBtn" id="qrBtn" data-toggle="modal" data-target="#modalQrcode">
</div>
<br>
</div>
<div class="tab-pane tab-content" id="newAddress">
<h2>Create new address</h2>
<p>Any keys used you will need to manually store safely as they will be needed later to redeem the coins.</p>
<label><span id="newAddrType"></span> Address </label>
<div class="input-group">
<input id="newGeneratedAddress" type="text" class="form-control address" value="" readonly>
<span class="input-group-btn">
<button class="qrcodeBtn btn btn-default" type="button" data-toggle="modal" data-target="#modalQrcode"><span class="glyphicon glyphicon-qrcode"></span></button>
</span>
</div>
<label>Public key</label>
<input id="newPubKey" type="text" class="form-control" readonly>
<label>Private key (WIF key)</label>
<div class="input-group">
<input id="newPrivKeyWif" type="password" class="form-control" value="" readonly>
<span class="input-group-btn">
<button class="showKey btn btn-default" type="button">Show</button>
</span>
</div>
<div id="aes256wifkey" class="hidden">
<label>AES-256 Encrypted WIF key</label>
<input id="newPrivKeyEnc" type="text" class="form-control" value="" readonly>
</div>
<label>Private key (hex)</label>
<div class="input-group">
<input id="newPrivKey" type="password" class="form-control" value="" readonly>
<span class="input-group-btn">
<button class="showKey btn btn-default" type="button">Show</button>
</span>
</div>
<h3>Address Options</h3>
<p>You can use the advanced options below to generate different kind of keys and addresses.</p>
<div class="checkbox">
<label><input type="checkbox" id="newCompressed" class="checkbox-inline" checked> Compress <span class="text-muted">(recommended)</span></label>
</div>
<div class="checkbox">
<label><input type="checkbox" id="newBrainwallet" class="checkbox-inline"> Custom Seed, Brain Wallet or 64 char hex private key</label>
<div id="keyFromData" class="hidden" style="padding-left: 20px;">
<input type="text" class="form-control" id="brainwallet">
<label><input type="checkbox" id="brainwalletIsPrivKey" class="checkbox-inline"> This is a 64 char hex private key</label>
</div>
</div>
<div class="checkbox">
<label><input type="checkbox" id="encryptKey" class="checkbox-inline"> Encrypt Private Key with AES-256 Password</label>
<div id="aes256passform" class="row hidden">
<div class="col-md-6">
<input type="password" class="form-control" id="aes256pass" placeholder="Password"></label>
</div>
<div class="col-md-6">
<input type="password" class="form-control" id="aes256pass_confirm" placeholder="Confirm Password">
</div>
</div>
<div id="aes256passStatus" class="row hidden">
<div class="col-md-12">
<br>
<div class="alert alert-danger"> <span class="glyphicon glyphicon-exclamation-sign"></span> Your passwords do not match, please try again!</div>
</div>
</div>
</div>
<div class="btn-group">
<input type="button" class="btn btn-primary" value="Generate" id="newKeysBtn">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id="newPaperwalletBtn">Print</a></li>
</ul>
<input type="button" class="btn btn-primary" value="FromLedger" id="ledgerKeysBtn">
</div>
<br>
</div>
<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>
<label>SegWit Address (Share)</label>
<div class="input-group">
<input id="newSegWitAddress" type="text" class="form-control address" value="" readonly>
<span class="input-group-btn">
<button class="qrcodeBtn btn btn-default" type="button" data-toggle="modal" data-target="#modalQrcode"><span class="glyphicon glyphicon-qrcode"></span></button>
</span>
</div>
<label>RedeemScript</label>
<input id="newSegWitRedeemScript" type="text" class="form-control" readonly>
<label>Public key</label>
<input id="newSegWitPubKey" type="text" class="form-control" readonly>
<label>Private key (WIF key)</label>
<div class="input-group">
<input id="newSegWitPrivKey" type="password" class="form-control" value="" readonly>
<span class="input-group-btn">
<button class="showKey btn btn-default" type="button">Show</button>
</span>
</div>
<h3>Address Options</h3>
<p>You can use the advanced options below to generate different kind of keys and addresses.</p>
<div class="checkbox">
<label><input type="checkbox" id="newSegWitBech32addr" class="checkbox-inline" checked> Enable <a href="https://en.bitcoin.it/wiki/Bech32" target="_blank">Bech32</a>?</label>
</div>
<div class="checkbox">
<label><input type="checkbox" id="newSegWitBrainwallet" class="checkbox-inline"> Custom Seed or Brain Wallet</label>
<input type="text" class="form-control hidden" id="brainwalletSegWit">
</div>
<div class="btn-group">
<input type="button" class="btn btn-primary" value="Generate" id="newSegWitKeysBtn">
<button type="button" class="btn btn-primary dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<span class="caret"></span>
<span class="sr-only">Toggle Dropdown</span>
</button>
<ul class="dropdown-menu">
<li><a href="#" id="newSegwitPaperwalletBtn">Print</a></li>
</ul>
</div>
<input type="button" class="btn btn-primary" value="FromLedger" id="ledgerKeysBtn">
<br>
</div>
<div class="tab-pane tab-content" id="newMultiSig">
<h2>New Multisig Address <small>Secure multisig address</small></h2>
<div class="row">
<div class="col-md-8">
<p>Public keys can be <a href="#newAddress">generated in your browser</a> or from your wallet</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>
<div class="col-md-3">
<p class="alert alert-info"><span class="glyphicon glyphicon-info-sign"></span> <a href="javascript:;" data-toggle="modal" data-target="#modalMediator"><abbr>Need a Mediator?</abbr></a></p>
</div>
<div class="col-md-1">
</div>
</div>
<div id="multisigPubKeys">
<table style="width: 100%; border-collapse: separate; border-spacing: 0 1em;">
<thead>
<tr>
<td></td>
<td class="col-xs-7">
<label>Public key</label>
</td>
<td class="col-xs-4">
<label>Identity <span class="text-muted">(if <a href="known-pubkeys.js" target="_blank">known</a>)</span></label>
</td>
<td></td>
</tr>
</thead>
<tbody class="list sort">
<tr class="item" style="width: 100%;">
<td>
<a class="handle"><span class="glyphicon glyphicon-move"></span></a>
</td>
<td class="col-sm-7">
<input type="text" class="form-control pubkey">
</td>
<td class="col-sm-4">
<input type="text" class="form-control id" readonly>
</td>
<td>
<a class="pubkeyAdd"><span class="glyphicon glyphicon-plus"></span></a>
<a class="pubkeyRemove"><span class="glyphicon glyphicon-minus"></span></a>
</td>
</tr>
</tbody>
</table>
</div>
<p>Enter the amount of signatures required to release the coins</p>
<div class="row">
<div class="col-xs-3">
<select id="releaseCoins" class="form-control">
<option>1</option>
<option selected>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
<option>13</option>
<option>14</option>
<option>15</option>
</select>
</div>
</div>
<br>
<div id="multiSigErrorMsg" class="alert alert-danger" style="display:none;"></div>
<div class="alert alert-success hidden" id="multiSigData">
<label>Address</label>
<p>Payment should be made to this address:</p>
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<input type="text" class="form-control address" value="" readonly>
<span class="input-group-btn">
<button class="qrcodeBtn btn btn-default" type="button" data-toggle="modal" data-target="#modalQrcode"><span class="glyphicon glyphicon-qrcode"></span></button>
</span>
</div>
</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 coins.</p>
<textarea class="form-control script" style="height:160px" readonly></textarea>
<label>Shareable URL</label>
<input type="text" class="scriptUrl form-control" readonly>
</div>
<input type="button" class="btn btn-primary" value="Submit" id="newMultiSigAddress">
Or
<button class="btn btn-info" type="button" id="newMultiSigAddressSort">Sort by pubkey</span></button>
<br>
</div>
<div class="tab-pane tab-content" id="newTimeLocked">
<h2>New Time Locked Address <small>Coins can be released only after a certain date</small></h2>
<div class="row">
<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>Enter the public key that will be able to unlock the funds after the a certain date.
</div>
<div class="col-md-1">
</div>
</div>
<div class="row">
<div class="form-horizontal">
<div class="col-xs-12">
<input id="timeLockedPubKey" type="text" class="form-control pubkey">
</div>
</div>
</div>
<p id="timeLockedRbTypeBox">
Enter the
<input type="radio" id="timeLockedRbTypeDate" name="timeLockedRbType" value="date" checked="checked">
<label for="timeLockedRbTypeDate">date and time</label>
or
<input type="radio" id="timeLockedRbTypeBlockHeight" name="timeLockedRbType" value="blockheight">
<label for="timeLockedRbTypeBlockHeight">blockheight</label>
required to release the coins:
</p>
<div class="row">
<div class='col-md-6'>
<div class="form-group">
<div class='input-group date' id='timeLockedDateTimePicker'>
<input type='text' class="form-control" placeholder="MM/DD/YYYY hh:mm" />
<span class="input-group-addon">
<span class="glyphicon glyphicon-calendar"></span>
</span>
</div>
<div class='input-group hidden' id='timeLockedBlockHeight'>
<input type='text' id='timeLockedBlockHeightVal' class="form-control" placeholder="Blockheight" />
</div>
</div>
</div>
</div>
<br>
<div id="timeLockedErrorMsg" class="alert alert-danger" style="display:none;"></div>
<div class="alert alert-success hidden" id="timeLockedData">
<label>Address</label>
<p>Payment should be made to this address:</p>
<div class="row">
<div class="col-lg-6">
<div class="input-group">
<input type="text" class="form-control address" value="" readonly>
<span class="input-group-btn">
<button class="qrcodeBtn btn btn-default" type="button" data-toggle="modal" data-target="#modalQrcode"><span class="glyphicon glyphicon-qrcode"></span></button>
</span>
</div>
</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>
<textarea class="form-control script" style="height:160px" readonly></textarea>
<label>Shareable URL</label>
<input type="text" class="scriptUrl form-control" readonly>
</div>
<input type="button" class="btn btn-primary" value="Submit" id="newTimeLockedAddress">
<br>
</div>
<div class="tab-pane tab-content" id="newHDaddress">
<h2>New HD Address <small>making bip32 even easier</small></h2>
<p>Use the form below to generate a <i>master</i> hierarchical deterministic address.</p>
<label>xPub Address</label>
<div class="input-group">
<input id="newHDxpub" type="text" class="form-control" value="" readonly>
<span class="input-group-btn">
<button class="deriveHDbtn btn btn-default" type="button"><span title="Derive from key" class="glyphicon glyphicon-chevron-right"></span></button>
</span>
</div>
<label>xPrv Address</label>
<div class="input-group">
<input id="newHDxprv" type="text" class="form-control" value="" readonly>
<span class="input-group-btn">
<button class="deriveHDbtn btn btn-default" type="button"><span title="Derive from key" class="glyphicon glyphicon-chevron-right"></span></button>
</span>
</div>
<h3>Address Options</h3>
<p>You can use the advanced options below to generate different kinds of master addresses.</p>
<div class="checkbox">
<label><input type="checkbox" id="newHDBrainwallet" class="checkbox-inline"> Custom Seed or Brain Wallet</label>
<input type="text" class="form-control hidden" id="HDBrainwallet">
</div>
<input type="button" class="btn btn-primary" value="Generate" id="newHDKeysBtn">
</div>
<div class="tab-pane tab-content" id="newTransaction">
<h2>New Transaction <small>Create a new transaction</small></h2>
<p>Use this page to create a raw transaction</p>
<b>Address, WIF key or Multisig Redeem Script</b>:
<div class="input-group">
<span class="input-group-btn">
<button class="btn btn-info qrcodeScanner" type="button" data-toggle="modal" data-target="#modalQrcodeScanner" forward-result="#redeemFrom"><span class="glyphicon glyphicon-camera"></span></button>
</span>
<input type="text" id="redeemFrom" class="form-control" value="">
<span class="input-group-btn">
<button id="redeemFromBtn" class="btn btn-info" type="button">Load</button>
</span>
</div>
<br>
<div class="hidden alert alert-danger" id="redeemFromStatus"></div>
<div class="hidden alert alert-info" id="redeemFromAddress"></div>
<div>
<a href="javascript:;" id="optionsCollapse"><div class="well well-sm"><span class="glyphicon glyphicon-collapse-down" id="glyphcollapse"></span> Advanced Options</div></a>
<div class="hidden" id="optionsAdvanced">
<label>Clear Inputs</label>
<p class="checkbox">
<label><input type="checkbox" id="clearInputsOnLoad" class="checkbox-inline" checked> Clear existing inputs when new inputs are loaded.</label>
</p>
<hr>
<label>Null Data</label> <span class="text-muted text-normal">(80 byte limit, <i>40 bytes recommended</i>)</span>
<p class="checkbox">
<label><input type="checkbox" id="opReturn" class="checkbox-inline"> Allow data to be sent within the transaction and stored in the blockchain by using <a href="https://bitcoin.org/en/developer-guide#null-data" target="_"blank">OP_RETURN</a>.</label>
<br/>
<label disabled><input type="checkbox" id="opReturnText" class="checkbox-inline" disabled> As plain text </label>
<div id="opReturnMessage" class="text-muted">When using this option you may enter a hex string or address into the address field on the output tab.</div>
<div id="opReturnTextMessage" class="text-muted hidden">When using this option you may enter a plain text string into the address field on the output tab.</div>
</p>
<hr>
<label>Transaction Version</label>
<p>Desired version of transaction to be created.</p>
<input type="text" class="form-control" value="3" id="nVersion">
<hr>
<div id="txTimeOptional">
<label>Extra time field</label>
<p>Indicates the timestamp of a transaction.</p>
<input type="text" class="form-control" value="0" id="nTime">
<hr>
</div>
<label>Lock Time</label>
<p>The <a href="https://bitcoin.org/en/developer-guide#locktime-and-sequence-number">locktime</a> indicates the earliest time a transaction can be added to the block chain.</p>
<input type="text" class="form-control" value="0" id="nLockTime">
<hr>
<label>Network</label>
<p>The <a href="#settings">settings</a> page can be used to select alternative networks of which you can retrieve your unspent outputs and broadcast a signed transaction into.</p>
<hr>
</div>
</div>
<ul class="nav nav-tabs" id="putTabs">
<li class="active"><a href="#txoutputs" data-toggle="tab">Outputs <small>(<span id="totalOutput">0.00000000</span>)</small></a></li>
<li><a href="#txinputs" data-toggle="tab">Inputs <small>(<span id="totalInput">0.00000000</span>)</small></a></li>
</ul>
<br>
<div class="tab-content">
<div class="tab-pane fade in active" id="txoutputs">
<p>Enter the address and amount you wish to make a payment to.</p>
<div class="row">
<div class="col-xs-4">
<label><abbr title="Address to send to">Address</abbr></label>
</div>
<div class="col-xs-2">
<label><abbr title="Amount to send">Amount</abbr></label>
</div>
<div class="col-xs-5">
<label><abbr title="Receiver of the payment">Identity <span class="text-muted">(if <a href="known-pubkeys.js" target="_blank">known</a>)</span></abbr></label>
</div>
<div class="col-xs-1">
</div>
</div>
<div id="recipients">
<div class="row recipient">
<div class="col-xs-4">
<input type="text" class="form-control address" placeholder="">
</div>
<div class="col-xs-2">
<input type="text" class="form-control amount" placeholder="0.00">
</div>
<div class="col-xs-5">
<input type="text" class="form-control id" readonly>
</div>
<div class="col-xs-1">
<a href="javascript:;" class="addressAddTo"><span class="glyphicon glyphicon-plus"></span></a>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="txinputs">
<p>Enter the details of inputs you wish to spend.</p>
<div class="row">
<div class="col-xs-5">
<label><abbr title="Transaction ID">Transaction ID:</abbr></label>
</div>
<div class="col-xs-1">
<label><abbr title="Transaction Input Number">N</abbr></label>
</div>
<div class="col-xs-3">
<label>Script</label>
</div>
<div class="col-xs-2">
<label><abbr title="This field is for accounting purposes only - the entire input will be spent!">Amount</abbr></label>
</div>
<div class="col-xs-1">
</div>
</div>
<div id="inputs">
<div class="row inputs">
<div class="col-xs-5">
<input type="text" class="form-control txId" placeholder="">
</div>
<div class="col-xs-1">
<input type="text" class="form-control txIdN" placeholder="0">
</div>
<div class="col-xs-3">
<input type="text" class="form-control txIdScript">
</div>
<div class="col-xs-2">
<input type="text" class="form-control txIdAmount" placeholder="0.00">
</div>
<div class="col-xs-1">
<a href="javascript:;" class="txidAdd"><span class="glyphicon glyphicon-plus"></span></a>
<a href="javascript:;" class="txidRemove"><span class="glyphicon glyphicon-minus"></span></a>
</div>
</div>
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-xs-3">
<label><abbr title="What is not spent will be used as a transaction fee">Transaction Fee</abbr></label>
<input type="text" id="transactionFee" class="form-control" value="0.0000" readonly>
</div>
</div>
<br>
<div id="transactionCreateStatus" class="alert alert-danger hidden"></div>
<div id="transactionCreate" class="alert alert-success hidden">
<label>Transaction</label>
<button class="qrcodeBtn btn btn-default" type="button" data-toggle="modal" data-target="#modalQrcode" style="float:right;"><span class="glyphicon glyphicon-qrcode"></span></button>
<p>The transaction below has been generated and encoded. It can be broadcasted once it has been signed.</p>
<br>
<textarea class="form-control" style="height:150px" readonly></textarea>
<div class="row">
<div class="col-md-12">
<p class="text-muted" style="float:left;">Size: <span class="txSize">0</span> <i>bytes</i></p>
<div style="float:right;margin-top: 10px;">
If you are sure:
<button class="btn btn-info transactionToVerify" type="button">
Continue to Verify
<span class="glyphicon glyphicon-pencil"></span>
</button>
Or
<button class="btn btn-info transactionToSign" type="button">
Continue to Sign
<span class="glyphicon glyphicon-pencil"></span>
</button>
</div>
</div>
</div>
</div>
<input type="button" value="Generate" class="btn btn-primary" id="transactionBtn">
<br>
</div>
<div class="tab-pane tab-content" id="newPeerAsset">
<h2>New PeerAsset <small>Create a new peerasset</small></h2>
<p>Use this page to create a raw transaction</p>
<b>Address, WIF key or Multisig Redeem Script</b>:
<div class="input-group">
<input type="text" id="issuer" class="form-control" value="">
<span class="input-group-btn">
<button id="issuerBtn" class="btn btn-info" type="button">Load</button>
</span>
</div>
<br>
<div class="hidden alert alert-danger" id="issuerStatus"></div>
<div class="hidden alert alert-info" id="issuerAddress"></div>
<div>
<a href="javascript:;" id="optionsCollapse"><div class="well well-sm"><span class="glyphicon glyphicon-collapse-down" id="glyphcollapse"></span> Advanced Options</div></a>
<div class="hidden" id="optionsAdvanced">
<label>Clear Inputs</label>
<p class="checkbox">
<label><input type="checkbox" id="clearInputsOnLoad" class="checkbox-inline" checked> Clear existing inputs when new inputs are loaded.</label>
</p>
<hr>
<label>Null Data</label> <span class="text-muted text-normal">(80 byte limit, <i>40 bytes recommended</i>)</span>
<p class="checkbox">
<label><input type="checkbox" id="opReturn" class="checkbox-inline"> Allow data to be sent within the transaction and stored in the blockchain by using <a href="https://bitcoin.org/en/developer-guide#null-data" target="_"blank">OP_RETURN</a>.</label>
<div class="text-muted">When using this option you may enter a hex string or address into the address field on the output tab.</div>
</p>
<hr>
<label>Lock Time</label>
<p>The <a href="https://bitcoin.org/en/developer-guide#locktime-and-sequence-number">locktime</a> indicates the earliest time a transaction can be added to the block chain.</p>
<input type="text" class="form-control" value="0" id="nLockTime">
<hr>
<div id="txTimeOptional">
<label>Extra time field</label>
<p>Indicates the timestamp of a transaction.</p>
<input type="text" class="form-control" value="0" id="nTime">
<hr>
</div>
<label>Network</label>
<p>The <a href="#settings">settings</a> page can be used to select alternative networks of which you can retrieve your unspent outputs and broadcast a signed transaction into.</p>
<hr>
</div>
</div>
<ul class="nav nav-tabs" id="putTabs">
<li class="active"><a href="#txoutputs" data-toggle="tab">Outputs <small>(<span id="totalOutput">0.00000000</span>)</small></a></li>
<li><a href="#txinputs" data-toggle="tab">Inputs <small>(<span id="totalInput">0.00000000</span>)</small></a></li>
</ul>
<br>
<div class="tab-content">
<div class="tab-pane fade in active" id="txoutputsPA">
<p>Enter the address and amount you wish to make a payment to.</p>
<div class="row">
<div class="col-xs-4">
<label><abbr title="Address to send to">Address</abbr></label>
</div>
<div class="col-xs-2">
<label><abbr title="Amount to send">Amount</abbr></label>
</div>
<div class="col-xs-5">
<label><abbr title="Receiver of the payment">Identity <span class="text-muted">(if <a href="known-pubkeys.js" target="_blank">known</a>)</span></abbr></label>
</div>
<div class="col-xs-1">
</div>
</div>
<div id="recipientsPA">
<div class="row recipient">
<div class="col-xs-4">
<input type="text" class="form-control address" placeholder="">
</div>
<div class="col-xs-2">
<input type="text" class="form-control amount" placeholder="0.00">
</div>
<div class="col-xs-5">
<input type="text" class="form-control id" readonly>
</div>
<div class="col-xs-1">
<a href="javascript:;" class="addressAddTo"><span class="glyphicon glyphicon-plus"></span></a>
</div>
</div>
</div>
</div>
<div class="tab-pane fade" id="txinputsPA">
<p>Enter the details of inputs you wish to spend.</p>
<div class="row">
<div class="col-xs-5">
<label><abbr title="Transaction ID">Transaction ID:</abbr></label>
</div>
<div class="col-xs-1">
<label><abbr title="Transaction Input Number">N</abbr></label>
</div>
<div class="col-xs-3">
<label>Script</label>
</div>
<div class="col-xs-2">
<label><abbr title="This field is for accounting purposes only - the entire input will be spent!">Amount</abbr></label>
</div>
<div class="col-xs-1">
</div>
</div>
<div id="inputsPA">
<div class="row inputs">
<div class="col-xs-5">
<input type="text" class="form-control txId" placeholder="">
</div>
<div class="col-xs-1">
<input type="text" class="form-control txIdN" placeholder="0">
</div>
<div class="col-xs-3">
<input type="text" class="form-control txIdScript">
</div>
<div class="col-xs-2">
<input type="text" class="form-control txIdAmount" placeholder="0.00">
</div>
<div class="col-xs-1">
<a href="javascript:;" class="txidAdd"><span class="glyphicon glyphicon-plus"></span></a>
<a href="javascript:;" class="txidRemove"><span class="glyphicon glyphicon-minus"></span></a>
</div>
</div>
</div>