-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
417 lines (405 loc) · 23.2 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
<!DOCTYPE html>
<html>
<head>
<title>1Address</title>
<meta charset="utf-8">
<!-- Viewport Meta Tag -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Latest compiled and minified Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.16/css/dataTables.bootstrap4.min.css">
<style>
.tab-pane {
border-left: 1px solid #ddd;
border-right: 1px solid #ddd;
border-bottom: 1px solid #ddd;
border-radius: 0px 0px 5px 5px;
padding: 10px;
}
.nav-tabs {
margin-bottom: 0;
}
</style>
</head>
<body>
<!-- YOUR CONTENT STARTS HERE -->
<div style="background-color: green" width="100%">
<div class="container-fluid">
<div class="d-flex flex-wrap align-items-center">
<div>
<div id="account" class="p-0"><a style="color:#ffffff" href="https://metamask.io">Get MetaMask!</a></div>
<div id="balances" class="p-0"></div>
</div>
</div>
</div>
</div>
<div class="container-fluid">
<br/>
<h3>Active tasks</h3>
<div class="table-responsive">
<table id="tasks" class="table table-sm table-striped table-bordered table-hover">
<thead class="thead-light">
<tr>
<th>Id</th>
<th>Prefix</th>
<th>Reward</th>
<th>Difficulty</th>
<th>Price</th>
<th style="width:15%">Pay</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<br/>
<h3>Solved tasks</h3>
<div class="table-responsive">
<table id="completed-tasks" class="table table-sm table-striped table-bordered table-hover">
<thead class="thead-light">
<tr>
<th>Id</th>
<th>Prefix</th>
<th>Reward</th>
<th>Difficulty</th>
<th>Price</th>
<th style="width:15%">Get</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<br/>
<h3>Create task</h3>
<div class="row">
<div class="col-sm-6">
<fieldset class="form-group">
<label for="btc_prefix">Bitcoin Address Prefix:</label>
<input type="text" class="form-control" id="btc_prefix" name="btc_prefix" placeholder="1Bitcoin">
</fieldset>
</div>
<div class="col-sm-6">
<fieldset class="form-group">
<label for="btc_difficulty">Difficulty:</label>
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text">GH</span>
</div>
<input readonly type="text" class="form-control" id="btc_difficulty" name="btc_difficulty">
</div>
</fieldset>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<fieldset class="form-group">
<label for="btc_reward">Reward:</label>
<div class="input-group mb-0">
<div class="input-group-prepend">
<span class="input-group-text">ETH</span>
</div>
<input type="text" class="form-control" id="btc_reward" name="btc_reward">
</div>
<div class="input-group mb-1">
<p id="exchangeWarning" style="color:gray"></p>
</div>
</fieldset>
</div>
<div class="col-sm-6">
<fieldset class="form-group">
<label for="btc_price">Price:</label>
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text">ETH/GH</span>
</div>
<input type="text" class="form-control" id="btc_price" name="btc_price">
</div>
</fieldset>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<fieldset class="form-group">
<label for="btc_publickey">Bitcoin Public Key (hex):</label>
<input type="text" class="form-control" id="btc_publickey" name="btc_publickey">
</fieldset>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<button type="submit" class="btn btn-primary" id="create">Create</button>
</div>
</div>
<br/>
<h3>Reference</h3>
<br/>
<h5>First you need to generate Bitcoin secret private and public keys</h5>
<ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#unix">Linux/macOS</a></li>
<li class="nav-item"><a class="nav-link disabled" data-toggle="tab" href="#windows">Windows</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#online">Online</a></li>
</ul>
<div class="tab-content">
<div id="unix" class="tab-pane active visible">
<pre><code>$ openssl ecparam -genkey -name secp256k1 -text -noout -outform DER | xxd -p -c 1000 | sed 's/41534e31204f49443a20736563703235366b310a30740201010420/Private Key: /' | sed 's/a00706052b8104000aa144034200/\'$'\nPublic Key: /'</code></pre>
<pre><code>Private Key: ***
Public Key: 04***</code></pre>
</div>
<div id="windows" class="tab-pane">
</div>
<div id="online" class="tab-pane">
<label for="create_private_key">Bitcoin Private Key:</label>
<input class="form-control" id="create_private_key" pattern="[0-9A-Za-z]{32}"></code>
<label for="create_public_key">Bitcoin Public Key:</label>
<input readonly class="form-control" id="create_public_key" pattern="04[0-9A-Za-z]{64}"></code>
<p align="right" class="text-muted">Powered by <a href="">bitcore-lib.js</a></p>
</div>
</div>
<br/>
<h5>Or you can derive public key from existing secret private key (replace <code>***</code> with private key in hex without <code>0x</code>)</h5>
<ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#unix2">Linux/macOS</a></li>
<li class="nav-item"><a class="nav-link disabled" data-toggle="tab" href="#windows2">Windows</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#online2">Online</a></li>
</ul>
<div class="tab-content">
<div id="unix2" class="tab-pane active visible">
<pre><code>$ /usr/local/Cellar/openssl/1.0.2n/bin/openssl ec -inform DER -text -noout -in <(cat <(echo -n "302e0201010420") <(echo -n "***") <(echo -n "a00706052b8104000a") | xxd -r -p) 2>/dev/null | tail -6 | head -5 | sed 's/[ :]//g' | tr -d '\n' && echo</code></pre>
<pre><code>Public Key: ***</code></pre>
</div>
<div id="windows2" class="tab-pane">
</div>
<div id="online2" class="tab-pane">
<label for="create_private_key">Bitcoin Private Key:</label>
<input class="form-control" id="create_private_key_2" pattern="[0-9A-Za-z]{32}"></code>
<label for="create_public_key">Bitcoin Public Key:</label>
<input readonly class="form-control" id="create_public_key_2" pattern="04[0-9A-Za-z]{64}"></code>
<p align="right" class="text-muted">Powered by <a href="">bitcore-lib.js</a></p>
</div>
</div>
<br/>
<h5>At the end you need to add your secret private key and found private key (replace <code>***</code>'s with private keys in hex without <code>0x</code>)</h5>
<ul class="nav nav-tabs">
<li class="nav-item"><a class="nav-link active" data-toggle="tab" href="#unix3">Linux/macOS</a></li>
<li class="nav-item"><a class="nav-link disabled" data-toggle="tab" href="#windows3">Windows</a></li>
<li class="nav-item"><a class="nav-link" data-toggle="tab" href="#online3">Online</a></li>
</ul>
<div class="tab-content">
<div id="unix3" class="tab-pane active visible">
<pre><code>$ (echo 'ibase=16;obase=10' && (echo '(*** + ***) % FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F' | tr '[:lower:]' '[:upper:]')) | bc</code></pre>
<pre><code>Private Key: ***</code></pre>
</div>
<div id="windows3" class="tab-pane">
</div>
<div id="online3" class="tab-pane">
<label for="add_private_key_1">Bitcoin Private Key 1:</label>
<input class="form-control" id="add_private_key_1" pattern="[0-9A-Za-z]{32}">
<label for="add_private_key_2">Bitcoin Private Key 2:</label>
<input class="form-control" id="add_private_key_2" pattern="[0-9A-Za-z]{32}">
<label for="add_private_key_3">Bitcoin Private Key Sum:</label>
<input readonly class="form-control" id="add_private_key_3" pattern="[0-9A-Za-z]{32}">
<label for="add_private_key_wif">Bitcoin Private Key Sum in WIF format:</label>
<input readonly class="form-control" id="add_private_key_wif" pattern="[0-9A-Za-z]{32}">
<label for="add_private_key_address">Bitcoin Address:</label>
<input readonly class="form-control" id="add_private_key_address">
<p align="right" class="text-muted">Powered by <a href="">bitcore-lib.js</a></p>
</div>
</div>
<br/>
<h5>How cancel task or reduce task reward?</h5>
<div>Completelly not possible. You task will became more and more valuable during time with the ETH/USD rate growing.</div>
<br/>
<h5>How to mine tasks and earn ETH?</h5>
<div>Just configure and run this software: <a href="https://github.com/1Address/1AddressMiner">https://github.com/1Address/1AddressMiner</a></div>
<br/>
<div>
<hr/>
Telegram Chat: <a href="https://t.me/OneAddressChat">https://t.me/OneAddressChat</a><br/>
Telegram Channel: <a href="https://t.me/OneAddressInfo">https://t.me/OneAddressInfo</a><br/>
Deplyed contract: <a href="https://etherscan.io/address/0x7a848abebea15a4bc2c27a40fa78f44c3daecd2c">0x7a848abebea15a4bc2c27a40fa78f44c3daecd2c</a><br/>
Source code: <a href="https://github.com/1Address/1Address">https://github.com/1Address/1Address</a><br/>
Script for mining: <a href="https://github.com/1Address/1AddressMiner">https://github.com/1Address/1AddressMiner</a><br/>
Online Bitcoin Calculator: <a href="http://gobittest.appspot.com/Address">http://gobittest.appspot.com/Address</a><br/>
<hr/>
</div>
</div>
<!-- MODALS -->
<div id="modalAnswer" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Task Result</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-sm-6">
<fieldset class="form-group">
<label for="ans_prefix">Bitcoin Address Prefix:</label>
<input readonly type="text" class="form-control" id="ans_prefix">
</fieldset>
</div>
<div class="col-sm-6">
<fieldset class="form-group">
<label for="ans_difficulty">Difficulty:</label>
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text">GH</span>
</div>
<input readonly type="text" class="form-control" id="ans_difficulty">
</div>
</fieldset>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<fieldset class="form-group">
<label for="ans_reward">Reward:</label>
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text">ETH</span>
</div>
<input readonly type="text" class="form-control" id="ans_reward">
</div>
</fieldset>
</div>
<div class="col-sm-6">
<fieldset class="form-group">
<label for="ans_price">Price:</label>
<div class="input-group mb-2">
<div class="input-group-prepend">
<span class="input-group-text">ETH/GH</span>
</div>
<input readonly type="text" class="form-control" id="ans_price">
</div>
</fieldset>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<fieldset class="form-group">
<label for="ans_publickey">Bitcoin Public Key (hex):</label>
<input readonly type="text" class="form-control" id="ans_publickey">
</fieldset>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<fieldset class="form-group">
<label for="ans_privatekey">Bitcoin Private Key <b>Part</b> (hex):</label>
<div class="input-group mb-3">
<input readonly type="text" class="form-control" id="ans_privatekey" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="ans_privatekey_copy" class="btn btn-outline-secondary" type="button">Copy</button>
</div>
</div>
</fieldset>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<fieldset class="form-group">
<label for="ans_privatekey_wif">Bitcoin Private Key <b>Part</b> (WIF):</label>
<div class="input-group mb-3">
<input readonly type="text" class="form-control" id="ans_privatekey_wif" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="ans_privatekey_wif_copy" class="btn btn-outline-secondary" type="button">Copy</button>
</div>
</div>
</fieldset>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<div id="txPending" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered modal-m">
<div class="modal-content">
<div class="modal-header">Pending transaction...</div>
<div class="modal-body">
<div class="progress active mb-0">
<div class="progress-bar progress-bar-striped progress-bar-animated" style="width: 100%"></div>
</div>
</div>
</div>
</div>
</div>
<div id="txModal" class="modal" tabindex="-1" role="dialog">
<div class="modal-dialog modal-dialog-centered modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">Transaction details</h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<label for="tx_to">Contract address:</label>
<div class="input-group mb-3">
<input readonly class="form-control" id="tx_to" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="tx_to_copy" class="btn btn-outline-secondary" type="button">Copy</button>
</div>
</div>
<label for="tx_value">Value (ETH):</label>
<div class="input-group mb-3">
<input readonly class="form-control" id="tx_value" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="tx_value_copy" class="btn btn-outline-secondary" type="button">Copy</button>
</div>
</div>
<label for="tx_data">Data:</label>
<div class="input-group mb-3">
<textarea readonly rows="3" style="height:auto" class="form-control" id="tx_data" aria-describedby="basic-addon2"></textarea>
<div class="input-group-append">
<button id="tx_data_copy" class="btn btn-outline-secondary" type="button">Copy</button>
</div>
</div>
<label for="tx_data">Gas:</label>
<div class="input-group mb-3">
<input readonly class="form-control" id="tx_gas" aria-describedby="basic-addon2">
<div class="input-group-append">
<button id="tx_gas_copy" class="btn btn-outline-secondary" type="button">Copy</button>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div>
<!-- YOUR CONTENT ENDS HERE -->
<!-- JavaScript: placed at the end of the document so the pages load faster -->
<!-- jQuery library -->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<!-- Popper -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.12.9/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<!-- Latest compiled and minified Bootstrap JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<!-- DataTables -->
<script src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>
<script src="https://cdn.datatables.net/1.10.16/js/dataTables.bootstrap4.min.js"></script>
<!-- Web3js library -->
<script src="./js/web3.min.js"></script>
<script src="./js/1address.js"></script>
<!-- Bitcoin library -->
<script src="./js/bitcore-lib.js"></script>
<script src="./js/bitcoin.js"></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123513918-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-123513918-1');
</script>
</body>
</html>