forked from bitpay/copay-recovery
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
245 lines (238 loc) · 12.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE html>
<html ng-app="recoveryApp" lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="bower_components/sjcl/sjcl.js"></script>
<script type="text/javascript" src="bower_components/bitcore/bitcore.min.js"></script>
<script type="text/javascript" src="bower_components/bitcore/bitcore.js"></script>
<script type="text/javascript" src="bower_components/bitcore-mnemonic/bitcore-mnemonic.min.js"></script>
<script type="text/javascript" src="bower_components/jquery/dist/jquery.js"></script>
<script type="text/javascript" src="bower_components/ng-lodash/build/ng-lodash.min.js"></script>
<script type="text/javascript" src="bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="hexdots.css" type="text/css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="main.css"></link>
<script type="text/javascript" src="js/services.js"></script>
<script type="text/javascript" src="js/controllers.js"></script>
<title>Copay recovery tool</title>
</head>
<div id="wrapper">
<header class="page-header">
<div class="container">
<img src="./img/logo-white.svg" alt="Copay" width="80" class="pull-left">
<span class="label">recovery tool</span>
<a href="https://github.com/bitpay/copay-recovery" type="button" class="btn btn-default btn-primary pull-right" target="blank">View the Code</a>
</div>
</header>
<div class="container">
<div id="successMessage" class="alert alert-success" style="display: none;">
{{successMessage}}
</div>
<div id="errorMessage" class="alert alert-danger" style="display: none;">
{{errorMessage}}
</div>
<div id="statusMessage" class="alert alert-info" style="display: none;">
{{statusMessage}}
</div>
</div>
<body ng-controller="recoveryController">
<div class="container">
<div id="sendBlock" style="display: none;">
<div class="form-group panel">
<label>{{totalBalance}}</label>
<div class="input-group">
<div class="input-group-addon" >Destination Address:</div>
<input type="text" class="form-control" ng-model="addr">
</div>
</div>
<button class="btn btn-primary btn-lg btn-block" ng-click="sendFunds()">Transfer</button>
</div>
<div id="inputs">
<div class="panel">
<h4>Wallet configuration:</h4>
<div class="row">
<div class="col-md-3">
<label>Required signatures</label>
<select class="pull-right" id="selectM">
<option id="1">1</option>
<option id="2">2</option>
<option id="3">3</option>
<option id="4">4</option>
<option id="5">5</option>
<option id="6">6</option>
</select><br>
<label>Total Copayers</label>
<select class="pull-right" id="selectN">
<option id="1">1</option>
<option id="2">2</option>
<option id="3">3</option>
<option id="4">4</option>
<option id="5">5</option>
<option id="6">6</option>
</select><br>
<label>Network</label>
<select class="pull-right" id="selectNet">
<option id="livenet">Livenet</option>
<option id="testnet">Testnet</option>
</select><br>
<label>Address Gap</label>
<input class="pull-right" size="3" type="text" class="form-control" id="gap" ng-model="gap">
<span>
(Usually does not need to be changed)
</span>
</div>
</div>
</div>
<div class="form-group panel" id="block1">
<div class="row">
<div class="form-group col-lg-6" id="backup1">
<label>Backup for copayer 1:</label>
<input type="text" class="form-control" ng-model="backUp[1]" placeholder="Mnemonic or export wallet data">
</div>
<div class="form-group col-lg-6" id="backupFile1">
<label>Or upload a file: </label>
<input type="file" ng-model="file1" on-read-file="showContent($fileContent, 1)" accept="application/json, .txt">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-lg-6" id="password1">
<label>Password:</label>
<input type="password" class="form-control" ng-model="pass[1]">
</div>
<div class="form-goup col-lg-6" id="passwordX1">
<label>Encrypted private key password (in case you have one):</label>
<input type="password" class="form-control" ng-model="passX[1]" id="passX1">
</div>
</div>
</div>
<div class="form-group panel" id="block2" style="display: none;">
<div class="row">
<div class="form-group col-lg-6" id="backup2">
<label>Backup for copayer 2:</label>
<input type="text" class="form-control" ng-model="backUp[2]" placeholder="Mnemonic or export wallet data">
</div>
<div class="form-group col-lg-6" id="backupFile2">
<label>Or upload a file: </label>
<input type="file" ng-model="file2" on-read-file="showContent($fileContent, 2)" accept="application/json, .txt">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-lg-6" id="password2">
<label>Password:</label>
<input type="password" class="form-control" ng-model="pass[2]">
</div>
<div class="form-goup col-lg-6" id="passwordX2">
<label>Encrypted private key password (in case you have one):</label>
<input type="password" class="form-control" ng-model="passX[2]" id="passX2">
</div>
</div>
</div>
<div class="form-group panel" id="block3" style="display: none;">
<div class="row">
<div class="form-group col-lg-6" id="backup3">
<label>Backup for copayer 3:</label>
<input type="text" class="form-control" ng-model="backUp[3]" placeholder="Mnemonic or export wallet data">
</div>
<div class="form-group col-lg-6" id="backupFile3">
<label>Or upload a file: </label>
<input type="file" ng-model="file3" on-read-file="showContent($fileContent, 3)" accept="application/json, .txt">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-lg-6" id="password3">
<label>Password:</label>
<input type="password" class="form-control" ng-model="pass[3]">
</div>
<div class="form-goup col-lg-6" id="passwordX3">
<label>Encrypted private key password (in case you have one):</label>
<input type="password" class="form-control" ng-model="passX[3]" id="passX3">
</div>
</div>
</div>
<div class="form-group panel" id="block4" style="display: none;">
<div class="row">
<div class="form-group col-lg-6" id="backup4">
<label>Backup for copayer 4:</label>
<input type="text" class="form-control" ng-model="backUp[4]" placeholder="Mnemonic or export wallet data">
</div>
<div class="form-group col-lg-6" id="backupFile4">
<label>Or upload a file: </label>
<input type="file" ng-model="file4" on-read-file="showContent($fileContent, 4)" accept="application/json, .txt">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-lg-6" id="password4">
<label>Password:</label>
<input type="password" class="form-control" ng-model="pass[4]">
</div>
<div class="form-goup col-lg-6" id="passwordX4">
<label>Encrypted private key password (in case you have one):</label>
<input type="password" class="form-control" ng-model="passX[4]" id="passX4">
</div>
</div>
</div>
<div class="form-group panel" id="block5" style="display: none;">
<div class="row">
<div class="form-group col-lg-6" id="backup5">
<label>Backup for copayer 5:</label>
<input type="text" class="form-control" ng-model="backUp[5]" placeholder="Mnemonic or export wallet data">
</div>
<div class="form-group col-lg-6" id="backupFile5">
<label>Or upload a file: </label>
<input type="file" ng-model="file5" on-read-file="showContent($fileContent, 5)" accept="application/json, .txt">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-lg-6" id="password5">
<label>Password:</label>
<input type="password" class="form-control" ng-model="pass[5]">
</div>
<div class="form-goup col-lg-6" id="passwordX5">
<label>Encrypted private key password (in case you have one):</label>
<input type="password" class="form-control" ng-model="passX[5]" id="passX5">
</div>
</div>
</div>
<div class="form-group panel" id="block6" style="display: none;">
<div class="row">
<div class="form-group col-lg-6" id="backup6">
<label>Backup for copayer 6:</label>
<input type="text" class="form-control" ng-model="backUp[6]" placeholder="Mnemonic or export wallet data">
</div>
<div class="form-group col-lg-6" id="backupFile6">
<label>Or upload a file: </label>
<input type="file" ng-model="file6" on-read-file="showContent($fileContent, 6)" accept="application/json, .txt">
</div>
</div>
<hr>
<div class="row">
<div class="form-group col-lg-6" id="password6">
<label>Password:</label>
<input type="password" class="form-control" ng-model="pass[6]">
</div>
<div class="form-goup col-lg-6" id="passwordX6">
<label>Encrypted private key password (in case you have one):</label>
<input type="password" class="form-control" ng-model="passX[6]" id="passX6">
</div>
</div>
</div>
<button class="btn btn-primary btn-lg btn-block" ng-click="proccessInputs()">Scan wallet</button><br><br>
</div>
<div class="modal fade" id="myModal" data-backdrop="static" data-keyboard="false">
<div class="modal-dialog" style="position: absolute;display: block;top: 50%;left: 50%;">
<!-- Modal content-->
<div class="hexdots-loader" ></div>
</div>
</div>
</div>
</body>
</div>
</html>