-
Notifications
You must be signed in to change notification settings - Fork 0
/
crumbs.html
123 lines (109 loc) · 4.89 KB
/
crumbs.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Nibble Paper Wallet Generator</title>
<meta charset="UTF-8">
<link rel="stylesheet" href="cstyle.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta.3/css/bootstrap.min.css" integrity="sha384-Zug+QiDoJOrZ5t4lssLdxGhVrurbmBWopoEl+M6BdEfwnCJZtKxi1KgxUyJq13dy" crossorigin="anonymous">
</head>
<body style="background-color: #111111;color: white;">
<div class="container">
<div class="row">
<div class="col-12">
<center>
<img class="img-fluid" src="clogo.png" alt="Crumbs" width="300px">
</center>
</div>
</div>
<div class="row d-print-none">
<div class="col-12 d-print-none"><center>
<h3>
<button class="btn btn-default" onclick="js:show_generate();" type="button" value="Generate a wallet">Generate a Wallet</button> or
<button class="btn btn-default" onclick="js:show_restore();" type="button" value="restore keys from seed phrase">Restore keys from seed phrase</button>
</h3>
<div id="generate" style="display:none;">
<p>For extra security, type a few random letters, words, numbers, or symbols below. Press "Generate Wallet" when you are done.</p>
<input id="user_entropy_widget" type="text" style="width:100%;" value="" placeholder=" The more random stuff you type in this box, the better your keys will be." /><br /><br />
<center>
<button class="btn btn-default" onclick="js:genwallet(null);" type="button" value="Generate wallet">Generate Wallet</button>
</center>
</div>
<div id="restore" style="display: none;">
<input id="seed_phrase" type="text" style="width:100%;" value="" placeholder="Enter your seed phrase words here."/><br /><br />
<center>
<button class="btn btn-default" onclick="js:restore_keys(null);" type="button" value="Restore keys">Restore Keys</button>
</center>
</div>
</center>
</div>
</div>
<div id="step2" class="row" style="display:none;">
<div class="col-12">
<p class="d-print-none">Write down your public address, or copy paste it somewhere. Anyone with this address can send you money.</p>
<h3 class="d-print-block">Public Address</h3>
<div class="col border border-success" style="padding: 1em;">
<center>
<strong>
<span style="font-family: monospace, monospace; word-wrap: break-word;" class="" id="address_widget">Crunching crumbs & nibbles...</span>
</strong>
</center>
</div>
<div class="row" >
<div class="col-12">
<h3 class="d-print-block">Seed Phrase</h3>
<p class="d-print-none">Copy your seed phrase and keys. If you lose your wallet, these can be used to restore your money. That also means you need to keep them safe and private.</p>
<p class="d-print-block">This is your seed phrase. You can use it to regenerate your wallet if you lose it.</p>
<em>
<div class="col border border-danger" style="font-family: monospace, monospace; padding: 1em;">
<strong>Seed Phrase:</strong>
<span class="private">
<span id="mnemonic_widget">Crunching crumbs & nibbles...</span>
</span>
</div>
</em>
</div>
</div>
<br>
<div class="row d-print-block">
<div class="col-12">
<h3 class="d-print-block">Wallet Keys</h3>
<p>These are the keys you need to regenerate your wallet.</p>
</div>
</div>
<div class="col">
<!--p class="d-print-none">Print or write down these keys and keep them safe. Without them you cannot access your money. There are no second chances.</p-->
<div class="row border border-danger" style="padding:1em;">
<div class="col" style="overflow:visible">
<strong>Spend Key:</strong>
<span class="private">
<span style="font-family: monospace, monospace; word-wrap: break-word;" id="spend_key_widget">Generating...</span>
</span>
</div>
<div class="col" style="overflow:visible">
<strong>View Key:</strong>
<span class="private">
<span style="font-family: monospace, monospace; word-wrap: break-word;" id="view_key_widget">Generating...</span>
</span>
</div>
<div class="col" style="overflow:visible">
<strong>Private Keys for importing into GUI wallet:</strong>
<span class="private">
<span style="font-family: monospace, monospace; word-wrap: break-word;" id="private_keys_widget">Generating...</span>
</span>
</div>
</div>
</div>
<div class="row d-print-none">
<div class="col-12">
<center>
<input type="button" onClick="window.print()" class="btn btn-default" value="Print This Page"/>
</center>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="iframe-buster.js"></script>
<script type="text/javascript" src="crypto_utils.js"></script>
<script type="text/javascript" src="wallet.js"></script>
</body>
</html>