forked from brainwallet/brainwallet.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
432 lines (422 loc) · 23.1 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Brainwallet - JavaScript Client-Side Bitcoin Address Generator</title>
<meta content="width=device-width, initial-scale=1.0" name="viewport">
<meta content="bitcoin address generator" name="description">
<meta content="brainwallet" name="author">
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/default.css" rel="stylesheet">
<link href="css/bootstrap-responsive.css" rel="stylesheet">
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link href="favicon.ico" rel="shortcut icon">
</head>
<body>
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-target=".nav-collapse" data-toggle="collapse">
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> </a> <a class="brand" href="/">Brainwallet</a>
<div class="nav-collapse">
<ul class="nav">
<li class="active">
<a data-toggle="tab" href="#generator">Generator</a></li>
<li><a data-toggle="tab" href="#chains" id="tab-chains">Chains</a></li>
<li>
<a data-toggle="tab" href="#tx" id="tab-tx">Transactions</a></li>
<li>
<a data-toggle="tab" href="#converter" id="tab-converter">Converter</a></li>
<li>
<a data-toggle="tab" href="#sign" id="tab-sign">Sign Message</a></li>
<li>
<a data-toggle="tab" href="#verify" id="tab-verify">Verify Message</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container">
<div class="tab-content">
<!-- Generator -->
<div class="tab-pane fade in active" id="generator">
<form action="/" class="form-horizontal" method="get">
<fieldset> <legend>Generator <span class="pull-right" id="genAddrLabel"></span></legend>
<div class="control-group">
<div class="row">
<div class="span10">
<div class="control-group">
<label class="control-label" for="from_pass">Get Address From</label>
<div class="controls">
<div class="btn-group pull-left" data-toggle="buttons-radio" id="gen_from">
<button class="btn active" id="from_pass" title="Single SHA256" type="button">Passphrase</button>
<button class="btn" id="from_hash" title="Hex-encoded" type="button">Secret Exponent</button>
<button class="btn" id="from_sec" title="Base58-encoded" type="button">Private Key</button>
</div>
<div class="help-inline" id="genMsg" style="margin: 5px;"></div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="pass">Passphrase</label>
<div class="controls">
<div class="input-append">
<input class="span5" id="pass" type="text" autocomplete="off"></button>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="hash">Secret Exponent</label>
<div class="controls">
<div class="input-append">
<input class="span5" id="hash" maxlength="64" readonly type="text"><button class="btn" id="random" title="Random" type="button"><i class="icon-repeat"></i></button>
</div><span class="help-inline errormsg"></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="uncompressed">Point Conversion</label>
<div class="controls">
<div class="btn-group" data-toggle="buttons-radio" id="gen_comp">
<button class="btn active" id="uncompressed" title="Uncompressed keys (reference client)" type="button">Uncompressed</button>
<button class="btn" id="compressed" title="Compressed keys (introduced in 0.5.99)" type="button">Compressed</button>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="sec">Private Key</label>
<div class="controls">
<input class="span5" id="sec" readonly type="text">
<span class="help-inline errormsg"></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="addr">Address</label>
<div class="controls">
<input class="span4" id="addr" readonly type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="der">Private Key (DER)</label>
<div class="controls">
<textarea class="span6" id="der" readonly rows="7"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="pub">Public Key (SEC)</label>
<div class="controls">
<textarea class="span5" id="pub" readonly rows="2"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="h160">HASH160</label>
<div class="controls">
<input class="span4" id="h160" readonly type="text">
</div>
</div>
</div>
<div class="span2" class="pull-right">
<a id="genAddrURL" href=""><div id="genAddrQR"></div></a>
</div>
</div>
</div>
</fieldset>
</form>
</div>
<!-- Chains -->
<div class="tab-pane fade" id="chains">
<form action="/" class="form-horizontal" method="get">
<fieldset> <legend>Chains</legend>
<div class="control-group">
<label class="control-label" for="chain_simple">Generation Method</label>
<div class="controls">
<div class="btn-group" data-toggle="buttons-radio" id="chain_from">
<button class="btn active" id="chain_armory" type="button">Armory</button>
<button class="btn" id="chain_electrum" type="button">Electrum</button>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="seed">Chain Code</label>
<div class="controls">
<div class="input-append">
<input class="span5" id="seed" maxlength="32" readonly type="text"><button class="btn" id="chPlay" title="Random" type="button"><i class="icon-repeat"></i></button><button class="btn hide" id="chStop" title="Stop" type="button"><i class="icon-stop"></i></button>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="expo">Root Key</label>
<div class="controls">
<div class="input-append">
<input class="span5" id="expo" maxlength="64" readonly type="text">
</div><span class="help-inline" id="progress"></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="memo">Paper Backup</label>
<div class="controls">
<textarea class="span6" id="memo" rows="4"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="range">Primary Addresses</label>
<div class="controls">
<input class="span2" id="range" maxlength="3" type="text" value="5">
</div>
</div>
<div class="control-group" title="Electrum specific, added to the end of the list">
<label class="control-label" for="range">Change Addresses</label>
<div class="controls">
<input class="span2" id="elChange" maxlength="3" type="text" value="1" disabled>
</div>
</div>
<div class="control-group">
<label class="control-label" for="csv">Wallet Format</label>
<div class="controls">
<div class="btn-group" data-toggle="buttons-radio" id="chain_format">
<button class="btn active" id="csv" type="button">CSV</button>
<button class="btn" id="json" type="button">JSON</button>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="chain">Chain</label>
<div class="controls">
<textarea class="span8" id="chain" readonly rows="13"></textarea>
</div>
</div>
</fieldset>
</form>
</div>
<!-- Transactions -->
<div class="tab-pane fade" id="tx">
<form action="/" class="form-horizontal" method="get">
<fieldset> <legend>Transactions</legend>
<div class="control-group">
<label class="control-label" for="txSec">Private Key</label>
<div class="controls">
<input class="span5" id="txSec" type="text" autocomplete="off">
<span class="help-inline errormsg"></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="txAddr">Source Address</label>
<div class="controls">
<input class="span4" id="txAddr" type="text">
<div class="input-prepend"> <span class="add-on">BTC</span><input class="span2" id="txBalance" readonly type="text">
</div>
<button class="btn" id="txGetUnspent" title="Reload" type="button"><i class="icon-repeat"></i></button>
<button class="btn" data-target="#txUnspentForm" data-toggle="collapse" id="txToggle" type="button">Edit Inputs</button>
</div>
</div>
<div class="collapse" id="txUnspentForm">
<div class="control-group">
<label class="control-label" for="txBBE">Get History From</label>
<div class="controls">
<div class="btn-group" data-toggle="buttons-radio" id="txType">
<button class="btn active" id="txBCI" type="button">BlockChain Info</button>
<button class="btn" id="txBBE" type="button">Bitcoin Block Explorer</button>
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="txUnspent">Transaction History</label>
<div class="controls">
<textarea class="span8" id="txUnspent" rows="16"></textarea>
</div>
</div>
</div>
<div class="control-group txCC">
<label class="control-label" for="txDest">Destination Address</label>
<div class="controls">
<input class="span4" id="txDest" class="txDest" type="text" autocomplete="off">
<div class="input-prepend"> <span class="add-on">BTC</span><input class="span2" id="txValue" type="text" autocomplete="off">
</div>
<span class="help-inline errormsg">
<button class="btn" id="txAddDest" type="button">+</button>
<button class="btn" id="txRemoveDest" type="button" disabled>–</button>
</span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="txFee">Fee</label>
<div class="controls">
<input class="span4" disabled="disabled" type="text" style="height:0px;">
<div class="input-prepend"> <span class="add-on">BTC</span><input class="span2" id="txFee" type="text" value="0.0002">
</div>
</div>
</div>
<div class="control-group">
<label class="control-label">Destination Address<br>(Return Changy)</label>
<div class="controls">
<input class="span4" readonly id="txDest" class="txDest" type="text" autocomplete="off">
<div class="input-prepend"> <span class="add-on">BTC</span><input class="span2" id="txValue" readonly type="text" autocomplete="off">
</div>
</div>
</div>
<div class="control-group">
<label class="control-label" for="txJSON">JSON Transaction</label>
<div class="controls">
<textarea class="span8" id="txJSON" rows="17"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="txHex">Raw Transaction</label>
<div class="controls">
<textarea class="span8" id="txHex" rows="4"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label">Actions</label>
<div class="controls">
<span class="help-inline errormsg"><button class="btn" id="txRebuild" type="button" title="ECDSA signatures require a random number which means signing the same data twice results in different sigs.">Re-sign</button>
<!--button class="btn" id="txSend" type="button">Send Transaction</button--><br>
Send Transaction:<br>
<a href="https://blockchain.info/pushtx" target="_blank">blockchain.info/pushtx</a><br>
<a href="https://coinb.in/#broadcast" target="_blank">coinb.in/#broadcast</a><br>
<a href="https://blockr.io/tx/push" target="_blank">blockr.io/tx/push</a><br>
<a href="https://en.bitcoin.it/wiki/Transaction_broadcasting" target="_blank">...more...</a>
</span>
</div>
</div>
</fieldset>
</form>
</div>
<!-- Converter -->
<div class="tab-pane fade" id="converter">
<form action="/" class="form-inline" method="get">
<fieldset> <legend>Converter</legend>
<div class="control-group">
<div class="row">
<div class="span6">
<div class="control-group">
<div class="btn-toolbar">
<div class="btn-group" data-toggle="buttons-radio" id="enc_from">
<button class="btn active" id="from_hex" type="button">Hex</button>
<button class="btn" id="from_text" type="button">Text</button>
<button class="btn" id="from_base58" type="button">Base58</button>
<button class="btn" id="from_base64" type="button">Base64</button>
<button class="btn" id="from_rfc1751" type="button">Rfc1751</button>
<button class="btn" id="from_mnemonic" type="button">Poetry</button>
</div>
</div>
</div>
<div class="control-group">
<textarea class="span6" id="src" rows="10"></textarea>
</div>
<div> <span id="hint_from"> </span>
</div>
</div>
<div class="span6">
<div class="control-group">
<div class="btn-toolbar">
<div class="btn-group" data-toggle="buttons-radio" id="enc_to">
<button class="btn active" id="to_hex" type="button">Hex</button>
<button class="btn" id="to_text" type="button">Text</button>
<button class="btn" id="to_base58" type="button">Base58</button>
<button class="btn" id="to_base64" type="button">Base64</button>
<button class="btn" id="to_rfc1751" type="button">Rfc1751</button>
<button class="btn" id="to_mnemonic" type="button">Poetry</button>
<button class="btn" id="to_rot13" type="button">Rot13</button>
</div>
</div>
</div>
<div class="control-group">
<textarea class="span6" id="dest" readonly rows="10"></textarea>
</div>
<div> <span id="hint_to"> </span>
</div>
</div>
</div>
</div>
</fieldset>
</form>
</div>
<!-- Sign -->
<div class="tab-pane fade" id="sign">
<form action="/" class="form-horizontal" method="get" id="sgForm">
<fieldset> <legend>Sign Message</legend>
<div class="control-group">
<label class="control-label" for="sgSec">Private Key</label>
<div class="controls">
<input class="span5" id="sgSec" type="text">
<span class="help-inline errormsg"></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="sgAddr">Address</label>
<div class="controls">
<input class="span4" id="sgAddr" readonly type="text">
</div>
</div>
<div class="control-group">
<label class="control-label" for="sgMsg">Message</label>
<div class="controls">
<textarea class="span8" id="sgMsg" rows="10"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="sgSig">Signature</label>
<div class="controls">
<input class="span8" id="sgSig" type="text" readonly>
</div>
</div>
<div class="control-group">
<label class="control-label" for="sgSign"></label>
<div class="controls">
<button class="btn" id="sgSign" type="button">Sign Message</button>
</div>
</div>
</fieldset>
</form>
</div>
<!-- Verify -->
<div class="tab-pane fade" id="verify">
<form action="/" class="form-horizontal" method="get" id="vrForm">
<fieldset> <legend>Verify Message</legend>
<div class="control-group">
<label class="control-label" for="vrMsg">Message</label>
<div class="controls">
<textarea class="span8" id="vrMsg" rows="10"></textarea>
</div>
</div>
<div class="control-group">
<label class="control-label" for="vrSig">Signature</label>
<div class="controls">
<input class="span8" id="vrSig" type="text">
<span class="help-inline errormsg"></span>
</div>
</div>
<div class="control-group">
<label class="control-label" for="vrVerify"></label>
<div class="controls">
<button class="btn" id="vrVerify" type="button">Verify Message</button>
<span id="vrRes" class="help-inline errormsg"></span>
</div>
</div>
</fieldset>
</form>
</div>
<hr />
</div>
<FOOTER>
<p>© 2012–2013 Brainwallet<span class="pull-right"><small>Powered by
<a href="http://pages.github.com">GitHub Pages</a> |
<a href="https://github.com/brainwallet/brainwallet.github.com">View Source Code</a>
</small></span></p>
</FOOTER>
</div>
<script src="js/jquery-1.7.2.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bitcoinjs-min.js"></script>
<script src="js/qrcode.js"></script>
<script src="js/rfc1751.js"></script>
<script src="js/mnemonic.js"></script>
<script src="js/armory.js"></script>
<script src="js/electrum.js"></script>
<script src="js/tx.js"></script>
<script src="js/bitcoinsig.js"></script>
<script src="js/brainwallet.js"></script>
</body>
</html>