forked from VluCash/paper-vlucash
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcheck.html
218 lines (186 loc) · 10.3 KB
/
check.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
<!-- Copyright (c) 2018, The TurtleCoin Developers
//
// Please see the included LICENSE file for more information. -->
<!DOCTYPE html>
<html lang="en">
<head>
<title>TurtleCoin Wallet Generator</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<link rel="shortcut icon" href="./assets/icon.png" type="image/x-icon" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.1/css/bulma.min.css">
<link rel="stylesheet" href="./assets/css/style.css">
<script defer src="https://use.fontawesome.com/releases/v5.1.0/js/all.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', () => {
const $navbarBurgers = Array.prototype.slice.call(document.querySelectorAll('.navbar-burger'), 0);
if ($navbarBurgers.length > 0) {
$navbarBurgers.forEach( el => {
el.addEventListener('click', () => {
const target = el.dataset.target;
const $target = document.getElementById(target);
el.classList.toggle('is-active');
$target.classList.toggle('is-active');
});
});
}
});
</script>
</head>
<body>
<section class="hero is-white is-fullheight">
<div class="hero-head">
<header class="navbar">
<div class="container">
<div class="navbar-brand">
<a href="#" class="navbar-item is-size-3 has-text-weight-semibold"> TurtleCoin</a>
<span class="navbar-burger burger" data-target="navbarMenu">
<span></span>
<span></span>
<span></span>
</span>
</div>
<div id="navbarMenu" class="navbar-menu">
<div class="navbar-start">
<a href="index.html" class="navbar-item">
Main generator
</a>
<a href="identicon.html" class="navbar-item">
Custom identicon
</a>
<a href="check.html" class="navbar-item">
Address checker
</a>
</div>
</div>
</header>
</div>
<div class="hero-body">
<div class="container">
<div class=" has-text-centered" style="margin:50px 0 50px 0;">
<img src="./assets/img/logo.png" width="150" height="" />
<h1 class="subtitle is-size-5" style="margin-top:20px;">TurtleCoin Address Checker</h1>
<hr>
</div>
<div class="columns">
<div class="column is-12 noprint has-text-centered">
<label for="address">Enter TRTL public address (regular or integrated)</label>
<input class="input" type="text" id="address" placeholder="TRTL..." />
<div style="margin: 20px 0">
<button class="button is-dark d-print-noe" onclick="js:checkAddress();" type="button" value="Check Address">Check Address</button>
</div>
<div id="check_results">
<div id="notification_container"></div>
<div id="address_identicon_widget" style="display:inline-block;"></div>
<div id="address_qr_widget" style="display:inline-block;"></div>
<pre id="address_details" style="text-align:left"></pre>
</div>
</div>
</div>
</div>
</div>
<footer class="footer hero-foot">
<div class="container">
<div class="columns">
<div class="column has-text-center">
Note: All generation is done client side, and no information is sent to the server <br>
</div>
<div class="column is-6 has-text-right">
<a href="http://chat.turtlecoin.lol" class="button is-dark" style="background: #6c81ca;">
<span class="icon">
<svg class="svg-inline--fa fa-discord fa-w-14" aria-hidden="true" data-prefix="fab" data-icon="discord" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" data-fa-i2svg=""><path fill="currentColor" d="M297.216 243.2c0 15.616-11.52 28.416-26.112 28.416-14.336 0-26.112-12.8-26.112-28.416s11.52-28.416 26.112-28.416c14.592 0 26.112 12.8 26.112 28.416zm-119.552-28.416c-14.592 0-26.112 12.8-26.112 28.416s11.776 28.416 26.112 28.416c14.592 0 26.112-12.8 26.112-28.416.256-15.616-11.52-28.416-26.112-28.416zM448 52.736V512c-64.494-56.994-43.868-38.128-118.784-107.776l13.568 47.36H52.48C23.552 451.584 0 428.032 0 398.848V52.736C0 23.552 23.552 0 52.48 0h343.04C424.448 0 448 23.552 448 52.736zm-72.96 242.688c0-82.432-36.864-149.248-36.864-149.248-36.864-27.648-71.936-26.88-71.936-26.88l-3.584 4.096c43.52 13.312 63.744 32.512 63.744 32.512-60.811-33.329-132.244-33.335-191.232-7.424-9.472 4.352-15.104 7.424-15.104 7.424s21.248-20.224 67.328-33.536l-2.56-3.072s-35.072-.768-71.936 26.88c0 0-36.864 66.816-36.864 149.248 0 0 21.504 37.12 78.08 38.912 0 0 9.472-11.52 17.152-21.248-32.512-9.728-44.8-30.208-44.8-30.208 3.766 2.636 9.976 6.053 10.496 6.4 43.21 24.198 104.588 32.126 159.744 8.96 8.96-3.328 18.944-8.192 29.44-15.104 0 0-12.8 20.992-46.336 30.464 7.68 9.728 16.896 20.736 16.896 20.736 56.576-1.792 78.336-38.912 78.336-38.912z"></path></svg><!-- <i class="fab fa-discord"></i> -->
</span>
<span>Discord</span>
</a>
<a href="https://github.com/turtlecoin/paper-turtle" class="button is-dark">
<span class="icon">
<svg class="svg-inline--fa fa-github fa-w-16" aria-hidden="true" data-prefix="fab" data-icon="github" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 496 512" data-fa-i2svg=""><path fill="currentColor" d="M165.9 397.4c0 2-2.3 3.6-5.2 3.6-3.3.3-5.6-1.3-5.6-3.6 0-2 2.3-3.6 5.2-3.6 3-.3 5.6 1.3 5.6 3.6zm-31.1-4.5c-.7 2 1.3 4.3 4.3 4.9 2.6 1 5.6 0 6.2-2s-1.3-4.3-4.3-5.2c-2.6-.7-5.5.3-6.2 2.3zm44.2-1.7c-2.9.7-4.9 2.6-4.6 4.9.3 2 2.9 3.3 5.9 2.6 2.9-.7 4.9-2.6 4.6-4.6-.3-1.9-3-3.2-5.9-2.9zM244.8 8C106.1 8 0 113.3 0 252c0 110.9 69.8 205.8 169.5 239.2 12.8 2.3 17.3-5.6 17.3-12.1 0-6.2-.3-40.4-.3-61.4 0 0-70 15-84.7-29.8 0 0-11.4-29.1-27.8-36.6 0 0-22.9-15.7 1.6-15.4 0 0 24.9 2 38.6 25.8 21.9 38.6 58.6 27.5 72.9 20.9 2.3-16 8.8-27.1 16-33.7-55.9-6.2-112.3-14.3-112.3-110.5 0-27.5 7.6-41.3 23.6-58.9-2.6-6.5-11.1-33.3 2.6-67.9 20.9-6.5 69 27 69 27 20-5.6 41.5-8.5 62.8-8.5s42.8 2.9 62.8 8.5c0 0 48.1-33.6 69-27 13.7 34.7 5.2 61.4 2.6 67.9 16 17.7 25.8 31.5 25.8 58.9 0 96.5-58.9 104.2-114.8 110.5 9.2 7.9 17 22.9 17 46.4 0 33.7-.3 75.4-.3 83.6 0 6.5 4.6 14.4 17.3 12.1C428.2 457.8 496 362.9 496 252 496 113.3 383.5 8 244.8 8zM97.2 352.9c-1.3 1-1 3.3.7 5.2 1.6 1.6 3.9 2.3 5.2 1 1.3-1 1-3.3-.7-5.2-1.6-1.6-3.9-2.3-5.2-1zm-10.8-8.1c-.7 1.3.3 2.9 2.3 3.9 1.6 1 3.6.7 4.3-.7.7-1.3-.3-2.9-2.3-3.9-2-.6-3.6-.3-4.3.7zm32.4 35.6c-1.6 1.3-1 4.3 1.3 6.2 2.3 2.3 5.2 2.6 6.5 1 1.3-1.3.7-4.3-1.3-6.2-2.2-2.3-5.2-2.6-6.5-1zm-11.4-14.7c-1.6 1-1.6 3.6 0 5.9 1.6 2.3 4.3 3.3 5.6 2.3 1.6-1.3 1.6-3.9 0-6.2-1.4-2.3-4-3.3-5.6-2z"></path></svg><!-- <i class="fab fa-github"></i> -->
</span>
<span>Github</span>
</a>
</div>
</div>
</div>
</footer>
</section>
<script type="text/javascript" src="./assets/js/jdenticon-settings.js"></script>
<script type="text/javascript" src="./assets/js/jdenticon-2.1.0.js"></script>
<script type="text/javascript" src="./assets/js/iframe-buster.js"></script>
<script type="text/javascript" src="./assets/js/crypto_utils.js"></script>
<script type="text/javascript" src="./assets/js/wallet.js"></script>
<script type="text/javascript" src="./assets/js/address-check.js"></script>
<script src="./assets/js/qrcode.js"></script>
<!-- Modal Template -->
<div id="modal_template" style="display:none">
<div class="wallet popup noprint">
<div class="columns">
<div class="column is-12 d-print-block">
<h3 class="subtitle is-size-5 d-print-block">Identicon</h3>
<div class="identicon_widget"></div>
</div>
</div>
<div class="columns">
<div class="column is-12 d-print-block">
<h3 class="subtitle is-size-5 d-print-block">Public Address</h3>
<div class="notification is-info">
<span style="font-family: monospace, monospace; word-wrap: break-word;" class="address_widget"></span>
</div>
</div>
</div>
<div class="columns">
<div class="column is-12">
<h3 class="subtitle is-size-5 d-print-block">Seed Phrase</h3>
<div class="notification is-danger">
<span style="font-family: monospace, monospace; word-wrap: break-word;" class="mnemonic_widget"></span>
</div>
</div>
</div>
<div class="columns">
<div class="column is-12 d-print-block">
<h3 class="subtitle is-size-5 d-print-block">View Key</h3>
<div class="notification is-danger">
<span style="font-family: monospace, monospace; word-wrap: break-word;" class="view_key_widget"></span>
</div>
<h3 class="subtitle is-size-5 d-print-block">Spend Key</h3>
<div class="notification is-danger">
<span style="font-family: monospace, monospace; word-wrap: break-word;" class="spend_key_widget"></span>
</div>
</div>
</div>
</div>
</div>
<!-- For printing -->
<div class="wallet print">
<img src="assets/img/keys.png"/>
<div class="amount-added-text">Seed</div>
<div class="note-text" id="mnemonic_widget_copy">Seed</div>
<div class="date-text">Date</div>
<div class="instruction-text">
<ul>
<li>
To deposit funds to this Turtle paper wallet: send TRTL to the <b>public</b> address
</li>
<li>
<b>DO NOT REVEAL THE PRIVATE KEY</b> until you are ready to import the balance of this wallet to a Turtle client
</li>
</ul>
</div>
<div id="spend_key_widget_copy" class="spend_key_widget"></div>
<div id="address_widget_copy" class="address_widget"></div>
<div id="qrcodeSecret_copy" class="qr-secret"></div>
<div id="address_qr_widget_copy" class="qr-address"></div>
<div id="view_key_widget_copy" class="view_key_widget"></div>
<div id="qrcodeView_copy" class="qr-view"></div>
<div class="logo-text">
<ul>
<div class="logo">
<img class="logo" src="assets/img/logo.png"/>
</div>
<li>
<b>TURTLECOIN</b>
</li>
</ul>
</div>
</div>
</body>
</html>