]>
Commit | Line | Data |
---|---|---|
ebd8d4e8 IC |
1 | <!DOCTYPE html> |
2 | <html> | |
3 | <head lang="en"> | |
4 | <meta charset="utf-8" /> | |
5 | <title>BIP39 - Mnemonic Code</title> | |
cee442b1 | 6 | <link rel="stylesheet" href="css/bootstrap.min.css"> |
ebd8d4e8 IC |
7 | <meta content="Mnemonic code for generating deterministic keys" name="description"/> |
8 | <meta content="width=device-width, initial-scale=1.0" name="viewport" /> | |
9 | <meta content="bitcoin mnemonic converter" name="description" /> | |
b630f83d | 10 | <meta content="Ian Coleman" name="author" /> |
ebd8d4e8 IC |
11 | |
12 | <style> | |
f52dcdbd IC |
13 | body { |
14 | padding-bottom: 32px; | |
15 | } | |
d198865f IC |
16 | .form-control[readonly] { |
17 | cursor: text; | |
dd566a1e | 18 | } |
ebd8d4e8 IC |
19 | .feedback-container { |
20 | position: fixed; | |
21 | top: 0; | |
22 | width: 100%; | |
23 | text-align: center; | |
24 | z-index: 4; | |
25 | } | |
26 | .feedback { | |
27 | display: table; | |
28 | padding: 0.5em 1em; | |
29 | background-color: orange; | |
30 | margin: 0 auto; | |
31 | font-size: 2em; | |
32 | color: #444; | |
33 | border: 2px solid #555; | |
34 | border-top: 0; | |
35 | border-bottom-left-radius: 20px 20px; | |
36 | border-bottom-right-radius: 20px 20px; | |
37 | } | |
55a9e51a IC |
38 | .no-border { |
39 | border: 0; | |
40 | box-shadow: inset 0 1px 1px rgba(0,0,0,.0); | |
41 | -webkit-box-shadow: inset 0 1px 1px rgba(0,0,0,.0); | |
42 | } | |
5ee7bb9e IC |
43 | .phrase { |
44 | word-break: keep-all; | |
45 | } | |
b0818b31 IC |
46 | .strength { |
47 | /* override mobile width from bootstrap */ | |
48 | width: auto!important; | |
49 | display: inline-block; | |
50 | } | |
39836616 | 51 | .languages * { |
7c31e3cd IC |
52 | padding-left: 10px; |
53 | } | |
d737abf6 IC |
54 | .monospace { |
55 | font-family: monospace; | |
56 | } | |
ebd8d4e8 IC |
57 | </style> |
58 | </head> | |
59 | <body> | |
60 | <div class="container"> | |
61 | ||
62 | <h1 class="text-center">Mnemonic Code Converter</h1> | |
63 | <hr> | |
64 | <div class="row"> | |
65 | <div class="col-md-12"> | |
d4779799 | 66 | <h2>Mnemonic</h2> |
ebd8d4e8 IC |
67 | <form class="form-horizontal" role="form"> |
68 | <div class="col-sm-2"></div> | |
69 | <div class="col-sm-10"> | |
d4779799 | 70 | <p>You can enter an existing BIP39 mnemonic, or generate a new random one. Typing your own twelve words will probably not work how you expect, since the words require a particular structure (the last word is a checksum)</p> |
ebd8d4e8 IC |
71 | <p>For more info see the <a href="https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki" target="_blank">BIP39 spec</a></p> |
72 | </div> | |
73 | <div class="form-group"> | |
b0818b31 | 74 | <label class="col-sm-2 control-label"></label> |
ebd8d4e8 | 75 | <div class="col-sm-10"> |
b0818b31 IC |
76 | <div class="form-inline"> |
77 | <div class="input-group-inline"> | |
78 | <button class="btn generate">Generate</button> | |
79 | <span>a random</span> | |
80 | <select id="strength" class="strength form-control"> | |
81 | <option value="3">3</option> | |
82 | <option value="6">6</option> | |
83 | <option value="9">9</option> | |
84 | <option value="12">12</option> | |
85 | <option value="15" selected>15</option> | |
86 | <option value="18">18</option> | |
87 | <option value="21">21</option> | |
88 | <option value="24">24</option> | |
89 | </select> | |
90 | word mnemonic, or enter your own below. | |
91 | </div> | |
92 | </div> | |
ebd8d4e8 | 93 | </div> |
7c31e3cd IC |
94 | </div> |
95 | <div class="form-group"> | |
96 | <label class="col-sm-2 control-label"></label> | |
97 | <div class="col-sm-10 languages"> | |
98 | <a href="#english">English</a> | |
99 | <a href="#japanese" title="Japanese">日本語</a> | |
100 | <a href="#spanish" title="Spanish">Español</a> | |
101 | <a href="#chinese_simplified" title="Chinese (Simplified)">中文(简体)</a> | |
102 | <a href="#chinese_traditional" title="Chinese (Traditional)">中文(繁體)</a> | |
103 | <a href="#french" title="French">Français</a> | |
104 | <a href="#italian" title="Italian">Italiano</a> | |
105 | </div> | |
ebd8d4e8 IC |
106 | </div> |
107 | <div class="form-group"> | |
b0818b31 | 108 | <label for="phrase" class="col-sm-2 control-label">BIP39 Mnemonic</label> |
ebd8d4e8 | 109 | <div class="col-sm-10"> |
b0818b31 | 110 | <textarea id="phrase" class="phrase form-control"></textarea> |
ebd8d4e8 IC |
111 | </div> |
112 | </div> | |
1abcc511 PR |
113 | <div class="form-group"> |
114 | <label for="passphrase" class="col-sm-2 control-label">BIP39 Passphrase (optional)</label> | |
115 | <div class="col-sm-10"> | |
116 | <textarea id="passphrase" class="passphrase form-control"></textarea> | |
117 | </div> | |
118 | </div> | |
3e0ed16a KK |
119 | <div class="form-group"> |
120 | <label for="seed" class="col-sm-2 control-label">BIP39 Seed</label> | |
121 | <div class="col-sm-10"> | |
122 | <textarea id="seed" class="seed form-control" readonly="readonly"></textarea> | |
123 | </div> | |
124 | </div> | |
4d457a38 IC |
125 | <div class="form-group"> |
126 | <label for="network-phrase" class="col-sm-2 control-label">Coin</label> | |
127 | <div class="col-sm-10"> | |
128 | <select id="network-phrase" class="network form-control"> | |
7f15cb6e | 129 | <!-- populated by javascript --> |
4d457a38 IC |
130 | </select> |
131 | </div> | |
132 | </div> | |
ebd8d4e8 IC |
133 | <div class="form-group"> |
134 | <label for="root-key" class="col-sm-2 control-label">BIP32 Root Key</label> | |
135 | <div class="col-sm-10"> | |
efe41586 | 136 | <textarea id="root-key" class="root-key form-control"></textarea> |
ebd8d4e8 IC |
137 | </div> |
138 | </div> | |
139 | </form> | |
140 | </div> | |
141 | </div> | |
142 | ||
143 | <hr> | |
144 | ||
145 | <div class="row"> | |
146 | <div class="col-md-12"> | |
147 | <h2>Derivation Path</h2> | |
148 | <ul class="derivation-type nav nav-tabs" role="tablist"> | |
55a9e51a | 149 | <li id="bip44-tab" class="active"> |
23d4a0f1 IC |
150 | <a href="#bip44" role="tab" data-toggle="tab">BIP44</a> |
151 | </li> | |
3b40653f | 152 | <li id="bip32-tab"> |
23d4a0f1 IC |
153 | <a href="#bip32" role="tab" data-toggle="tab">BIP32</a> |
154 | </li> | |
ebd8d4e8 IC |
155 | </ul> |
156 | <div class="derivation-type tab-content"> | |
55a9e51a | 157 | <div id="bip44" class="tab-pane active"> |
ebd8d4e8 IC |
158 | <form class="form-horizontal" role="form"> |
159 | <br> | |
160 | <div class="col-sm-2"></div> | |
161 | <div class="col-sm-10"> | |
162 | <p>For more info see the <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target="_blank">BIP44 spec</a></p> | |
163 | </div> | |
164 | <div class="form-group"> | |
165 | <label for="purpose" class="col-sm-2 control-label"> | |
166 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target="_blank">Purpose</a> | |
167 | </label> | |
168 | <div class="col-sm-10"> | |
169 | <input id="purpose" type="text" class="purpose form-control" value="44"> | |
170 | </div> | |
171 | </div> | |
172 | <div class="form-group"> | |
173 | <label for="coin" class="col-sm-2 control-label"> | |
174 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target="_blank">Coin</a> | |
175 | </label> | |
176 | <div class="col-sm-10"> | |
177 | <input id="coin" type="text" class="coin form-control" value="0"> | |
178 | </div> | |
179 | </div> | |
180 | <div class="form-group"> | |
181 | <label for="account" class="col-sm-2 control-label"> | |
182 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target="_blank">Account</a> | |
183 | </label> | |
184 | <div class="col-sm-10"> | |
185 | <input id="account" type="text" class="account form-control" value="0"> | |
186 | </div> | |
187 | </div> | |
188 | <div class="form-group"> | |
189 | <label for="change" class="col-sm-2 control-label"> | |
190 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target="_blank">External / Internal</a> | |
191 | </label> | |
192 | <div class="col-sm-10"> | |
193 | <input id="change" type="text" class="change form-control" value="0"> | |
194 | </div> | |
195 | </div> | |
196 | <div class="form-group"> | |
197 | <label for="bip44-path" class="col-sm-2 control-label">BIP32 Derivation Path</label> | |
198 | <div class="col-sm-10"> | |
d198865f | 199 | <input id="bip44-path" type="text" class="path form-control" value="m/44'/0'/0'/0" readonly="readonly"> |
ebd8d4e8 IC |
200 | </div> |
201 | </div> | |
202 | </form> | |
203 | </div> | |
204 | <div id="bip32" class="tab-pane"> | |
205 | <form class="form-horizontal" role="form"> | |
206 | <br> | |
207 | <div class="col-sm-2"></div> | |
208 | <div class="col-sm-10"> | |
209 | <p>For more info see the <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target="_blank">BIP32 spec</a></p> | |
210 | </div> | |
211 | <div class="form-group"> | |
212 | <label for="bip32-path" class="col-sm-2 control-label">BIP32 Derivation Path</label> | |
213 | <div class="col-sm-10"> | |
214 | <input id="bip32-path" type="text" class="path form-control" value="m/0"> | |
215 | </div> | |
216 | </div> | |
146e089e IC |
217 | <div class="form-group"> |
218 | <div class="col-sm-2"></div> | |
219 | <label class="col-sm-10"> | |
220 | <input class="hardened-addresses" type="checkbox"> | |
221 | Use hardened addresses | |
222 | </label> | |
223 | </div> | |
55a9e51a IC |
224 | <div class="form-group"> |
225 | <label class="col-sm-2 control-label">Hive Wallet</label> | |
226 | <div class="col-sm-10"> | |
227 | <p class="form-control no-border"> | |
228 | Use path <code>m/0'/0</code>. | |
229 | For more info see the <a href="https://www.hivewallet.com/" target="_blank">Hive Wallet homepage</a> | |
230 | </p> | |
231 | </div> | |
232 | </div> | |
233 | <div class="form-group"> | |
234 | <label for="mycelium-path" class="col-sm-2 control-label">Mycelium Wallet</label> | |
235 | <div class="col-sm-10"> | |
236 | <p class="form-control no-border"> | |
237 | Use path <code>m/44'/0'/0'/0</code>. | |
238 | For more info see the <a href="http://www.mycelium.com/" target="_blank">Mycelium Wallet homepage</a> | |
239 | </p> | |
240 | </div> | |
241 | </div> | |
8786746b IC |
242 | <div class="form-group"> |
243 | <label for="core-path" class="col-sm-2 control-label">Bitcoin Core</label> | |
244 | <div class="col-sm-10"> | |
245 | <p class="form-control no-border"> | |
246 | Use path <code>m/0'/0'</code> with hardened addresses. | |
247 | For more info see the <a href="https://github.com/bitcoin/bitcoin/pull/8035" target="_blank">Bitcoin Core BIP32 implementation</a> | |
248 | </p> | |
249 | </div> | |
250 | </div> | |
aa51da11 IC |
251 | <div class="form-group"> |
252 | <label class="col-sm-2 control-label">Block Explorers</label> | |
253 | <div class="col-sm-10"> | |
254 | <p class="form-control no-border"> | |
255 | Use path <code>m/44'/0'/0'</code>. | |
256 | Only enter the <code>xpub</code> extended key into block explorer search fields, never the <code>xpriv</code> key. | |
257 | </p> | |
258 | </div> | |
259 | </div> | |
ebd8d4e8 IC |
260 | </form> |
261 | </div> | |
262 | </div> | |
263 | <form class="form-horizontal" role="form"> | |
264 | <div class="form-group"> | |
265 | <label for="extended-priv-key" class="col-sm-2 control-label">BIP32 Extended Key</label> | |
266 | <div class="col-sm-10"> | |
d198865f | 267 | <textarea id="extended-priv-key" class="extended-priv-key form-control" readonly="readonly"></textarea> |
ebd8d4e8 IC |
268 | </div> |
269 | </div> | |
270 | <div class="form-group"> | |
271 | <label for="extended-pub-key" class="col-sm-2 control-label">BIP32 Extended Key (addresses only)</label> | |
272 | <div class="col-sm-10"> | |
d198865f | 273 | <textarea id="extended-pub-key" class="extended-pub-key form-control" readonly="readonly"></textarea> |
ebd8d4e8 IC |
274 | </div> |
275 | </div> | |
276 | </form> | |
277 | </div> | |
278 | </div> | |
279 | ||
280 | <hr> | |
281 | ||
282 | <div class="row"> | |
283 | <div class="col-md-12"> | |
284 | <h2>Derived Addresses</h2> | |
285 | <p>Note these addreses are derived from the <strong>BIP32 Extended Key</strong></p> | |
286 | <table class="table table-striped"> | |
287 | <thead> | |
288 | <th> | |
289 | <div class="input-group"> | |
ae30fed8 | 290 | Path |
ebd8d4e8 IC |
291 | <button class="index-toggle">Toggle</button> |
292 | </div> | |
293 | </th> | |
294 | <th> | |
295 | <div class="input-group"> | |
296 | Address | |
297 | <button class="address-toggle">Toggle</button> | |
298 | </div> | |
299 | </th> | |
1b12b2f5 IC |
300 | <th> |
301 | <div class="input-group"> | |
302 | Public Key | |
303 | <button class="public-key-toggle">Toggle</button> | |
304 | </div> | |
305 | </th> | |
ebd8d4e8 IC |
306 | <th> |
307 | <div class="input-group"> | |
308 | Private Key | |
309 | <button class="private-key-toggle">Toggle</button> | |
310 | </div> | |
311 | </th> | |
312 | </thead> | |
d737abf6 | 313 | <tbody class="addresses monospace"> |
ebd8d4e8 IC |
314 | <tr><td> </td><td> </td><td> </td></tr> |
315 | <tr><td> </td><td> </td><td> </td></tr> | |
316 | <tr><td> </td><td> </td><td> </td></tr> | |
317 | <tr><td> </td><td> </td><td> </td></tr> | |
318 | <tr><td> </td><td> </td><td> </td></tr> | |
319 | </tbody> | |
320 | </table> | |
321 | </div> | |
322 | </div> | |
323 | <span>Show next </button> | |
324 | <input type="number" class="rows-to-add" value="20"> | |
325 | <button class="more">Show</button> | |
326 | ||
327 | <hr> | |
328 | ||
329 | <div class="row"> | |
330 | <div class="col-md-12"> | |
331 | <h2>More info</h2> | |
332 | <h3>BIP39 <span class="small">Mnemonic code for generating deterministic keys</span></h3> | |
333 | <p> | |
334 | Read more at the | |
335 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki">official BIP39 spec</a> | |
336 | </p> | |
337 | <h3>BIP32 <span class="small">Hierarchical Deterministic Wallets</span></h3> | |
338 | <p> | |
339 | Read more at the | |
340 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target="_blank">official BIP32 spec</a> | |
341 | and see the demo at | |
342 | <a href="http://bip32.org/" target="_blank">bip32.org</a> | |
343 | </p> | |
344 | <h3>BIP44 <span class="small">Multi-Account Hierarchy for Deterministic Wallets</span></h3> | |
345 | <p> | |
346 | Read more at the | |
347 | <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target="_blank">official BIP44 spec</a> | |
348 | </p> | |
349 | <h3>Private Keys</h3> | |
350 | <p> | |
351 | Use private keys at | |
c90c680e | 352 | <a href="https://web.archive.org/web/20150707020924/https://brainwallet.org/" target="_blank">brainwallet.org</a>, |
ebd8d4e8 IC |
353 | but be careful - it can be easy to make mistakes if you |
354 | don't know what you're doing | |
355 | </p> | |
356 | </div> | |
357 | </div> | |
45b8a745 IC |
358 | |
359 | <hr> | |
360 | ||
c5863485 IC |
361 | <div class="row"> |
362 | <div class="col-md-12"> | |
363 | ||
364 | <h2>Offline Usage</h2> | |
365 | ||
366 | <p> | |
367 | You can use this tool without having to be online. | |
368 | </p> | |
369 | <p> | |
370 | In your browser, select file save-as, and save this page | |
371 | as a file. | |
372 | </p> | |
373 | <p> | |
374 | Double-click that file to open it in a browser | |
375 | on any offline computer. | |
376 | </p> | |
377 | <p> | |
378 | Alternatively, download it from | |
b630f83d IC |
379 | <a href="https://github.com/iancoleman/bip39"> |
380 | https://github.com/iancoleman/bip39 | |
c5863485 IC |
381 | </a> |
382 | ||
383 | </div> | |
384 | </div> | |
385 | ||
386 | <hr> | |
387 | ||
45b8a745 IC |
388 | <div class="row"> |
389 | <div class="col-md-12"> | |
390 | ||
391 | <h2>This project is 100% open-source code</h2> | |
392 | ||
393 | <p> | |
394 | <span>Get the source code at - </span> | |
b630f83d IC |
395 | <a href="https://github.com/iancoleman/bip39" target="_blank"> |
396 | https://github.com/iancoleman/bip39 | |
45b8a745 IC |
397 | </a> |
398 | </p> | |
399 | ||
400 | <h3>Libraries</h3> | |
401 | ||
402 | <p> | |
403 | <span>BitcoinJS - </span> | |
404 | <a href="https://github.com/bitcoinjs/bitcoinjs-lib" target="_blank"> | |
405 | https://github.com/bitcoinjs/bitcoinjs-lib | |
406 | </a> | |
407 | </p> | |
408 | ||
409 | <p> | |
410 | <span>jsBIP39 - </span> | |
411 | <a href="https://github.com/iancoleman/jsbip39" target="_blank"> | |
412 | https://github.com/iancoleman/jsbip39 | |
413 | </a> | |
414 | </p> | |
415 | ||
416 | <p> | |
0937f3ab IC |
417 | <span>sjcl - </span> |
418 | <a href="https://github.com/bitwiseshiftleft/sjcl" target="_blank"> | |
419 | https://github.com/bitwiseshiftleft/sjcl | |
45b8a745 IC |
420 | </a> |
421 | </p> | |
422 | ||
423 | <p> | |
424 | <span>jQuery - </span> | |
425 | <a href="https://jquery.com/" target="_blank"> | |
426 | https://jquery.com/ | |
427 | </a> | |
428 | </p> | |
429 | ||
430 | <p> | |
431 | <span>Twitter Bootstrap - </span> | |
432 | <a href="http://getbootstrap.com/" target="_blank"> | |
433 | http://getbootstrap.com/ | |
434 | </a> | |
435 | </p> | |
436 | ||
437 | </div> | |
438 | </div> | |
439 | ||
ebd8d4e8 IC |
440 | </div> |
441 | ||
442 | <div class="feedback-container"> | |
d26cce22 | 443 | <div class="feedback">Loading...</div> |
ebd8d4e8 IC |
444 | </div> |
445 | ||
446 | <script type="text/template" id="address-row-template"> | |
447 | <tr> | |
448 | <td class="index"><span></span></td> | |
449 | <td class="address"><span></span></td> | |
1b12b2f5 | 450 | <td class="pubkey"><span></span></td> |
ebd8d4e8 IC |
451 | <td class="privkey"><span></span></td> |
452 | </tr> | |
453 | </script> | |
cee442b1 KK |
454 | <script src="js/jquery.min.js"></script> |
455 | <script src="js/bootstrap.min.js"></script> | |
563e401a | 456 | <script src="js/levenshtein.js"></script> |
cee442b1 KK |
457 | <script src="js/bitcoinjs-1-5-7.js"></script> |
458 | <script src="js/bitcoinjs-extensions.js"></script> | |
459 | <script src="js/sjcl-bip39.js"></script> | |
460 | <script src="js/wordlist_english.js"></script> | |
3a8dbe99 IC |
461 | <script src="js/wordlist_japanese.js"></script> |
462 | <script src="js/wordlist_spanish.js"></script> | |
463 | <script src="js/wordlist_chinese_simplified.js"></script> | |
464 | <script src="js/wordlist_chinese_traditional.js"></script> | |
465 | <script src="js/wordlist_french.js"></script> | |
466 | <script src="js/wordlist_italian.js"></script> | |
cee442b1 KK |
467 | <script src="js/jsbip39.js"></script> |
468 | <script src="js/index.js"></script> | |
ebd8d4e8 IC |
469 | </body> |
470 | </html> |