-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathbackup.html
More file actions
179 lines (137 loc) · 9.22 KB
/
backup.html
File metadata and controls
179 lines (137 loc) · 9.22 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Digital Bitbox | Backup</title>
<!--#include file="inc/head.html"-->
<!-- present in head.html, but include again so that available in backup.zip file -->
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/digitalbitbox.css" rel="stylesheet">
</head>
<!---------------------------------------------------------------->
<body>
<noscript class="js-notice"></noscript>
<!--#include file="inc/navbar.html" -->
<div id="splash-screen"></div>
<div id="spinner"></div>
<div class="container">
<br><br><br><br>
<h2>Backup center</h2>
<div>
This page is not required to use your Digital Bitbox and is provided for instructional purposes.
<br><br>
Learn how to recover from a backup or create your own wallet using the client-side JavaScript below.
A standalone version of this page can be downloaded <a href="download/html/backup.zip">here</a> or from <a href="https://github.com/digitalbitbox/html_backup">Github</a> and run offline.
<br><br>
<small><small>(compatible with code versions 2.0+)</small></small>
<br><br><br>
</div>
<section id="backup-seed">
<hr>
<br>
<br>
<textarea id="backup-user-entropy" class="text-input" placeholder="create your own wallet from random words or data (optional)" rows="3" cols="44" wrap="hard" spellcheck="false"></textarea>
<button id="backup-create-button" class="btn btn-default button-user-entropy"><i class="fa fa-long-arrow-down"></i> Create</button>
<br>
<textarea id="backup-entropy" class="text-input" placeholder="wallet backup" rows="2" cols="70" wrap="hard" spellcheck="false"></textarea>
<br>
<input type="password" id="backup-password" class="text-input" placeholder="password" size="19" value="" spellcheck="false"/>
<button id="backup-generate-button" class="btn btn-default"><i class="fa fa-long-arrow-down"></i> Generate</button>
<button id="backup-clear-button" class="btn btn-default"><i class="fa fa-eraser"></i> Clear</button>
<br><br>
<div class="placeholder">BIP32 extended master private key</div>
<textarea id="backup-xpriv" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Bitcoin Electrum Legacy BIP44 recovery key</div>
<textarea id="backup-electrum-btc-legacy" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Bitcoin Electrum Legacy BIP44 public key</div>
<textarea id="backup-electrum-btc-legacy-pub" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Bitcoin Electrum p2sh-segwit BIP49 recovery key</div>
<textarea id="backup-electrum-btc-segwit" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Bitcoin Electrum p2sh-segwit BIP49 public key</div>
<textarea id="backup-electrum-btc-segwit-pub" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Bitcoin Electrum native-segwit BIP84 recovery key</div>
<textarea id="backup-electrum-btc-native-segwit" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Bitcoin Electrum native-segwit BIP84 public key</div>
<textarea id="backup-electrum-btc-native-segwit-pub" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Bitcoin Electrum recovery key for a multisig wallet</div>
<textarea id="backup-electrum-btc-multisig" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Bitcoin Electrum public key for a multisig wallet</div>
<textarea id="backup-electrum-btc-multisig-pub" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Litecoin Electrum Legacy BIP44 recovery key</div>
<textarea id="backup-electrum-ltc-legacy" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Litecoin Electrum Legacy BIP44 public key</div>
<textarea id="backup-electrum-ltc-legacy-pub" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Litecoin Electrum p2sh-segwit BIP49 recovery key</div>
<textarea id="backup-electrum-ltc-segwit" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Litecoin Electrum p2sh-segwit BIP49 public key</div>
<textarea id="backup-electrum-ltc-segwit-pub" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Litecoin Electrum native-segwit BIP84 recovery key</div>
<textarea id="backup-electrum-ltc-native-segwit" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Litecoin Electrum native-segwit BIP84 public key</div>
<textarea id="backup-electrum-ltc-native-segwit-pub" class="text-input" rows="3" cols="70" wrap="hard" spellcheck="false" readonly></textarea>
<br>
<div class="placeholder">Ethereum private keys</div>
<textarea id="backup-ethereum-private-keys" class="text-input" rows="5" cols="70" spellcheck="false" readonly></textarea>
<br><br>
<input type="text" id="backup-name" class="text-input" placeholder="wallet name" value="" spellcheck="false" />
<button id="backup-export-button" class="btn btn-default"><i class="fa fa-download"></i> Export PDF</button>
<br><br><br>
<small>
* To <b>recover your Bitcoin wallet without a Digital Bitbox</b>,
enter the wallet backup text and password in the above boxes, click 'generate',
and import the recovery key into the Electrum software wallet.
<br><br>
* To <b>recover Ethereum without a Digital Bitbox</b>,
enter the wallet backup text and password in the above boxes, click 'generate',
and enter an Ethereum private key into MyEtherWallet.
The order of private keys corresponds to the order of public addresses when 'viewing' a wallet in MyEtherWallet.
<br><br>
* The backup is saved as a PDF file on the micro SD card for convenience.
Plug the micro SD card into a trusted printer if you wish to also make a <b>paper backup</b>.
<br><br>
* To <b>load your own wallet</b> into a Digital Bitbox, put the PDF file
on the micro SD card inside a folder named 'digitalbitbox' in the root directory.
Then, insert the SD card into the Digital Bitbox, and load your wallet using the desktop app.
<b>High quality randomness is crucial!</b>
Otherwise, a thief may be able to guess your key and take your coins.
<br><br>
* A wallet is generated from the backup text and password using a modified BIP39 procedure.
In particular, PBKDF2 strengthening is done twice (22,528 total rounds) for stronger protection.
<br><br>
* Standard wallet addresses are generated following the BIP32 and BIP44 specifications.
The BIP32 extended master private key is <i>m</i>.
Electrum recovery keys are generated with <i>m/44'/0'/0'</i>.
For a multi-signature wallet, the base BIP32 key path is <i>m/100'/45'/0'</i>.
For Ethereum, the base BIP32 key path is <i>m/44'/60'/0'/0</i>. The tool generates Ethereum keys <i>m/44'/60'/0'/0/0</i> through <i>m/44'/60'/0'/0/19</i>.
</small>
<br><br>
</section>
</div>
<!--#include file="inc/footer.html" -->
<!-- JavaScript Files -->
<script src="js/jquery-1.11.3.min.js"></script> <!-- include again for backup.zip file -->
<script src="js/jquery-ui-fade.min.js"></script> <!-- http://jqueryui.com/download/ -->
<script src="js/base58check.js"></script>
<script src="js/sha512.js"></script>
<script src="js/bitcoin-min.js"></script>
<script src="js/bip32.js"></script>
<script src="js/bip39.js"></script>
<script src="js/backup.js"></script>
</body>
</html>