diff options
author | Suat Özgür <s.oezguer@gmail.com> | 2018-12-17 01:59:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-17 01:59:05 +0100 |
commit | 612d6b42060e98d9a1cd69b594c23e3bb19d32fe (patch) | |
tree | cc5a890760a860df2e53c02b5a088e2e6d6bb24d /src/index.html | |
parent | d354a1dfab85fd97a12406c4e66ff374d1f207b3 (diff) | |
parent | 717a3ffcb285233e2d029ac5f544f70410d22d3d (diff) | |
download | BIP39-612d6b42060e98d9a1cd69b594c23e3bb19d32fe.tar.gz BIP39-612d6b42060e98d9a1cd69b594c23e3bb19d32fe.tar.zst BIP39-612d6b42060e98d9a1cd69b594c23e3bb19d32fe.zip |
Merge branch 'master' into master
Diffstat (limited to 'src/index.html')
-rw-r--r-- | src/index.html | 264 |
1 files changed, 162 insertions, 102 deletions
diff --git a/src/index.html b/src/index.html index d3333b5..a3d6c0c 100644 --- a/src/index.html +++ b/src/index.html | |||
@@ -15,7 +15,7 @@ | |||
15 | <div class="container"> | 15 | <div class="container"> |
16 | 16 | ||
17 | <h1 class="text-center">Mnemonic Code Converter</h1> | 17 | <h1 class="text-center">Mnemonic Code Converter</h1> |
18 | <p class="version">v0.3.2</p> | 18 | <p class="version">v0.3.9</p> |
19 | <hr> | 19 | <hr> |
20 | <div class="row"> | 20 | <div class="row"> |
21 | <div class="col-md-12"> | 21 | <div class="col-md-12"> |
@@ -36,8 +36,8 @@ | |||
36 | <div class="col-sm-10"> | 36 | <div class="col-sm-10"> |
37 | <div class="form-inline"> | 37 | <div class="form-inline"> |
38 | <div class="input-group-inline"> | 38 | <div class="input-group-inline"> |
39 | <span>Generate a random mnemonic, or enter your own below</span>: | 39 | <span>Generate a random mnemonic</span>: |
40 | <button class="btn generate">Generate</button> | 40 | <button class="btn generate" ><b>GENERATE</b></button> |
41 | <select id="strength" class="strength form-control"> | 41 | <select id="strength" class="strength form-control"> |
42 | <option value="3">3</option> | 42 | <option value="3">3</option> |
43 | <option value="6">6</option> | 43 | <option value="6">6</option> |
@@ -48,7 +48,12 @@ | |||
48 | <option value="21">21</option> | 48 | <option value="21">21</option> |
49 | <option value="24">24</option> | 49 | <option value="24">24</option> |
50 | </select> | 50 | </select> |
51 | <span>words</span> | 51 | <span>words, or enter your own below</span>. |
52 | <p class="warning help-block hidden"> | ||
53 | <span class="text-danger"> | ||
54 | Mnemonics with less than 12 words have low entropy and may be guessed by an attacker. | ||
55 | </span> | ||
56 | </p> | ||
52 | </div> | 57 | </div> |
53 | </div> | 58 | </div> |
54 | </div> | 59 | </div> |
@@ -64,7 +69,7 @@ | |||
64 | <div class="form-group"> | 69 | <div class="form-group"> |
65 | <label for="entropy" class="col-sm-2 control-label">Entropy</label> | 70 | <label for="entropy" class="col-sm-2 control-label">Entropy</label> |
66 | <div class="col-sm-7"> | 71 | <div class="col-sm-7"> |
67 | <textarea id="entropy" rows="2" class="entropy form-control" placeholder="Accepts either binary, base 6, 6-sided dice, base 10, hexadecimal or cards"></textarea> | 72 | <textarea id="entropy" rows="2" class="entropy private-data form-control" placeholder="Accepts either binary, base 6, 6-sided dice, base 10, hexadecimal or cards"></textarea> |
68 | <div class="row filter-warning text-danger hidden"> | 73 | <div class="row filter-warning text-danger hidden"> |
69 | <p class="col-sm-12"> | 74 | <p class="col-sm-12"> |
70 | <strong> | 75 | <strong> |
@@ -91,21 +96,28 @@ | |||
91 | <div class="bits col-sm-3 form-control-static"></div> | 96 | <div class="bits col-sm-3 form-control-static"></div> |
92 | </div> | 97 | </div> |
93 | <label class="col-sm-3 control-label">Filtered Entropy</label> | 98 | <label class="col-sm-3 control-label">Filtered Entropy</label> |
94 | <div class="filtered col-sm-9 form-control-static"></div> | 99 | <div class="filtered private-data col-sm-9 form-control-static"></div> |
95 | <label class="col-sm-3 control-label">Raw Binary</label> | 100 | <label class="col-sm-3 control-label">Raw Binary</label> |
96 | <div class="binary col-sm-9 form-control-static"></div> | 101 | <div class="binary private-data col-sm-9 form-control-static"></div> |
102 | <label class="col-sm-3 control-label">Binary Checksum</label> | ||
103 | <div class="checksum private-data col-sm-9 form-control-static"> </div> | ||
97 | <label class="col-sm-3 control-label">Word Indexes</label> | 104 | <label class="col-sm-3 control-label">Word Indexes</label> |
98 | <div class="word-indexes col-sm-9 form-control-static"> </div> | 105 | <div class="word-indexes private-data col-sm-9 form-control-static"> </div> |
99 | <label class="col-sm-3 control-label">Mnemonic Length</label> | 106 | <label class="col-sm-3 control-label">Mnemonic Length</label> |
100 | <div class="col-sm-9"> | 107 | <div class="col-sm-9"> |
101 | <select class="mnemonic-length form-control"> | 108 | <select class="mnemonic-length form-control"> |
102 | <option value="raw" selected>Use Raw Entropy (3 words per 32 bits)</option> | 109 | <option value="raw" selected>Use Raw Entropy (3 words per 32 bits)</option> |
103 | <option value="12">12 <span>Words</span></option> | 110 | <option value="12">12 <span>Words</span></option> |
104 | <option value="15">15 <span>Words</option> | 111 | <option value="15">15 <span>Words</span></option> |
105 | <option value="18">18 <span>Words</span></option> | 112 | <option value="18">18 <span>Words</span></option> |
106 | <option value="21">21 <span>Words</span></option> | 113 | <option value="21">21 <span>Words</span></option> |
107 | <option value="24">24 <span>Words</span></option> | 114 | <option value="24">24 <span>Words</span></option> |
108 | </select> | 115 | </select> |
116 | <p class="weak-entropy-override-warning hidden"> | ||
117 | <span class="text-danger"> | ||
118 | The mnemonic will appear more secure than it really is. | ||
119 | </span> | ||
120 | </p> | ||
109 | </div> | 121 | </div> |
110 | </div> | 122 | </div> |
111 | <div class="col-sm-3"> | 123 | <div class="col-sm-3"> |
@@ -131,6 +143,15 @@ | |||
131 | </div> | 143 | </div> |
132 | </div> | 144 | </div> |
133 | <div class="form-group"> | 145 | <div class="form-group"> |
146 | <div class="col-sm-2"></div> | ||
147 | <div class="col-sm-10 checkbox"> | ||
148 | <label> | ||
149 | <input type="checkbox" class="privacy-screen-toggle"> | ||
150 | <span>Hide all private info</span> | ||
151 | </label> | ||
152 | </div> | ||
153 | </div> | ||
154 | <div class="form-group"> | ||
134 | <label class="col-sm-2 control-label">Mnemonic Language</label> | 155 | <label class="col-sm-2 control-label">Mnemonic Language</label> |
135 | <div class="col-sm-10 languages"> | 156 | <div class="col-sm-10 languages"> |
136 | <div class="form-control no-border"> | 157 | <div class="form-control no-border"> |
@@ -141,25 +162,26 @@ | |||
141 | <a href="#chinese_traditional" title="Chinese (Traditional)">中文(繁體)</a> | 162 | <a href="#chinese_traditional" title="Chinese (Traditional)">中文(繁體)</a> |
142 | <a href="#french" title="French">Français</a> | 163 | <a href="#french" title="French">Français</a> |
143 | <a href="#italian" title="Italian">Italiano</a> | 164 | <a href="#italian" title="Italian">Italiano</a> |
165 | <a href="#korean" title="Korean">한국어</a> | ||
144 | </div> | 166 | </div> |
145 | </div> | 167 | </div> |
146 | </div> | 168 | </div> |
147 | <div class="form-group"> | 169 | <div class="form-group"> |
148 | <label for="phrase" class="col-sm-2 control-label">BIP39 Mnemonic</label> | 170 | <label for="phrase" class="col-sm-2 control-label">BIP39 Mnemonic</label> |
149 | <div class="col-sm-10"> | 171 | <div class="col-sm-10"> |
150 | <textarea id="phrase" class="phrase form-control" data-show-qr></textarea> | 172 | <textarea id="phrase" class="phrase private-data form-control" data-show-qr></textarea> |
151 | </div> | 173 | </div> |
152 | </div> | 174 | </div> |
153 | <div class="form-group"> | 175 | <div class="form-group"> |
154 | <label for="passphrase" class="col-sm-2 control-label">BIP39 Passphrase (optional)</label> | 176 | <label for="passphrase" class="col-sm-2 control-label">BIP39 Passphrase (optional)</label> |
155 | <div class="col-sm-10"> | 177 | <div class="col-sm-10"> |
156 | <textarea id="passphrase" class="passphrase form-control"></textarea> | 178 | <textarea id="passphrase" class="passphrase private-data form-control"></textarea> |
157 | </div> | 179 | </div> |
158 | </div> | 180 | </div> |
159 | <div class="form-group"> | 181 | <div class="form-group"> |
160 | <label for="seed" class="col-sm-2 control-label">BIP39 Seed</label> | 182 | <label for="seed" class="col-sm-2 control-label">BIP39 Seed</label> |
161 | <div class="col-sm-10"> | 183 | <div class="col-sm-10"> |
162 | <textarea id="seed" class="seed form-control" readonly="readonly" data-show-qr></textarea> | 184 | <textarea id="seed" class="seed private-data form-control" readonly="readonly" data-show-qr></textarea> |
163 | </div> | 185 | </div> |
164 | </div> | 186 | </div> |
165 | <div class="form-group"> | 187 | <div class="form-group"> |
@@ -173,7 +195,7 @@ | |||
173 | <div class="form-group"> | 195 | <div class="form-group"> |
174 | <label for="root-key" class="col-sm-2 control-label">BIP32 Root Key</label> | 196 | <label for="root-key" class="col-sm-2 control-label">BIP32 Root Key</label> |
175 | <div class="col-sm-10"> | 197 | <div class="col-sm-10"> |
176 | <textarea id="root-key" class="root-key form-control" data-show-qr></textarea> | 198 | <textarea id="root-key" class="root-key private-data form-control" data-show-qr></textarea> |
177 | </div> | 199 | </div> |
178 | </div> | 200 | </div> |
179 | <div class="form-group litecoin-ltub-container hidden"> | 201 | <div class="form-group litecoin-ltub-container hidden"> |
@@ -223,35 +245,35 @@ | |||
223 | </p> | 245 | </p> |
224 | </div> | 246 | </div> |
225 | <div class="form-group"> | 247 | <div class="form-group"> |
226 | <label for="purpose" class="col-sm-2 control-label"> | 248 | <label for="purpose-bip44" class="col-sm-2 control-label"> |
227 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target="_blank">Purpose</a> | 249 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target="_blank">Purpose</a> |
228 | </label> | 250 | </label> |
229 | <div class="col-sm-10"> | 251 | <div class="col-sm-10"> |
230 | <input id="purpose" type="text" class="purpose form-control" value="44" readonly> | 252 | <input id="purpose-bip44" type="text" class="purpose form-control" value="44" readonly> |
231 | </div> | 253 | </div> |
232 | </div> | 254 | </div> |
233 | <div class="form-group"> | 255 | <div class="form-group"> |
234 | <label for="coin" class="col-sm-2 control-label"> | 256 | <label for="coin-bip44" class="col-sm-2 control-label"> |
235 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target="_blank">Coin</a> | 257 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target="_blank">Coin</a> |
236 | </label> | 258 | </label> |
237 | <div class="col-sm-10"> | 259 | <div class="col-sm-10"> |
238 | <input id="coin" type="text" class="coin form-control" value="0" readonly> | 260 | <input id="coin-bip44" type="text" class="coin form-control" value="0" readonly> |
239 | </div> | 261 | </div> |
240 | </div> | 262 | </div> |
241 | <div class="form-group"> | 263 | <div class="form-group"> |
242 | <label for="account" class="col-sm-2 control-label"> | 264 | <label for="account-bip44" class="col-sm-2 control-label"> |
243 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target="_blank">Account</a> | 265 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target="_blank">Account</a> |
244 | </label> | 266 | </label> |
245 | <div class="col-sm-10"> | 267 | <div class="col-sm-10"> |
246 | <input id="account" type="text" class="account form-control" value="0"> | 268 | <input id="account-bip44" type="text" class="account form-control" value="0"> |
247 | </div> | 269 | </div> |
248 | </div> | 270 | </div> |
249 | <div class="form-group"> | 271 | <div class="form-group"> |
250 | <label for="change" class="col-sm-2 control-label"> | 272 | <label for="change-bip44" class="col-sm-2 control-label"> |
251 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target="_blank">External / Internal</a> | 273 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target="_blank">External / Internal</a> |
252 | </label> | 274 | </label> |
253 | <div class="col-sm-10"> | 275 | <div class="col-sm-10"> |
254 | <input id="change" type="text" class="change form-control" value="0"> | 276 | <input id="change-bip44" type="text" class="change form-control" value="0"> |
255 | </div> | 277 | </div> |
256 | </div> | 278 | </div> |
257 | <div class="form-group"> | 279 | <div class="form-group"> |
@@ -266,7 +288,7 @@ | |||
266 | <span>Account Extended Private Key</span> | 288 | <span>Account Extended Private Key</span> |
267 | </label> | 289 | </label> |
268 | <div class="col-sm-10"> | 290 | <div class="col-sm-10"> |
269 | <textarea id="account-xprv" type="text" class="account-xprv form-control" readonly data-show-qr></textarea> | 291 | <textarea id="account-xprv-bip44" type="text" class="account-xprv private-data form-control" readonly data-show-qr></textarea> |
270 | </div> | 292 | </div> |
271 | </div> | 293 | </div> |
272 | <div class="form-group"> | 294 | <div class="form-group"> |
@@ -274,7 +296,7 @@ | |||
274 | <span>Account Extended Public Key</span> | 296 | <span>Account Extended Public Key</span> |
275 | </label> | 297 | </label> |
276 | <div class="col-sm-10"> | 298 | <div class="col-sm-10"> |
277 | <textarea id="account-xpub" type="text" class="account-xpub form-control" readonly data-show-qr></textarea> | 299 | <textarea id="account-xpub-bip44" type="text" class="account-xpub form-control" readonly data-show-qr></textarea> |
278 | </div> | 300 | </div> |
279 | </div> | 301 | </div> |
280 | <div class="form-group"> | 302 | <div class="form-group"> |
@@ -383,35 +405,35 @@ | |||
383 | </p> | 405 | </p> |
384 | </div> | 406 | </div> |
385 | <div class="form-group"> | 407 | <div class="form-group"> |
386 | <label for="purpose" class="col-sm-2 control-label"> | 408 | <label for="purpose-bip49" class="col-sm-2 control-label"> |
387 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target="_blank">Purpose</a> | 409 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target="_blank">Purpose</a> |
388 | </label> | 410 | </label> |
389 | <div class="col-sm-10"> | 411 | <div class="col-sm-10"> |
390 | <input id="purpose" type="text" class="purpose form-control" value="49" readonly> | 412 | <input id="purpose-bip49" type="text" class="purpose form-control" value="49" readonly> |
391 | </div> | 413 | </div> |
392 | </div> | 414 | </div> |
393 | <div class="form-group"> | 415 | <div class="form-group"> |
394 | <label for="coin" class="col-sm-2 control-label"> | 416 | <label for="coin-bip49" class="col-sm-2 control-label"> |
395 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target="_blank">Coin</a> | 417 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target="_blank">Coin</a> |
396 | </label> | 418 | </label> |
397 | <div class="col-sm-10"> | 419 | <div class="col-sm-10"> |
398 | <input id="coin" type="text" class="coin form-control" value="0" readonly> | 420 | <input id="coin-bip49" type="text" class="coin form-control" value="0" readonly> |
399 | </div> | 421 | </div> |
400 | </div> | 422 | </div> |
401 | <div class="form-group"> | 423 | <div class="form-group"> |
402 | <label for="account" class="col-sm-2 control-label"> | 424 | <label for="account-bip49" class="col-sm-2 control-label"> |
403 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target="_blank">Account</a> | 425 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target="_blank">Account</a> |
404 | </label> | 426 | </label> |
405 | <div class="col-sm-10"> | 427 | <div class="col-sm-10"> |
406 | <input id="account" type="text" class="account form-control" value="0"> | 428 | <input id="account-bip49" type="text" class="account form-control" value="0"> |
407 | </div> | 429 | </div> |
408 | </div> | 430 | </div> |
409 | <div class="form-group"> | 431 | <div class="form-group"> |
410 | <label for="change" class="col-sm-2 control-label"> | 432 | <label for="change-bip49" class="col-sm-2 control-label"> |
411 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target="_blank">External / Internal</a> | 433 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target="_blank">External / Internal</a> |
412 | </label> | 434 | </label> |
413 | <div class="col-sm-10"> | 435 | <div class="col-sm-10"> |
414 | <input id="change" type="text" class="change form-control" value="0"> | 436 | <input id="change-bip49" type="text" class="change form-control" value="0"> |
415 | </div> | 437 | </div> |
416 | </div> | 438 | </div> |
417 | <div class="form-group"> | 439 | <div class="form-group"> |
@@ -426,7 +448,7 @@ | |||
426 | <span>Account Extended Private Key</span> | 448 | <span>Account Extended Private Key</span> |
427 | </label> | 449 | </label> |
428 | <div class="col-sm-10"> | 450 | <div class="col-sm-10"> |
429 | <textarea id="account-xprv" type="text" class="account-xprv form-control" readonly data-show-qr></textarea> | 451 | <textarea id="account-xprv-bip49" type="text" class="account-xprv private-data form-control" readonly data-show-qr></textarea> |
430 | </div> | 452 | </div> |
431 | </div> | 453 | </div> |
432 | <div class="form-group"> | 454 | <div class="form-group"> |
@@ -434,7 +456,7 @@ | |||
434 | <span>Account Extended Public Key</span> | 456 | <span>Account Extended Public Key</span> |
435 | </label> | 457 | </label> |
436 | <div class="col-sm-10"> | 458 | <div class="col-sm-10"> |
437 | <textarea id="account-xpub" type="text" class="account-xpub form-control" readonly data-show-qr></textarea> | 459 | <textarea id="account-xpub-bip49" type="text" class="account-xpub form-control" readonly data-show-qr></textarea> |
438 | </div> | 460 | </div> |
439 | </div> | 461 | </div> |
440 | <div class="form-group"> | 462 | <div class="form-group"> |
@@ -493,79 +515,89 @@ | |||
493 | <div id="bip84" class="tab-pane"> | 515 | <div id="bip84" class="tab-pane"> |
494 | <form class="form-horizontal" role="form"> | 516 | <form class="form-horizontal" role="form"> |
495 | <br> | 517 | <br> |
496 | <div class="col-sm-2"></div> | 518 | <div class="unavailable hidden"> |
497 | <div class="col-sm-10"> | 519 | <div class="form-group"> |
498 | <p> | 520 | <div class="col-sm-2"></div> |
499 | For more info see the | 521 | <div class="col-sm-10"> |
500 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0084.mediawiki" target="_blank">BIP84 spec</a>. | 522 | <p>BIP84 is unavailable for this coin.</p> |
501 | </p> | 523 | </div> |
502 | </div> | ||
503 | <div class="form-group"> | ||
504 | <label for="purpose" class="col-sm-2 control-label"> | ||
505 | Purpose | ||
506 | </label> | ||
507 | <div class="col-sm-10"> | ||
508 | <input id="purpose" type="text" class="purpose form-control" value="84" readonly> | ||
509 | </div> | 524 | </div> |
510 | </div> | 525 | </div> |
511 | <div class="form-group"> | 526 | <div class="available"> |
512 | <label for="coin" class="col-sm-2 control-label"> | 527 | <div class="col-sm-2"></div> |
513 | Coin | ||
514 | </label> | ||
515 | <div class="col-sm-10"> | 528 | <div class="col-sm-10"> |
516 | <input id="coin" type="text" class="coin form-control" value="0" readonly> | 529 | <p> |
530 | For more info see the | ||
531 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0084.mediawiki" target="_blank">BIP84 spec</a>. | ||
532 | </p> | ||
517 | </div> | 533 | </div> |
518 | </div> | 534 | <div class="form-group"> |
519 | <div class="form-group"> | 535 | <label for="purpose-bip84" class="col-sm-2 control-label"> |
520 | <label for="account" class="col-sm-2 control-label"> | 536 | Purpose |
521 | Account | 537 | </label> |
522 | </label> | 538 | <div class="col-sm-10"> |
523 | <div class="col-sm-10"> | 539 | <input id="purpose-bip84" type="text" class="purpose form-control" value="84" readonly> |
524 | <input id="account" type="text" class="account form-control" value="0"> | 540 | </div> |
525 | </div> | 541 | </div> |
526 | </div> | 542 | <div class="form-group"> |
527 | <div class="form-group"> | 543 | <label for="coin-bip84" class="col-sm-2 control-label"> |
528 | <label for="change" class="col-sm-2 control-label"> | 544 | Coin |
529 | External / Internal | 545 | </label> |
530 | </label> | 546 | <div class="col-sm-10"> |
531 | <div class="col-sm-10"> | 547 | <input id="coin-bip84" type="text" class="coin form-control" value="0" readonly> |
532 | <input id="change" type="text" class="change form-control" value="0"> | 548 | </div> |
533 | </div> | 549 | </div> |
534 | </div> | 550 | <div class="form-group"> |
535 | <div class="form-group"> | 551 | <label for="account-bip84" class="col-sm-2 control-label"> |
536 | <label class="col-sm-2 control-label"> | 552 | Account |
537 | </label> | 553 | </label> |
538 | <div class="col-sm-10"> | 554 | <div class="col-sm-10"> |
539 | <p>The account extended keys can be used for importing to most BIP84 compatible wallets.</p> | 555 | <input id="account-bip84" type="text" class="account form-control" value="0"> |
556 | </div> | ||
540 | </div> | 557 | </div> |
541 | </div> | 558 | <div class="form-group"> |
542 | <div class="form-group"> | 559 | <label for="change-bip84" class="col-sm-2 control-label"> |
543 | <label for="account-xprv" class="col-sm-2 control-label"> | 560 | External / Internal |
544 | <span>Account Extended Private Key</span> | 561 | </label> |
545 | </label> | 562 | <div class="col-sm-10"> |
546 | <div class="col-sm-10"> | 563 | <input id="change-bip84" type="text" class="change form-control" value="0"> |
547 | <textarea id="account-xprv" type="text" class="account-xprv form-control" readonly data-show-qr></textarea> | 564 | </div> |
548 | </div> | 565 | </div> |
549 | </div> | 566 | <div class="form-group"> |
550 | <div class="form-group"> | 567 | <label class="col-sm-2 control-label"> |
551 | <label for="account-xpub" class="col-sm-2 control-label"> | 568 | </label> |
552 | <span>Account Extended Public Key</span> | 569 | <div class="col-sm-10"> |
553 | </label> | 570 | <p>The account extended keys can be used for importing to most BIP84 compatible wallets.</p> |
554 | <div class="col-sm-10"> | 571 | </div> |
555 | <textarea id="account-xpub" type="text" class="account-xpub form-control" readonly data-show-qr></textarea> | ||
556 | </div> | 572 | </div> |
557 | </div> | 573 | <div class="form-group"> |
558 | <div class="form-group"> | 574 | <label for="account-xprv" class="col-sm-2 control-label"> |
559 | <label class="col-sm-2 control-label"> | 575 | <span>Account Extended Private Key</span> |
560 | </label> | 576 | </label> |
561 | <div class="col-sm-10"> | 577 | <div class="col-sm-10"> |
562 | <p>The BIP32 derivation path and extended keys are the basis for the derived addresses.</p> | 578 | <textarea id="account-xprv-bip84" type="text" class="account-xprv private-data form-control" readonly data-show-qr></textarea> |
579 | </div> | ||
563 | </div> | 580 | </div> |
564 | </div> | 581 | <div class="form-group"> |
565 | <div class="form-group"> | 582 | <label for="account-xpub" class="col-sm-2 control-label"> |
566 | <label for="bip84-path" class="col-sm-2 control-label">BIP32 Derivation Path</label> | 583 | <span>Account Extended Public Key</span> |
567 | <div class="col-sm-10"> | 584 | </label> |
568 | <input id="bip84-path" type="text" class="path form-control" value="m/84'/0'/0'/0" readonly="readonly"> | 585 | <div class="col-sm-10"> |
586 | <textarea id="account-xpub-bip84" type="text" class="account-xpub form-control" readonly data-show-qr></textarea> | ||
587 | </div> | ||
588 | </div> | ||
589 | <div class="form-group"> | ||
590 | <label class="col-sm-2 control-label"> | ||
591 | </label> | ||
592 | <div class="col-sm-10"> | ||
593 | <p>The BIP32 derivation path and extended keys are the basis for the derived addresses.</p> | ||
594 | </div> | ||
595 | </div> | ||
596 | <div class="form-group"> | ||
597 | <label for="bip84-path" class="col-sm-2 control-label">BIP32 Derivation Path</label> | ||
598 | <div class="col-sm-10"> | ||
599 | <input id="bip84-path" type="text" class="path form-control" value="m/84'/0'/0'/0" readonly="readonly"> | ||
600 | </div> | ||
569 | </div> | 601 | </div> |
570 | </div> | 602 | </div> |
571 | </form> | 603 | </form> |
@@ -575,7 +607,7 @@ | |||
575 | <div class="form-group"> | 607 | <div class="form-group"> |
576 | <label for="extended-priv-key" class="col-sm-2 control-label">BIP32 Extended Private Key</label> | 608 | <label for="extended-priv-key" class="col-sm-2 control-label">BIP32 Extended Private Key</label> |
577 | <div class="col-sm-10"> | 609 | <div class="col-sm-10"> |
578 | <textarea id="extended-priv-key" class="extended-priv-key form-control" readonly="readonly" data-show-qr></textarea> | 610 | <textarea id="extended-priv-key" class="extended-priv-key private-data form-control" readonly="readonly" data-show-qr></textarea> |
579 | </div> | 611 | </div> |
580 | </div> | 612 | </div> |
581 | <div class="form-group"> | 613 | <div class="form-group"> |
@@ -595,13 +627,35 @@ | |||
595 | <h2>Derived Addresses</h2> | 627 | <h2>Derived Addresses</h2> |
596 | <p>Note these addresses are derived from the BIP32 Extended Key</p> | 628 | <p>Note these addresses are derived from the BIP32 Extended Key</p> |
597 | </div> | 629 | </div> |
598 | <div class="col-md-12 use-bitpay-addresses-container hidden"> | 630 | <div class="col-md-12 bch-addr-type-container hidden"> |
599 | <div class="checkbox"> | 631 | <div class="radio"> |
632 | <label> | ||
633 | <input type="radio" value="cashaddr" name="bch-addr-type" class="use-bch-cashaddr-addresses" checked="checked"> | ||
634 | <span>Use CashAddr addresses for Bitcoin Cash (ie starting with 'q' instead of '1')</span> | ||
635 | </label> | ||
636 | </div> | ||
637 | <div class="radio"> | ||
600 | <label> | 638 | <label> |
601 | <input type="checkbox" class="use-bitpay-addresses"> | 639 | <input type="radio" value="bitpay" name="bch-addr-type" class="use-bch-bitpay-addresses"> |
602 | <span>Use BitPay-style addresses for Bitcoin Cash (ie starting with 'C' instead of '1')</span> | 640 | <span>Use BitPay-style addresses for Bitcoin Cash (ie starting with 'C' instead of '1')</span> |
603 | </label> | 641 | </label> |
604 | </div> | 642 | </div> |
643 | <div class="radio"> | ||
644 | <label> | ||
645 | <input type="radio" value="legacy" name="bch-addr-type" class="use-bch-legacy-addresses"> | ||
646 | <span>Use legacy addresses for Bitcoin Cash (ie starting with '1')</span> | ||
647 | </label> | ||
648 | </div> | ||
649 | </div> | ||
650 | <div class="col-md-12"> | ||
651 | <div class="checkbox"> | ||
652 | <label> | ||
653 | <input type="checkbox" class="use-bip38"> | ||
654 | <span>Encrypt private keys using BIP38 and this password:</span> | ||
655 | </label> | ||
656 | <input class="bip38-password private-data"> | ||
657 | <span>Enabling BIP38 means each key will take several minutes to generate.</span> | ||
658 | </div> | ||
605 | </div> | 659 | </div> |
606 | <ul class="addresses-type nav nav-tabs" role="tablist"> | 660 | <ul class="addresses-type nav nav-tabs" role="tablist"> |
607 | <li id="table-tab" class="active"> | 661 | <li id="table-tab" class="active"> |
@@ -704,6 +758,9 @@ | |||
704 | </p> | 758 | </p> |
705 | <h3 id="entropy-notes">Entropy</h3> | 759 | <h3 id="entropy-notes">Entropy</h3> |
706 | <p> | 760 | <p> |
761 | <span>Entropy values should not include the BIP39 checksum. This is automatically added by the tool.</span> | ||
762 | </p> | ||
763 | <p> | ||
707 | <span> | 764 | <span> |
708 | Entropy values must be sourced from a | 765 | Entropy values must be sourced from a |
709 | <a href="https://en.wikipedia.org/wiki/Random_number_generation" target="_blank">strong source of randomness</a>. | 766 | <a href="https://en.wikipedia.org/wiki/Random_number_generation" target="_blank">strong source of randomness</a>. |
@@ -861,7 +918,7 @@ | |||
861 | <td class="index"><span></span></td> | 918 | <td class="index"><span></span></td> |
862 | <td class="address"><span data-show-qr></span></td> | 919 | <td class="address"><span data-show-qr></span></td> |
863 | <td class="pubkey"><span data-show-qr></span></td> | 920 | <td class="pubkey"><span data-show-qr></span></td> |
864 | <td class="privkey"><span data-show-qr></span></td> | 921 | <td class="privkey private-data"><span data-show-qr></span></td> |
865 | </tr> | 922 | </tr> |
866 | </script> | 923 | </script> |
867 | <script src="js/polyfill.es6.js"></script> | 924 | <script src="js/polyfill.es6.js"></script> |
@@ -871,11 +928,13 @@ | |||
871 | <script src="js/bootstrap-3.3.7.js"></script> | 928 | <script src="js/bootstrap-3.3.7.js"></script> |
872 | <script src="js/levenshtein.js"></script> | 929 | <script src="js/levenshtein.js"></script> |
873 | <script src="js/kjua-0.1.1.min.js"></script> | 930 | <script src="js/kjua-0.1.1.min.js"></script> |
874 | <script src="js/bitcoinjs-3.3.0.js"></script> | 931 | <script src="js/bitcoinjs-3.3.2.js"></script> |
875 | <script src="js/bitcoinjs-extensions.js"></script> | 932 | <script src="js/bitcoinjs-extensions.js"></script> |
933 | <script src="js/bitcoinjs-bip38-2.0.2.js"></script> | ||
876 | <script src="js/segwit-parameters.js"></script> | 934 | <script src="js/segwit-parameters.js"></script> |
877 | <script src="js/ethereumjs-util.js"></script> | 935 | <script src="js/ethereumjs-util.js"></script> |
878 | <script src="js/ripple-util.js"></script> | 936 | <script src="js/ripple-util.js"></script> |
937 | <script src="js/bchaddrjs-0.2.1.js"></script> | ||
879 | <script src="js/sjcl-bip39.js"></script> | 938 | <script src="js/sjcl-bip39.js"></script> |
880 | <script src="js/wordlist_english.js"></script> | 939 | <script src="js/wordlist_english.js"></script> |
881 | <script src="js/wordlist_japanese.js"></script> | 940 | <script src="js/wordlist_japanese.js"></script> |
@@ -884,6 +943,7 @@ | |||
884 | <script src="js/wordlist_chinese_traditional.js"></script> | 943 | <script src="js/wordlist_chinese_traditional.js"></script> |
885 | <script src="js/wordlist_french.js"></script> | 944 | <script src="js/wordlist_french.js"></script> |
886 | <script src="js/wordlist_italian.js"></script> | 945 | <script src="js/wordlist_italian.js"></script> |
946 | <script src="js/wordlist_korean.js"></script> | ||
887 | <script src="js/jsbip39.js"></script> | 947 | <script src="js/jsbip39.js"></script> |
888 | <script src="js/biginteger.js"></script> | 948 | <script src="js/biginteger.js"></script> |
889 | <script src="js/zxcvbn.js"></script> | 949 | <script src="js/zxcvbn.js"></script> |