forked from shubhamkhanna161295/recordskeeper-wallet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
executable file
·600 lines (467 loc) · 27.7 KB
/
index.php
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
<?php
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>RecordsKeeper</title>
<meta name="description" content="">
<meta name="keywords" content="">
<meta name="theme-color" content="#212739">
<meta name="MobileOptimized" content="320">
<meta name="HandheldFriendly" content="true">
<meta name="viewport" content="width=device-width, initial-scale=1, target-densitydpi=device-dpi">
<meta name="author" content="http://psdhtml.me">
<!-- Bootstrap core CSS -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<link href="https://use.fontawesome.com/releases/v5.0.6/css/all.css" rel="stylesheet">
<link rel="stylesheet" media="screen" href="styles/textext.core.css">
<link rel="stylesheet" type="text/css" href="styles/textext.plugin.autocomplete.css">
<link rel="stylesheet" media="screen" href="styles/screen.css">
<link rel="stylesheet" media="print" href="styles/print.css">
<link rel="icon" type="image/x-icon" href="images/fav.png">
<link rel="stylesheet" media="screen" href="styles/wallet.css">
<link rel="stylesheet" media="screen" href="styles/bootstrap-tokenfield.css">
<link rel="stylesheet" media="screen" href="styles/textext.plugin.autocomplete.css">
<link rel="stylesheet" media="screen" href="styles/tokenfield-typeahead.css">
<!-- jQuery UI CSS -->
<link href="https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" type="text/css" rel="stylesheet">
<!-- Bootstrap styling for Typeahead -->
<link href="styles/tokenfield-typeahead.css" type="text/css" rel="stylesheet">
<!-- Tokenfield CSS -->
<link href="styles/bootstrap-tokenfield.css" type="text/css" rel="stylesheet">
<!-- Docs CSS -->
<link href="styles/pygments-manni.css" type="text/css" rel="stylesheet">
<link href="styles/docs.css" type="text/css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/pretty-checkbox.min.css">
<!-- link for table to css cdn here -->
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/TableExport/3.3.13/css/tableexport.css">
<meta property="og:title" content="">
<meta property="og:type" content="website">
<meta property="og:description" content=".">
<meta property="og:site_name" content="">
<meta property="og:url" content="">
<meta property="og:image" content="">
<style type="text/css">
</style>
<style type="text/css">
html {
height: 100%;
}
body {
min-height: 100% !important;
display: grid !important;
grid-template-rows: 1fr auto !important;
}
footer {
grid-row-start: 2 !important;
grid-row-end: 3 !important;
}
#signersend{
display: block !important !important;
}
#content {
position: relative;
z-index: 2;
min-height: 68vh;
}
</style>
</head>
<body>
<div class="se-pre-con"></div>
<div id="root">
<header id="top">
<p id="logo">
<a href="./">
<img src="images/logo.svg">
</a>
</p>
<nav id="skip">
<ul>
<li><a href="#nav" accesskey="n">Skip to Navigation (n)</a></li>
<li><a href="#content" accesskey="c">Skip to Content (c)</a></li>
<li><a href="#footer" accesskey="f">Skip to Footer (f)</a></li>
</ul>
</nav>
<nav id="nav">
<ul>
<div id="togglecont">
<input class="tgl tgl-light" id="cb1" type="checkbox" />
<label class="tgl-btn" for="cb1"></label>
</div>
<span>
<label id="togglecontlabel">Mainnet</label>
</span>
</ul>
</nav>
</header>
<article id="content">
<div class="row">
<div class="loginContainer">
<div class="row positionCont">
<div class="or">
<span>OR</span>
</div>
<p class="font14">If you a're a new user, please click on the create XRK wallet or XRK MultiSig wallet button.</p>
<div class="col-md-6">
<button type="submit" class="createwalletBtn margintop30 btnmobilemarg" id="createkeypairsbtn1" data-toggle="modal" data-target="#myModal1">CREATE XRK WALLET</button>
</div>
<div class="col-md-6">
<button type="submit" class="createwalletBtn margintop30 btnmobilemarg" id="createmultisig" data-toggle="modal" data-target="#myModal3">CREATE MULTISIG WALLET</button>
</div>
<div class="col-md-12">
<button type="submit" class="createwalletBtn margintop30 btnmobilemarg" id="createkeypairsbtn1" data-toggle="modal" data-target="#myModal2">RESTORE XRK WALLET</button>
</div>
</div>
<div class="row margintop30 mobilemarg">
<p class="font14">If you already have RecordsKeeper's XRK wallet or XRK MultiSig wallet, please enter your wallet address here. </p>
<input type="text" class="registered_address logininputs" name="registered_adr" id="registered_adr" placeholder="Enter your XRK wallet address" value="">
<div class="pretty p-svg p-curve">
<input type="checkbox" class="checkboxmulti" />
<div class="state p-success">
<!-- svg path -->
<svg class="svg svg-icon" viewBox="0 0 20 20">
<path d="M7.629,14.566c0.125,0.125,0.291,0.188,0.456,0.188c0.164,0,0.329-0.062,0.456-0.188l8.219-8.221c0.252-0.252,0.252-0.659,0-0.911c-0.252-0.252-0.659-0.252-0.911,0l-7.764,7.763L4.152,9.267c-0.252-0.251-0.66-0.251-0.911,0c-0.252,0.252-0.252,0.66,0,0.911L7.629,14.566z" style="stroke: white;fill:white;"></path>
</svg>
<label>It is a MultiSig Wallet</label>
</div>
</div>
<button type="submit" class="createwalletBtn " id="walletloginbtn">Submit</button>
<div class="clearfix"> </div>
<p id="restorelink1" style="margin: 25 0 -22 0;"><a data-toggle="modal" data-target="#myModal4" >Forgot your XRK Address? Click here </a></p>
</div>
</div>
</div>
</article>
<footer id="footer">
<ul>
<li>© RecordsKeeper @ 2016-2018. All rights reserved </li>
<li><a href="./" target="_blank">Terms</a></li>
<li><a href="./" target="_blank">Privacy Policy</a></li>
<li><a href="http://explorer.recordskeeper.co/" target="_blank">Mainnet Explorer</a></li>
<li><a href="http://test-explorer.recordskeeper.co/" target="_blank">Testnet Explorer</a></li>
<li><a href="http://faucet.recordskeeper.co/" target="_blank">Faucet</a></li>
<li><a href="http://stats.recordskeeper.co/" target="_blank">Blockchain Statistics</a></li>
<li><a href="http://miner.recordskeeper.co/" target="_blank">Miner Statistics</a></li>
<li><a href="http://airdrop.recordskeeper.co/" target="_blank">Airdrop</a></li>
<li><a href="http://demo.recordskeeper.co/" target="_blank">Demo</a></li>
<li><a href="https://docs.recordskeeper.co/" target="_blank">Docs</a></li>
</ul>
</footer>
</div>
<div id="myModal" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Recordskeeper's XRK Wallet</h4>
</div>
<div class="modal-body standfont" id="printdiv">
<p class="themecolor" ><i class="fas fa-dot-circle themecolor maright10"></i>Your wallet has been created.<br> Please download your private key and save it at a safe place, you will need it for your trasactions.
</p>
<p id="modalshowaddress">
</p>
<p id="modalshowkey">
</p>
<div id="printwalletcont">
<div class="walletheader">
<img src="images/logo.png">
</div>
<div class="row walletcontent">
<div class="col-md-6">
<div id="qrcode">
<p class="qrlabel">
</p>
</div>
</div>
<div class="col-md-6">
<div id="qrcode2">
<p class="qrlabel">
</p>
</div>
</div>
</div>
<div class="row walletcontent">
<p id="modalboxaddress" class="modc">
</p>
<p id="modalboxkey" class="modc">
</p>
</div>
</div>
<a download="RecordsKeeper-wallet-key.json" id="downloadlink" download>Download</a>
<a id="printWallet" value="Print" class="noprint">Print Wallet</a>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" id="createKeyCloseBtn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="myModal1" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title ">Create RecordsKeeper's XRK Wallet</h4>
<span class="standfont"></span>
</div>
<div class="modal-body " id="firststand">
<div id="fistmodbod">
<p class="themecolor regular font14">
You may create RecordsKeeper's XRK wallet without any password but it is highly recommended that you provide a password for additional security of your wallet.
</p>
<div class="row">
<div class="col-md-6">
<label class="label13"> Password (Optional) </label>
<input type="password" name="firstpass" class="mb20" placeholder="Password (optional)" id="firstpass" value="">
</div>
<div class="col-md-6">
<label class="label13"> Confirm Password </label>
<input type="password" name="firstpass" class="mb20" placeholder="Confirm Password" id="confpass" value="" >
</div>
<div class="colmd-12">
<button type="submit" class="createwalletBtn margintop30" id="createXRKhd">Create XRK Wallet</button>
</div>
</div>
</div>
</div>
<div class="seedcont"> <img id="printimg2" src=""> </div>
<div id="seedcontainer">
</div>
<!-- <p class="seedcontainer" id="seed">
</p> -->
<div class='row walletcontent' id="qrcodecontainer">
<img src='images/testnet.png' id='printimg'>
<div class='col-md-4 code1'>
<div id='qrcode'>
<p class='qrlabel'>xrk-wallet-address</p>
</div>
</div>
<div class='col-md-4 code2'>
<div id='qrcode6'>
<p class='qrlabel'>xrk-wallet-public-key</p>
</div>
</div>
<div class='col-md-4 code6'>
<div id='qrcode2'>
<p class='qrlabel'>xrk-wallet-private-key</p>
</div>
</div>
</div>
<div class=''>
<div class='' id="modaladdrcont">
<p id='modalboxaddress' class='modc'></p>
<p id='modalboxkey' class='modc'></p>
</div>
<div>
<div class="col-md-12 printcontainer">
<a id='printWallet' value='Print' class='noprint'>Print Wallet</a>
</div>
</div>
</div>
<a download="RecordsKeeper-wallet-key.json" id="downloadlink" download>Download</a>
<div class="modal-footer">
<button type="button" class="btn btn-default" id="createKeyCloseBtn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="myModal2" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" id="restoretitle">Restore RecordsKeeper's XRK Wallet</h4>
</div>
<p id="congrats">Congratulations !! your wallet has been restored.</p>
<div class="modal-body " id="restoremodBody">
<form id="restoreform">
<div class="restorebefore">
<div class="textareaCont">
<label class="labelrestore"> Enter Seed Phrase here (24 words) </label>
<textarea rows="15" cols="100" class="form-control" id="seedTextArea" value="" required="required" style="width: 100% !important"></textarea>
<p id="restoreErrorP">Please Enter a Valid Seed Phrase</p>
</div>
<div class="row">
<div class="col-md-12">
<label class="labelrestore">In case you have provided a password while creating the wallet, please provide it as it is here. Any password entered here will restore a valid XRK wallet but that may be different than your actual wallet if the provided password is not exactly same as the original one. So, Make sure your password is correct.</label>
<input type="password" name="firstpass" class="mb20" placeholder="Password" id="restorepass">
</div>
<div class="colmd-12">
<button type="submit" class="createwalletBtn margintop30" id="restoreWalletBtn">Restore XRK Wallet</button>
</div>
</div>
</div>
<div class='row walletcontent' id="qrcodecontainer2">
<img id='printimg3' src='' >
<div class='col-md-4 code3' >
<p class='qrlabel'>xrk-wallet-address</p>
<div id='qrcode3'>
</div>
</div>
<div class='col-md-4 code5'>
<p class='qrlabel'>xrk-wallet-public-key</p>
<div id='qrcode7'>
</div>
</div>
<div class='col-md-4 code4'>
<p class='qrlabel'>xrk-wallet-private-key</p>
<div id='qrcode4'>
</div>
</div>
</div>
</form>
</div>
<div class="modal-footer">
<div class="col-md-12 margbot10">
<a id='printWallet2' value='Print' class='noprint'>Print Wallet</a>
</div>
<button type="button" class="btn btn-default" id="createKeyCloseBtn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="myModal3" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" id="restoretitle1">Create RecordsKeeper's XRK MultiSig Wallet</h4>
</div>
<!-- <p id="congrats">Congratulations !! your wallet has been restored.</p> -->
<div class="modal-body " id="restoremodBody">
<p class="themecolor regular font14" id="submitPbKeys">
You can submit the public keys by filling the required no. of public keys in the input box. You can add any no of public keys by clicking on the "plus" button as per your requirement. In the “Required Signatures” dropdown list select the no. of required public addresses which must be passed to sign the transaction with multisignature address.
</p>
<form id="restoremultiform" name="restoremultiform" action="" >
<div class="mainro">
<div class="firstrow multirow row">
<div class="col-md-2 pad10 fonts12 ">
Public Key 1 :
</div>
<div class="col-md-9">
<input type="text" name="publickey1" placeholder="Enter Public Key 1" id="publickey1" value="" required="required">
</div>
</div>
<div class="firstrow multirow row">
<div class="col-md-2 pad10 fonts12 ">
Public Key 2 :
</div>
<div class="col-md-9">
<input type="text" name="publickey2" placeholder="Enter Public Key 2" id="publickey2" value="" required="required">
</div>
</div>
</div>
<div class="addmoreCont">
<i class="fas fa-plus-circle"></i>
</div>
<div class="row margintop30">
<div class="col-md-4">
<label class="reqsignlabel">Required Signatures <span class="red">*</span> </label>
<!-- <input type="number" name="n" id="n" value="" placeholder="Enter no. of signatures" required="required"> -->
<select name="n" id="n" required="required">
<option value="1">1</option>
<option value="2">2</option>
</select>
</div>
<div class="col-md-8 ptop18">
<label> </label>
<button type="submit" class="crmultiwa " id="createmultisigwal">Create MultiSig Wallet</button >
</div>
</div>
</form>
<div class="multisigCont">
<img src='images/testnet.png' id='printimgMultisig'>
<div class="">
<p class="themecolor font14 regular"><span class="green">Your RecordsKeeper's XRK MultiSig wallet has been created successfully.</span><br><br>Please securely store your keys associated with address carefully.
</p>
<div id="qrcode5">
<p class="qrlabel">
</p>
</div>
<p class="multilabel">MultiSig address : <span id="multiaddress">mqoVVmrnVSS1AVR1qoFsrLuDXcphcLWjXr</span> </p>
</div>
</div>
</div>
<div class="errorContP">
<p>
There's something wrong with your Public Keys, please check them carefully.
</p>
</div>
<div class="errorsignP">
<p>
Number of required signatures cannot be greater than number of public keys.
</p>
</div>
<div class="modal-footer">
<div class="col-md-12 margbot10">
<a download="RecordsKeeper-wallet-key.json" id="downloadlink" download>Download</a>
<a id="printWalletmultisig" value="Print" class="noprint">Print Wallet</a>
</div>
<button type="button" class="btn btn-default" id="createKeyCloseBtn" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<div id="myModal4" class="modal fade" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title" id="restoretitle1">Retrieve XRK Wallet from Private Key</h4>
</div>
<div class="modal-body " id="restoremodBody1">
<form id="restoreform1">
<div class="restorebefore1">
<div class="textareaCont">
<label class="labelrestore"> Enter your Private Key here </label>
<input type="text" class="form-control" id="userprivatekey" value="" required="required" style="width: 100% !important"></input>
<p id="restoreErrorP1"> Please Enter a valid Private Key</p>
</div>
<div class="row">
<div class="colmd-12">
<button type="submit" class="walletBtn margintop30" id="restoreAddressBtn">Retrieve XRK Wallet </button>
</div>
</div>
</div>
</div>
</form>
</div>
<!-- <button type="button" class="btn btn-default" id="createKeyCloseBtn" data-dismiss="modal">Close</button> -->
</div>
</div>
</div>
</div>
<!-- all the script here to make the page load faster -->
<script src="javascript/jquery.js"></script>
<script src="https://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-autocomplete/1.0.7/jquery.auto-complete.min.js"></script> -->
<script src="javascript/bootstrap-tokenfield.min.js"></script>
<script src="javascript/scripts.js"></script>
<script src="javascript/custom.js"></script>
<script src="javascript/mobile.js"></script>
<script src="javascript/index.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
<script type="text/javascript" src="javascript/typeahead.bundle.js" charset="UTF-8"></script>
<script type="text/javascript" src="javascript/typeahead.bundle.js" charset="UTF-8"></script>
<script type="text/javascript" src="javascript/docs.js" charset="UTF-8"></script>
<script>
</script>
<!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.8.13/jquery-ui.min.js"></script> -->
<script src="https://cdn.rawgit.com/davidshimjs/qrcodejs/gh-pages/qrcode.min.js"></script>
<script src="javascript/table2CSV.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/limonte-sweetalert2/6.11.0/sweetalert2.all.min.js"></script>
<script src="https://code.jquery.com/jquery-2.2.4.min.js" integrity="sha256-BbhdlvQf/xTY9gja0Dq3HiwQF8LaCRTXxZKRutelT44=" crossorigin="anonymous"></script>
<script src="javascript/bitcore-lib/bitcore-lib.js"></script>
<script src="javascript/bitcore-mnemonic/bitcore-mnemonic.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.qrcode/1.0/jquery.qrcode.min.js"></script>
<script src="javascript/wallet.js"></script>
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js"></script>
<script src="https://fastcdn.org/FileSaver.js/1.1.20151003/FileSaver.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/TableExport/3.3.13/js/tableexport.js"></script>
<script>
</script>
</body>
</html>