]> git.immae.eu Git - perso/Immae/Projets/Cryptomonnaies/BIP39.git/blame - src/index.html
Add Sugarchain support
[perso/Immae/Projets/Cryptomonnaies/BIP39.git] / src / index.html
CommitLineData
ebd8d4e8
IC
1<!DOCTYPE html>
2<html>
3 <head lang="en">
4 <meta charset="utf-8" />
5 <title>BIP39 - Mnemonic Code</title>
9a54f27e 6 <link rel="stylesheet" href="css/bootstrap-3.3.7.css">
f2de7aa7 7 <link rel="stylesheet" href="css/app.css">
ebd8d4e8
IC
8 <meta content="Mnemonic code for generating deterministic keys" name="description"/>
9 <meta content="width=device-width, initial-scale=1.0" name="viewport" />
10 <meta content="bitcoin mnemonic converter" name="description" />
b630f83d 11 <meta content="Ian Coleman" name="author" />
18f16009 12 <link type="image/x-icon" rel="icon" href="data:image/x-icon;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQEAYAAABPYyMiAAAABmJLR0T///////8JWPfcAAAACXBIWXMAAABIAAAASABGyWs+AAAAF0lEQVRIx2NgGAWjYBSMglEwCkbBSAcACBAAAeaR9cIAAAAASUVORK5CYII=" />
ebd8d4e8
IC
13 </head>
14 <body>
15 <div class="container">
16
17 <h1 class="text-center">Mnemonic Code Converter</h1>
90f7a5ec 18 <p class="version">v0.4.2</p>
ebd8d4e8
IC
19 <hr>
20 <div class="row">
21 <div class="col-md-12">
d4779799 22 <h2>Mnemonic</h2>
ebd8d4e8 23 <form class="form-horizontal" role="form">
ebd8d4e8 24 <div class="form-group">
c6624d51
IC
25 <div class="col-sm-2"></div>
26 <div class="col-sm-10">
fb00a22d
IC
27 <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>
28 <p>
60599f7a
IC
29 For more info see the
30 <a href="https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki" target="_blank">BIP39 spec</a>.
31 </p>
c6624d51
IC
32 </div>
33 </div>
34 <div class="form-group generate-container">
b0818b31 35 <label class="col-sm-2 control-label"></label>
ebd8d4e8 36 <div class="col-sm-10">
b0818b31
IC
37 <div class="form-inline">
38 <div class="input-group-inline">
54348219 39 <span>Generate a random mnemonic</span>:
a51ef005 40 <button class="btn generate" ><b>GENERATE</b></button>
b0818b31
IC
41 <select id="strength" class="strength form-control">
42 <option value="3">3</option>
43 <option value="6">6</option>
44 <option value="9">9</option>
01e0ec16 45 <option value="12">12</option>
9f6352d6 46 <option value="15" selected>15</option>
b0818b31
IC
47 <option value="18">18</option>
48 <option value="21">21</option>
49 <option value="24">24</option>
50 </select>
7d607804 51 <span>words, or enter your own below</span>.
85c90672
IC
52 <p class="warning help-block hidden">
53 <span class="text-danger">
0529ca55
SH
54 Mnemonics with less than 12 words have low entropy and may be guessed by an attacker.
55 </span>
85c90672 56 </p>
b0818b31
IC
57 </div>
58 </div>
ebd8d4e8 59 </div>
7c31e3cd 60 </div>
c6624d51 61 <div class="entropy-container hidden">
0a84fe6a 62 <div class="form-group text-danger">
fb00a22d 63 <label class="col-sm-2 control-label">Warning</label>
0a84fe6a 64 <div class="col-sm-10 form-control-static">
fb00a22d
IC
65 <span>Entropy is an advanced feature. Your mnemonic may be insecure if this feature is used incorrectly.</span>
66 <a href="#entropy-notes">Read more</a>
439f0e25 67 </div>
1cf1bbaf 68 </div>
0a84fe6a 69 <div class="form-group">
fb00a22d 70 <label for="entropy" class="col-sm-2 control-label">Entropy</label>
0a84fe6a 71 <div class="col-sm-7">
bea736ae 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" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
ee0981f1
IC
73 <div class="row filter-warning text-danger hidden">
74 <p class="col-sm-12">
75 <strong>
76 Some characters have been discarded
77 </strong>
78 </p>
79 </div>
a3a61b68 80 <div class="row">
fb00a22d 81 <label class="col-sm-3 control-label"><span class="more-info" title="Based on estimates from zxcvbn using Filtered Entropy">Time To Crack</span></label>
20f459ce 82 <div class="crack-time col-sm-3 form-control-static"></div>
fb00a22d 83 <label class="col-sm-3 control-label">Event Count</label>
a3a61b68
IC
84 <div class="event-count col-sm-3 form-control-static"></div>
85 </div>
86 <div class="row">
fb00a22d 87 <label class="col-sm-3 control-label">Entropy Type</label>
a3a61b68 88 <div class="type col-sm-3 form-control-static"></div>
fb00a22d 89 <label class="col-sm-3 control-label">Bits Per Event</label>
a3a61b68
IC
90 <div class="bits-per-event col-sm-3 form-control-static"></div>
91 </div>
92 <div class="row">
fb00a22d 93 <label class="col-sm-3 control-label">Raw Entropy Words</label>
a3a61b68 94 <div class="word-count col-sm-3 form-control-static"></div>
fb00a22d 95 <label class="col-sm-3 control-label"><span class="more-info" title="Total bits of entropy may be less than indicated if any entropy event uses a weak source.">Total Bits</span></label>
a3a61b68
IC
96 <div class="bits col-sm-3 form-control-static"></div>
97 </div>
fb00a22d 98 <label class="col-sm-3 control-label">Filtered Entropy</label>
0b6e351d 99 <div class="filtered private-data col-sm-9 form-control-static"></div>
fb00a22d 100 <label class="col-sm-3 control-label">Raw Binary</label>
0b6e351d 101 <div class="binary private-data col-sm-9 form-control-static"></div>
09d63290 102 <label class="col-sm-3 control-label">Binary Checksum</label>
0b6e351d 103 <div class="checksum private-data col-sm-9 form-control-static">&nbsp;</div>
74ab4cbe 104 <label class="col-sm-3 control-label">Word Indexes</label>
0b6e351d 105 <div class="word-indexes private-data col-sm-9 form-control-static">&nbsp;</div>
fb00a22d 106 <label class="col-sm-3 control-label">Mnemonic Length</label>
0a84fe6a 107 <div class="col-sm-9">
1cf1bbaf 108 <select class="mnemonic-length form-control">
fb00a22d
IC
109 <option value="raw" selected>Use Raw Entropy (3 words per 32 bits)</option>
110 <option value="12">12 <span>Words</span></option>
5c314388 111 <option value="15">15 <span>Words</span></option>
fb00a22d
IC
112 <option value="18">18 <span>Words</span></option>
113 <option value="21">21 <span>Words</span></option>
114 <option value="24">24 <span>Words</span></option>
1cf1bbaf 115 </select>
645945a0
IC
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>
c6624d51 121 </div>
1cf1bbaf 122 </div>
0a84fe6a 123 <div class="col-sm-3">
fb00a22d 124 <p>Valid entropy values include:</p>
0a84fe6a 125 <ul>
516c16d7
IC
126 <li>
127 <label>
128 <input type="radio" name="entropy-type" value="binary">
129 <strong>Binary</strong> [0-1]<br>101010011
130 </label>
131 </li>
132 <li>
133 <label>
134 <input type="radio" name="entropy-type" value="base 6">
135 <strong>Base 6</strong> [0-5]<br>123434014
136 </label>
137 </li>
138 <li>
139 <label>
140 <input type="radio" name="entropy-type" value="dice">
141 <strong>Dice</strong> [1-6]<br>62535634
142 </label>
143 </li>
144 <li>
145 <label>
146 <input type="radio" name="entropy-type" value="base 10">
147 <strong>Base 10</strong> [0-9]<br>90834528
148 </label>
149 </li>
150 <li>
151 <label>
152 <input type="radio" name="entropy-type" value="hexadecimal" checked>
153 <strong>Hex</strong> [0-9A-F]<br>4187a8bfd9
154 </label>
155 </li>
156 <li>
157 <label>
158 <input type="radio" name="entropy-type" value="card">
159 <strong>Card</strong> [A2-9TJQK][CDHS]<br>ahqs9dtc
160 </label>
161 </li>
0a84fe6a
IC
162 </ul>
163 </div>
c6624d51
IC
164 </div>
165 </div>
166 <div class="form-group">
167 <div class="col-sm-2"></div>
168 <div class="col-sm-10 checkbox">
169 <label>
170 <input type="checkbox" class="use-entropy">
74ab4cbe 171 <span>Show entropy details</span>
c6624d51
IC
172 </label>
173 </div>
174 </div>
0b6e351d
IC
175 <div class="form-group">
176 <div class="col-sm-2"></div>
177 <div class="col-sm-10 checkbox">
178 <label>
179 <input type="checkbox" class="privacy-screen-toggle">
180 <span>Hide all private info</span>
181 </label>
182 </div>
183 </div>
c6624d51 184 <div class="form-group">
fb00a22d 185 <label class="col-sm-2 control-label">Mnemonic Language</label>
7c31e3cd 186 <div class="col-sm-10 languages">
60599f7a
IC
187 <div class="form-control no-border">
188 <a href="#english">English</a>
189 <a href="#japanese" title="Japanese">日本語</a>
190 <a href="#spanish" title="Spanish">Español</a>
191 <a href="#chinese_simplified" title="Chinese (Simplified)">中文(简体)</a>
192 <a href="#chinese_traditional" title="Chinese (Traditional)">中文(繁體)</a>
193 <a href="#french" title="French">Français</a>
194 <a href="#italian" title="Italian">Italiano</a>
139becaf 195 <a href="#korean" title="Korean">한국어</a>
cc3c3548 196 <a href="#czech" title="Czech">Čeština</a>
60599f7a 197 </div>
7c31e3cd 198 </div>
ebd8d4e8
IC
199 </div>
200 <div class="form-group">
fb00a22d 201 <label for="phrase" class="col-sm-2 control-label">BIP39 Mnemonic</label>
ebd8d4e8 202 <div class="col-sm-10">
bea736ae 203 <textarea id="phrase" class="phrase private-data form-control" data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
ebd8d4e8
IC
204 </div>
205 </div>
b1100c66
MC
206 <div class="form-group">
207 <label for="phrase" class="col-sm-2 control-label">BIP39 Split Mnemonic</label>
208 <div class="col-sm-10">
ea2cb91a
IC
209 <textarea id="phraseSplit" class="phraseSplit private-data form-control" title="Only 2 of 3 cards needed to recover." rows="3"></textarea>
210 <p class="help-block">
211 <span id="phraseSplitWarn" class="phraseSplitWarn"></span>
212 </p>
b1100c66
MC
213 </div>
214 </div>
1abcc511 215 <div class="form-group">
fb00a22d 216 <label for="passphrase" class="col-sm-2 control-label">BIP39 Passphrase (optional)</label>
1abcc511 217 <div class="col-sm-10">
bea736ae 218 <textarea id="passphrase" class="passphrase private-data form-control" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
1abcc511
PR
219 </div>
220 </div>
3e0ed16a 221 <div class="form-group">
fb00a22d 222 <label for="seed" class="col-sm-2 control-label">BIP39 Seed</label>
3e0ed16a 223 <div class="col-sm-10">
9cf02dd4 224 <textarea id="seed" class="seed private-data form-control" data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
3e0ed16a
KK
225 </div>
226 </div>
4d457a38 227 <div class="form-group">
fb00a22d 228 <label for="network-phrase" class="col-sm-2 control-label">Coin</label>
4d457a38
IC
229 <div class="col-sm-10">
230 <select id="network-phrase" class="network form-control">
7f15cb6e 231 <!-- populated by javascript -->
4d457a38
IC
232 </select>
233 </div>
234 </div>
ebd8d4e8 235 <div class="form-group">
fb00a22d 236 <label for="root-key" class="col-sm-2 control-label">BIP32 Root Key</label>
ebd8d4e8 237 <div class="col-sm-10">
bea736ae 238 <textarea id="root-key" class="root-key private-data form-control" data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
ebd8d4e8
IC
239 </div>
240 </div>
3abab9b0 241 <div class="form-group litecoin-ltub-container hidden">
fb00a22d 242 <label for="litecoin-use-ltub" class="col-sm-2 control-label">Prefixes</label>
3abab9b0
IC
243 <div class="col-sm-10 checkbox">
244 <label>
1c2b8c6b 245 <input type="checkbox" id="litecoin-use-ltub" class="litecoin-use-ltub" checked="checked">
3abab9b0
IC
246 Use <code>Ltpv / Ltub</code> instead of <code>xprv / xpub</code>
247 </label>
248 </div>
249 </div>
ebd8d4e8
IC
250 </form>
251 </div>
252 </div>
253
254 <hr>
255
256 <div class="row">
257 <div class="col-md-12">
258 <h2>Derivation Path</h2>
259 <ul class="derivation-type nav nav-tabs" role="tablist">
3b40653f 260 <li id="bip32-tab">
23d4a0f1
IC
261 <a href="#bip32" role="tab" data-toggle="tab">BIP32</a>
262 </li>
33b3dd47
IC
263 <li id="bip44-tab" class="active">
264 <a href="#bip44" role="tab" data-toggle="tab">BIP44</a>
265 </li>
6c08f364
IC
266 <li id="bip49-tab">
267 <a href="#bip49" role="tab" data-toggle="tab">BIP49</a>
268 </li>
4e9b492c
IC
269 <li id="bip84-tab">
270 <a href="#bip84" role="tab" data-toggle="tab">BIP84</a>
271 </li>
c49e8812
IC
272 <li id="bip141-tab">
273 <a href="#bip141" role="tab" data-toggle="tab">BIP141</a>
274 </li>
ebd8d4e8
IC
275 </ul>
276 <div class="derivation-type tab-content">
55a9e51a 277 <div id="bip44" class="tab-pane active">
ebd8d4e8
IC
278 <form class="form-horizontal" role="form">
279 <br>
280 <div class="col-sm-2"></div>
281 <div class="col-sm-10">
fb00a22d 282 <p>
60599f7a
IC
283 For more info see the
284 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target="_blank">BIP44 spec</a>.
285 </p>
ebd8d4e8
IC
286 </div>
287 <div class="form-group">
fe3c963b 288 <label for="purpose-bip44" class="col-sm-2 control-label">
fb00a22d 289 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target="_blank">Purpose</a>
ebd8d4e8
IC
290 </label>
291 <div class="col-sm-10">
fe3c963b 292 <input id="purpose-bip44" type="text" class="purpose form-control" value="44" readonly>
ebd8d4e8
IC
293 </div>
294 </div>
295 <div class="form-group">
fe3c963b 296 <label for="coin-bip44" class="col-sm-2 control-label">
fb00a22d 297 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target="_blank">Coin</a>
ebd8d4e8
IC
298 </label>
299 <div class="col-sm-10">
fe3c963b 300 <input id="coin-bip44" type="text" class="coin form-control" value="0" readonly>
ebd8d4e8
IC
301 </div>
302 </div>
303 <div class="form-group">
fe3c963b 304 <label for="account-bip44" class="col-sm-2 control-label">
fb00a22d 305 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target="_blank">Account</a>
ebd8d4e8
IC
306 </label>
307 <div class="col-sm-10">
fe3c963b 308 <input id="account-bip44" type="text" class="account form-control" value="0">
ebd8d4e8
IC
309 </div>
310 </div>
311 <div class="form-group">
fe3c963b 312 <label for="change-bip44" class="col-sm-2 control-label">
fb00a22d 313 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target="_blank">External / Internal</a>
ebd8d4e8
IC
314 </label>
315 <div class="col-sm-10">
55367b98 316 <input id="change-bip44" type="text" class="change form-control" value="0">
ebd8d4e8
IC
317 </div>
318 </div>
c554e6ff
IC
319 <div class="form-group">
320 <label class="col-sm-2 control-label">
321 </label>
322 <div class="col-sm-10">
fb00a22d 323 <p>The account extended keys can be used for importing to most BIP44 compatible wallets, such as mycelium or electrum.</p>
c554e6ff
IC
324 </div>
325 </div>
326 <div class="form-group">
327 <label for="account-xprv" class="col-sm-2 control-label">
fb00a22d 328 <span>Account Extended Private Key</span>
c554e6ff
IC
329 </label>
330 <div class="col-sm-10">
bea736ae 331 <textarea id="account-xprv-bip44" type="text" class="account-xprv private-data form-control" readonly data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
c554e6ff
IC
332 </div>
333 </div>
334 <div class="form-group">
335 <label for="account-xpub" class="col-sm-2 control-label">
fb00a22d 336 <span>Account Extended Public Key</span>
c554e6ff
IC
337 </label>
338 <div class="col-sm-10">
bea736ae 339 <textarea id="account-xpub-bip44" type="text" class="account-xpub form-control" readonly data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
c554e6ff
IC
340 </div>
341 </div>
342 <div class="form-group">
343 <label class="col-sm-2 control-label">
344 </label>
345 <div class="col-sm-10">
fb00a22d 346 <p>The BIP32 derivation path and extended keys are the basis for the derived addresses.</p>
c554e6ff
IC
347 </div>
348 </div>
ebd8d4e8 349 <div class="form-group">
fb00a22d 350 <label for="bip44-path" class="col-sm-2 control-label">BIP32 Derivation Path</label>
ebd8d4e8 351 <div class="col-sm-10">
d198865f 352 <input id="bip44-path" type="text" class="path form-control" value="m/44'/0'/0'/0" readonly="readonly">
ebd8d4e8
IC
353 </div>
354 </div>
355 </form>
356 </div>
357 <div id="bip32" class="tab-pane">
358 <form class="form-horizontal" role="form">
359 <br>
360 <div class="col-sm-2"></div>
361 <div class="col-sm-10">
fb00a22d 362 <p>
60599f7a
IC
363 For more info see the
364 <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target="_blank">BIP32 spec</a>
365 </p>
ebd8d4e8 366 </div>
a2e3e819 367 <div class="form-group">
fb00a22d 368 <label for="bip32-client" class="col-sm-2 control-label">Client</label>
a2e3e819 369 <div class="col-sm-10">
29bf60f5
IC
370 <select id="bip32-client" class="client form-control">
371 <option value="custom">Custom derivation path</option>
a2e3e819
IC
372 <!-- populated by javascript -->
373 </select>
374 </div>
375 </div>
ebd8d4e8 376 <div class="form-group">
fb00a22d 377 <label for="bip32-path" class="col-sm-2 control-label">BIP32 Derivation Path</label>
ebd8d4e8
IC
378 <div class="col-sm-10">
379 <input id="bip32-path" type="text" class="path form-control" value="m/0">
380 </div>
381 </div>
8786746b 382 <div class="form-group">
fb00a22d 383 <label for="core-path" class="col-sm-2 control-label">Bitcoin Core</label>
8786746b 384 <div class="col-sm-10">
fb00a22d 385 <p class="form-control no-border">
8786746b 386 Use path <code>m/0'/0'</code> with hardened addresses.
ea12c8a9 387 </p>
fb00a22d 388 <p class="form-control no-border">
60599f7a
IC
389 For more info see the
390 <a href="https://github.com/bitcoin/bitcoin/pull/8035" target="_blank">Bitcoin Core BIP32 implementation</a>
8786746b
IC
391 </p>
392 </div>
393 </div>
aa51da11 394 <div class="form-group">
fb00a22d 395 <label for="core-path" class="col-sm-2 control-label">Multibit</label>
aa51da11
IC
396 <div class="col-sm-10">
397 <p class="form-control no-border">
fb00a22d 398 <span>Use path <code>m/0'/0</code>.</span>
82cf26c1 399 <span>For change addresses use path <code>m/0'/1</code>.</span>
ea12c8a9
IC
400 </p>
401 <p class="form-control no-border">
fb00a22d 402 <span>For more info see</span>
6ee4fb7d 403 <a href="https://multibit.org/" target="_blank">MultiBit HD</a>
aa51da11 404 </p>
6ee4fb7d
IC
405 </div>
406 </div>
407 <div class="form-group">
fb00a22d 408 <label class="col-sm-2 control-label">Block Explorers</label>
6ee4fb7d 409 <div class="col-sm-10">
3f363a42 410 <p class="form-control no-border">
fb00a22d
IC
411 <span>Use path <code>m/44'/0'/0'</code>.</span>
412 <span>Only enter the <code>xpub</code> extended key into block explorer search fields, never the <code>xprv</code> key.</span>
3f363a42
AG
413 </p>
414 <p class="form-control no-border">
fb00a22d 415 <span>Can be used with</span>:
6ee4fb7d 416 <a href="https://blockchain.info/" target="_blank">blockchain.info</a>
3f363a42 417 </p>
aa51da11
IC
418 </div>
419 </div>
ebd8d4e8
IC
420 </form>
421 </div>
6c08f364
IC
422 <div id="bip49" class="tab-pane">
423 <form class="form-horizontal" role="form">
424 <br>
425 <div class="unavailable hidden">
426 <div class="form-group">
427 <div class="col-sm-2"></div>
428 <div class="col-sm-10">
fb00a22d 429 <p>BIP49 is unavailable for this coin.</p>
6c08f364
IC
430 </div>
431 </div>
432 </div>
433 <div class="available">
434 <div class="col-sm-2"></div>
435 <div class="col-sm-10">
fb00a22d 436 <p>
6c08f364
IC
437 For more info see the
438 <a href="https://github.com/bitcoin/bips/blob/master/bip-0049.mediawiki" target="_blank">BIP49 spec</a>.
439 </p>
440 </div>
441 <div class="form-group">
fe3c963b 442 <label for="purpose-bip49" class="col-sm-2 control-label">
fb00a22d 443 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#purpose" target="_blank">Purpose</a>
6c08f364
IC
444 </label>
445 <div class="col-sm-10">
fe3c963b 446 <input id="purpose-bip49" type="text" class="purpose form-control" value="49" readonly>
6c08f364
IC
447 </div>
448 </div>
449 <div class="form-group">
fe3c963b 450 <label for="coin-bip49" class="col-sm-2 control-label">
fb00a22d 451 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#registered-coin-types" target="_blank">Coin</a>
6c08f364
IC
452 </label>
453 <div class="col-sm-10">
fe3c963b 454 <input id="coin-bip49" type="text" class="coin form-control" value="0" readonly>
6c08f364
IC
455 </div>
456 </div>
457 <div class="form-group">
fe3c963b 458 <label for="account-bip49" class="col-sm-2 control-label">
fb00a22d 459 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#account" target="_blank">Account</a>
6c08f364
IC
460 </label>
461 <div class="col-sm-10">
fe3c963b 462 <input id="account-bip49" type="text" class="account form-control" value="0">
6c08f364
IC
463 </div>
464 </div>
465 <div class="form-group">
fe3c963b 466 <label for="change-bip49" class="col-sm-2 control-label">
fb00a22d 467 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki#change" target="_blank">External / Internal</a>
6c08f364
IC
468 </label>
469 <div class="col-sm-10">
fe3c963b 470 <input id="change-bip49" type="text" class="change form-control" value="0">
6c08f364
IC
471 </div>
472 </div>
473 <div class="form-group">
474 <label class="col-sm-2 control-label">
475 </label>
476 <div class="col-sm-10">
fb00a22d 477 <p>The account extended keys can be used for importing to most BIP49 compatible wallets.</p>
6c08f364
IC
478 </div>
479 </div>
480 <div class="form-group">
481 <label for="account-xprv" class="col-sm-2 control-label">
fb00a22d 482 <span>Account Extended Private Key</span>
6c08f364
IC
483 </label>
484 <div class="col-sm-10">
bea736ae 485 <textarea id="account-xprv-bip49" type="text" class="account-xprv private-data form-control" readonly data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
6c08f364
IC
486 </div>
487 </div>
488 <div class="form-group">
489 <label for="account-xpub" class="col-sm-2 control-label">
fb00a22d 490 <span>Account Extended Public Key</span>
6c08f364
IC
491 </label>
492 <div class="col-sm-10">
bea736ae 493 <textarea id="account-xpub-bip49" type="text" class="account-xpub form-control" readonly data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
6c08f364
IC
494 </div>
495 </div>
496 <div class="form-group">
497 <label class="col-sm-2 control-label">
498 </label>
499 <div class="col-sm-10">
fb00a22d 500 <p>The BIP32 derivation path and extended keys are the basis for the derived addresses.</p>
6c08f364
IC
501 </div>
502 </div>
503 <div class="form-group">
fb00a22d 504 <label for="bip49-path" class="col-sm-2 control-label">BIP32 Derivation Path</label>
6c08f364
IC
505 <div class="col-sm-10">
506 <input id="bip49-path" type="text" class="path form-control" value="m/49'/0'/0'/0" readonly="readonly">
507 </div>
508 </div>
509 </div>
510 </form>
511 </div>
c49e8812
IC
512 <div id="bip141" class="tab-pane">
513 <form class="form-horizontal" role="form">
514 <br>
515 <div class="unavailable hidden">
516 <div class="form-group">
517 <div class="col-sm-2"></div>
518 <div class="col-sm-10">
519 <p>BIP141 is unavailable for this coin.</p>
520 </div>
521 </div>
522 </div>
523 <div class="available">
524 <div class="col-sm-2"></div>
525 <div class="col-sm-10">
526 <p>
527 For more info see the
528 <a href="https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki" target="_blank">BIP141 spec</a>
529 </p>
530 </div>
531 <div class="form-group">
532 <label for="bip141-path" class="col-sm-2 control-label">BIP32 Derivation Path</label>
533 <div class="col-sm-10">
534 <input id="bip141-path" type="text" class="bip141-path form-control" value="m/0">
535 </div>
536 </div>
537 <div class="form-group">
538 <label class="col-sm-2 control-label">Script Semantics</label>
539 <div class="col-sm-10">
540 <select class="form-control bip141-semantics">
541 <option value="p2wpkh">P2WPKH</option>
542 <option value="p2wpkh-p2sh" selected>P2WPKH nested in P2SH</option>
f7e9fdf0
IC
543 <option value="p2wsh">P2WSH (1-of-1 multisig)</option>
544 <option value="p2wsh-p2sh">P2WSH nested in P2SH (1-of-1 multisig)</option>
c49e8812
IC
545 </select>
546 </div>
547 </div>
548 </div>
549 </form>
550 </div>
4e9b492c
IC
551 <div id="bip84" class="tab-pane">
552 <form class="form-horizontal" role="form">
553 <br>
bddd5d9f
IC
554 <div class="unavailable hidden">
555 <div class="form-group">
556 <div class="col-sm-2"></div>
557 <div class="col-sm-10">
558 <p>BIP84 is unavailable for this coin.</p>
559 </div>
4e9b492c
IC
560 </div>
561 </div>
bddd5d9f
IC
562 <div class="available">
563 <div class="col-sm-2"></div>
4e9b492c 564 <div class="col-sm-10">
bddd5d9f
IC
565 <p>
566 For more info see the
567 <a href="https://github.com/bitcoin/bips/blob/master/bip-0084.mediawiki" target="_blank">BIP84 spec</a>.
568 </p>
4e9b492c 569 </div>
bddd5d9f 570 <div class="form-group">
fe3c963b 571 <label for="purpose-bip84" class="col-sm-2 control-label">
bddd5d9f
IC
572 Purpose
573 </label>
574 <div class="col-sm-10">
fe3c963b 575 <input id="purpose-bip84" type="text" class="purpose form-control" value="84" readonly>
bddd5d9f 576 </div>
4e9b492c 577 </div>
bddd5d9f 578 <div class="form-group">
fe3c963b 579 <label for="coin-bip84" class="col-sm-2 control-label">
bddd5d9f
IC
580 Coin
581 </label>
582 <div class="col-sm-10">
fe3c963b 583 <input id="coin-bip84" type="text" class="coin form-control" value="0" readonly>
bddd5d9f 584 </div>
4e9b492c 585 </div>
bddd5d9f 586 <div class="form-group">
fe3c963b 587 <label for="account-bip84" class="col-sm-2 control-label">
bddd5d9f
IC
588 Account
589 </label>
590 <div class="col-sm-10">
fe3c963b 591 <input id="account-bip84" type="text" class="account form-control" value="0">
bddd5d9f 592 </div>
4e9b492c 593 </div>
bddd5d9f 594 <div class="form-group">
fe3c963b 595 <label for="change-bip84" class="col-sm-2 control-label">
bddd5d9f
IC
596 External / Internal
597 </label>
598 <div class="col-sm-10">
fe3c963b 599 <input id="change-bip84" type="text" class="change form-control" value="0">
bddd5d9f 600 </div>
4e9b492c 601 </div>
bddd5d9f
IC
602 <div class="form-group">
603 <label class="col-sm-2 control-label">
604 </label>
605 <div class="col-sm-10">
606 <p>The account extended keys can be used for importing to most BIP84 compatible wallets.</p>
607 </div>
4e9b492c 608 </div>
bddd5d9f
IC
609 <div class="form-group">
610 <label for="account-xprv" class="col-sm-2 control-label">
611 <span>Account Extended Private Key</span>
612 </label>
613 <div class="col-sm-10">
bea736ae 614 <textarea id="account-xprv-bip84" type="text" class="account-xprv private-data form-control" readonly data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
bddd5d9f 615 </div>
4e9b492c 616 </div>
bddd5d9f
IC
617 <div class="form-group">
618 <label for="account-xpub" class="col-sm-2 control-label">
619 <span>Account Extended Public Key</span>
620 </label>
621 <div class="col-sm-10">
bea736ae 622 <textarea id="account-xpub-bip84" type="text" class="account-xpub form-control" readonly data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
bddd5d9f
IC
623 </div>
624 </div>
625 <div class="form-group">
626 <label class="col-sm-2 control-label">
627 </label>
628 <div class="col-sm-10">
629 <p>The BIP32 derivation path and extended keys are the basis for the derived addresses.</p>
630 </div>
631 </div>
632 <div class="form-group">
633 <label for="bip84-path" class="col-sm-2 control-label">BIP32 Derivation Path</label>
634 <div class="col-sm-10">
635 <input id="bip84-path" type="text" class="path form-control" value="m/84'/0'/0'/0" readonly="readonly">
636 </div>
4e9b492c
IC
637 </div>
638 </div>
639 </form>
640 </div>
ebd8d4e8
IC
641 </div>
642 <form class="form-horizontal" role="form">
643 <div class="form-group">
fb00a22d 644 <label for="extended-priv-key" class="col-sm-2 control-label">BIP32 Extended Private Key</label>
ebd8d4e8 645 <div class="col-sm-10">
bea736ae 646 <textarea id="extended-priv-key" class="extended-priv-key private-data form-control" readonly="readonly" data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
ebd8d4e8
IC
647 </div>
648 </div>
649 <div class="form-group">
fb00a22d 650 <label for="extended-pub-key" class="col-sm-2 control-label">BIP32 Extended Public Key</label>
ebd8d4e8 651 <div class="col-sm-10">
bea736ae 652 <textarea id="extended-pub-key" class="extended-pub-key form-control" readonly="readonly" data-show-qr autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
ebd8d4e8
IC
653 </div>
654 </div>
655 </form>
656 </div>
657 </div>
658
659 <hr>
660
661 <div class="row">
662 <div class="col-md-12">
663 <h2>Derived Addresses</h2>
20871923 664 <p>Note these addresses are derived from the BIP32 Extended Key</p>
fe8f2d14 665 </div>
e0f91e20
IC
666 <div class="col-md-12 bch-addr-type-container hidden">
667 <div class="radio">
668 <label>
669 <input type="radio" value="cashaddr" name="bch-addr-type" class="use-bch-cashaddr-addresses" checked="checked">
670 <span>Use CashAddr addresses for Bitcoin Cash (ie starting with 'q' instead of '1')</span>
671 </label>
672 </div>
673 <div class="radio">
fe8f2d14 674 <label>
e0f91e20 675 <input type="radio" value="bitpay" name="bch-addr-type" class="use-bch-bitpay-addresses">
fe8f2d14
IC
676 <span>Use BitPay-style addresses for Bitcoin Cash (ie starting with 'C' instead of '1')</span>
677 </label>
678 </div>
e0f91e20
IC
679 <div class="radio">
680 <label>
681 <input type="radio" value="legacy" name="bch-addr-type" class="use-bch-legacy-addresses">
682 <span>Use legacy addresses for Bitcoin Cash (ie starting with '1')</span>
683 </label>
684 </div>
fe8f2d14 685 </div>
0b39e9dc
IC
686 <div class="col-md-12">
687 <div class="checkbox">
688 <label>
689 <input type="checkbox" class="use-bip38">
690 <span>Encrypt private keys using BIP38 and this password:</span>
691 </label>
bea736ae 692 <input class="bip38-password private-data" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false">
dfe833a7 693 <span>Enabling BIP38 means each key will take several minutes to generate.</span>
0b39e9dc
IC
694 </div>
695 </div>
9ce31d35
IC
696 <div class="col-md-12">
697 <div class="checkbox">
698 <label>
699 <input class="hardened-addresses" type="checkbox">
700 <span>Use hardened addresses</span>
701 </label>
702 </div>
703 </div>
a78f4e28
IC
704 <ul class="addresses-type nav nav-tabs" role="tablist">
705 <li id="table-tab" class="active">
706 <a href="#table" role="tab" data-toggle="tab">Table</a>
707 </li>
708 <li id="csv-tab">
709 <a href="#csv" role="tab" data-toggle="tab">CSV</a>
710 </li>
711 </ul>
712 <div class="addresses-type tab-content">
713 <div id="table" class="tab-pane active">
714 <div class="col-md-12">
715 <table class="table table-striped">
716 <thead>
717 <th>
718 <div class="input-group">
719 <span>Path</span>&nbsp;&nbsp;
720 <button class="index-toggle">Toggle</button>
721 </div>
722 </th>
723 <th>
724 <div class="input-group">
725 <span>Address</span>&nbsp;&nbsp;
726 <button class="address-toggle">Toggle</button>
727 </div>
728 </th>
729 <th>
730 <div class="input-group">
731 <span>Public Key</span>&nbsp;&nbsp;
732 <button class="public-key-toggle">Toggle</button>
733 </div>
734 </th>
735 <th>
736 <div class="input-group">
737 <span>Private Key</span>&nbsp;&nbsp;
738 <button class="private-key-toggle">Toggle</button>
739 </div>
740 </th>
741 </thead>
742 <tbody class="addresses monospace">
743 <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
744 <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
745 <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
746 <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
747 <tr><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>
748 </tbody>
749 </table>
750 </div>
751 </div>
752 <div id="csv" class="tab-pane">
753 <div class="col-md-12">
bea736ae 754 <textarea class="csv form-control" rows="25" readonly autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false"></textarea>
a78f4e28
IC
755 </div>
756 </div>
ebd8d4e8
IC
757 </div>
758 </div>
9183f9f6 759 <span>Show</span>
ebd8d4e8 760 <input type="number" class="rows-to-add" value="20">
9183f9f6
IC
761 <button class="more">more rows</button>
762 <span>starting from index</span>
763 <input type="number" class="more-rows-start-index">
764 <span>(leave blank to generate from next index)</span>
ebd8d4e8
IC
765
766 <hr>
767
768 <div class="row">
769 <div class="col-md-12">
fb00a22d
IC
770 <h2>More info</h2>
771 <h3>BIP39 <span class="small">Mnemonic code for generating deterministic keys</span></h3>
772 <p>
ebd8d4e8
IC
773 Read more at the
774 <a href="https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki">official BIP39 spec</a>
775 </p>
fb00a22d
IC
776 <h3>BIP32 <span class="small">Hierarchical Deterministic Wallets</span></h3>
777 <p>
ebd8d4e8
IC
778 Read more at the
779 <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki" target="_blank">official BIP32 spec</a>
60599f7a 780 </p>
fb00a22d 781 <p>
60599f7a 782 See the demo at
ebd8d4e8
IC
783 <a href="http://bip32.org/" target="_blank">bip32.org</a>
784 </p>
fb00a22d
IC
785 <h3>BIP44 <span class="small">Multi-Account Hierarchy for Deterministic Wallets</span></h3>
786 <p>
ebd8d4e8
IC
787 Read more at the
788 <a href="https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki" target="_blank">official BIP44 spec</a>
789 </p>
fb00a22d
IC
790 <h3>BIP49 <span class="small">Derivation scheme for P2WPKH-nested-in-P2SH based accounts</span></h3>
791 <p>
861750ae
JC
792 Read more at the
793 <a href="https://github.com/bitcoin/bips/blob/master/bip-0049.mediawiki" target="_blank">official BIP49 spec</a>
794 </p>
fb00a22d 795 <h3 id="entropy-notes">Entropy</h3>
548d9499
IC
796 <p>
797 <span>Entropy values should not include the BIP39 checksum. This is automatically added by the tool.</span>
798 </p>
c6624d51 799 <p>
fb00a22d 800 <span>
60599f7a
IC
801 Entropy values must be sourced from a
802 <a href="https://en.wikipedia.org/wiki/Random_number_generation" target="_blank">strong source of randomness</a>.
803 </span>
fb00a22d
IC
804 <span>This means flipping a fair coin, rolling a fair dice, noise measurements etc.</span>
805 <span>
20871923 806 Do <strong>NOT</strong> use phrases from books, lyrics from songs, your birthday or street address,
60599f7a
IC
807 keyboard mashing, or anything you <i>think</i> is random, because chances are overwhelming it isn't
808 random enough for the needs of this tool.
809 </span>
c6624d51 810 </p>
bf9bdfd2 811 <p>
fb00a22d 812 <strong><span>Do not store entropy.</span></strong>
bf9bdfd2
IC
813 </p>
814 <p>
fb00a22d
IC
815 <span>Storing entropy (such as keeping a deck of cards in a specific shuffled order) is unreliable compared to storing a mnemonic.</span>
816 <span>Instead of storing entropy, store the mnemonic generated from the entropy.</span>
817 <span><a href="https://en.wikipedia.org/wiki/Steganography#Physical" target="_blank">Steganography</a> may be beneficial when storing the mnemonic.</span>
bf9bdfd2 818 </p>
c6624d51 819 <p>
fb00a22d 820 <span>
60599f7a
IC
821 The random mnemonic generator on this page uses a
822 <a href="https://developer.mozilla.org/en-US/docs/Web/API/RandomSource/getRandomValues" target="_blank">cryptographically secure random number generator</a>.
823 </span>
fb00a22d
IC
824 <span>The built in random generator can generally be trusted more than your own intuition about randomness.</span>
825 <span>If cryptographic randomness isn't available in your browser, this page will show a warning and the generate button will not work.</span>
826 <span>In that case you might choose to use your own source of entropy.</span>
c6624d51
IC
827 </p>
828 <p>
fb00a22d 829 <a href="https://bitcointalk.org/index.php?topic=311000.msg3345309#msg3345309" target="_blank">You are not a good source of entropy.</a>
c6624d51 830 </p>
fb00a22d 831 <h3>License</h3>
1f618a77 832 <p>
fb00a22d 833 <span>Please refer to <a href="https://github.com/iancoleman/bip39/blob/master/LICENSE" target="_blank">the software license</a> for more detail.
1f618a77
IC
834 </span>
835 </p>
fb00a22d 836 <p>The software is provided "as is", without warranty of any kind, express or implied, including but not limited to the warranties of merchantability, fitness for a particular purpose and noninfringement. In no event shall the authors or copyright holders be liable for any claim, damages or other liability, whether in an action of contract, tort or otherwise, arising from, out of or in connection with the software or the use or other dealings in the software.</p>
ebd8d4e8
IC
837 </div>
838 </div>
45b8a745
IC
839
840 <hr>
841
73b8724a
IC
842 <div class="row">
843 <div class="col-md-12">
844 <h2>Alternative Tools</h2>
845 <p>This tool is interoperable with any BIP39 wallet.</p>
846 <p>Some similar tools to this one (ie not consumer wallets) are</p>
847 <p>
848 <a href="https://bip32jp.github.io/english/">
849 https://bip32jp.github.io/english/
850 </a>
851 </p>
852 </div>
853 </div>
854
855 <hr>
856
c5863485
IC
857 <div class="row">
858 <div class="col-md-12">
859
fb00a22d 860 <h2>Offline Usage</h2>
c5863485 861
fb00a22d 862 <p>
c5863485
IC
863 You can use this tool without having to be online.
864 </p>
fb00a22d 865 <p>
c5863485
IC
866 In your browser, select file save-as, and save this page
867 as a file.
868 </p>
fb00a22d 869 <p>
c5863485
IC
870 Double-click that file to open it in a browser
871 on any offline computer.
872 </p>
873 <p>
fb00a22d 874 <span>Alternatively, download the file from the repository</span>
60599f7a
IC
875 -
876 <a href="https://github.com/iancoleman/bip39">https://github.com/iancoleman/bip39</a>
877 </p>
c5863485
IC
878
879 </div>
880 </div>
881
882 <hr>
883
45b8a745
IC
884 <div class="row">
885 <div class="col-md-12">
886
fb00a22d 887 <h2>This project is 100% open-source code</h2>
45b8a745
IC
888
889 <p>
fb00a22d 890 <span>Get the source code from the repository</span>
60599f7a 891 -
b630f83d
IC
892 <a href="https://github.com/iancoleman/bip39" target="_blank">
893 https://github.com/iancoleman/bip39
45b8a745
IC
894 </a>
895 </p>
896
fb00a22d 897 <h3>Libraries</h3>
45b8a745
IC
898
899 <p>
900 <span>BitcoinJS - </span>
901 <a href="https://github.com/bitcoinjs/bitcoinjs-lib" target="_blank">
902 https://github.com/bitcoinjs/bitcoinjs-lib
903 </a>
904 </p>
905
906 <p>
907 <span>jsBIP39 - </span>
908 <a href="https://github.com/iancoleman/jsbip39" target="_blank">
909 https://github.com/iancoleman/jsbip39
910 </a>
911 </p>
912
913 <p>
0937f3ab
IC
914 <span>sjcl - </span>
915 <a href="https://github.com/bitwiseshiftleft/sjcl" target="_blank">
916 https://github.com/bitwiseshiftleft/sjcl
45b8a745
IC
917 </a>
918 </p>
919
920 <p>
921 <span>jQuery - </span>
922 <a href="https://jquery.com/" target="_blank">
923 https://jquery.com/
924 </a>
925 </p>
926
927 <p>
928 <span>Twitter Bootstrap - </span>
929 <a href="http://getbootstrap.com/" target="_blank">
930 http://getbootstrap.com/
931 </a>
932 </p>
933
934 </div>
935 </div>
936
ebd8d4e8
IC
937 </div>
938
e00964cc 939 <div class="qr-container hidden">
fb00a22d
IC
940 <div class="qr-hint bg-primary hidden">Click field to hide QR</div>
941 <div class="qr-hint bg-primary">Click field to show QR</div>
8a93952c 942 <div class="qr-hider hidden">
97811c29 943 <div class="qr-image"></div>
fb00a22d 944 <div class="qr-warning bg-primary">Caution: Scanner may keep history</div>
97811c29 945 </div>
e00964cc
IC
946 </div>
947
ebd8d4e8 948 <div class="feedback-container">
d26cce22 949 <div class="feedback">Loading...</div>
ebd8d4e8
IC
950 </div>
951
952 <script type="text/template" id="address-row-template">
953 <tr>
954 <td class="index"><span></span></td>
e00964cc
IC
955 <td class="address"><span data-show-qr></span></td>
956 <td class="pubkey"><span data-show-qr></span></td>
0b6e351d 957 <td class="privkey private-data"><span data-show-qr></span></td>
ebd8d4e8
IC
958 </tr>
959 </script>
863fa61a 960 <script src="js/jquery-3.2.1.js"></script>
9a54f27e 961 <script src="js/bootstrap-3.3.7.js"></script>
22f87669 962 <script src="js/bip39-libs.js"></script>
cee442b1 963 <script src="js/bitcoinjs-extensions.js"></script>
c49e8812 964 <script src="js/segwit-parameters.js"></script>
64a7d2aa 965 <script src="js/ripple-util.js"></script>
46a5338e 966 <script src="js/jingtum-util.js"></script>
45e40c28 967 <script src="js/casinocoin-util.js"></script>
3451d1a8 968 <script src="js/eos-util.js"></script>
cee442b1
KK
969 <script src="js/sjcl-bip39.js"></script>
970 <script src="js/wordlist_english.js"></script>
3a8dbe99
IC
971 <script src="js/wordlist_japanese.js"></script>
972 <script src="js/wordlist_spanish.js"></script>
973 <script src="js/wordlist_chinese_simplified.js"></script>
974 <script src="js/wordlist_chinese_traditional.js"></script>
975 <script src="js/wordlist_french.js"></script>
976 <script src="js/wordlist_italian.js"></script>
139becaf 977 <script src="js/wordlist_korean.js"></script>
cc3c3548 978 <script src="js/wordlist_czech.js"></script>
cee442b1 979 <script src="js/jsbip39.js"></script>
c6624d51 980 <script src="js/entropy.js"></script>
cee442b1 981 <script src="js/index.js"></script>
ebd8d4e8
IC
982 </body>
983</html>