forked from seedguardian/seedguardian.github.io
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
183 lines (171 loc) · 11 KB
/
index.html
File metadata and controls
183 lines (171 loc) · 11 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
179
180
181
182
183
<!DOCTYPE html>
<!-- seedguardian - by Mathieu Gorichon - released under MIT License -->
<html lang="en">
<head>
<title>Seed Guardian</title>
<script type="text/javascript" src="lib/js/angular.js"></script>
<script type="text/javascript" src="lib/js/secrets.js"></script>
<script type="text/javascript" src="lib/js/bip39.js"></script>
<script type="text/javascript" src="humanizer.js"></script>
<script type="text/javascript" src="seedguardian.js"></script>
<link href="lib/css/bootstrap.css" rel="stylesheet" media="screen">
<link href="seedguardian.css" rel="stylesheet" media="screen">
<link href="seedguardian-print.css" rel="stylesheet" media="print">
</head>
<body ng-app>
<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<a class="navbar-brand" href="#">Seed Guardian (Alpha)</a>
</div>
</nav>
<div class="container" id="main">
<h1>BIP39 Seed Guardian <small>Never lose your bitcoins</small></h1>
<p class="app">This software uses Shamir's Secret Sharing Scheme to securely store your BIP39 seed. Hexadecimal
shares are humanized using BIP39 algorithm, so each share is encoded as a sequence of 15 words.</p>
<div class="alert alert-warning">This software has just started development, please use with care.</div>
<div class="panel panel-default" ng-controller="SplitCtrl">
<div class="panel-heading">
<h3 class="panel-title">Split BIP39 Seed</h3>
</div>
<div class="panel-body">
<form name="splitform" class="form-horizontal" method="get" onSubmit="return false;">
<fieldset>
<div class="app">
<div class="form-group" ng-class="{'has-error': splitform.seed.$error.pattern}">
<label class="col-lg-2 control-label">BIP39 Seed</label>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12">
<input type="text" name="seed" ng-pattern="/^(\S*\s){11}\S*$/" ng-model="humanSeed" class="form-control" placeholder="Leave empty to create a new BIP39 wallet">
<span ng-show="splitform.seed.$error.pattern">Seed is made of exactly 12 words.</span>
</div>
</div>
</div>
</div>
<div class="form-group">
<label class="col-lg-2 control-label">Print Label</label>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12">
<input type="text" name="print-label" ng-model="printLabel"
class="form-control"
placeholder="Create a label to identify printed seeds">
</div>
</div>
</div>
</div>
<div class="form-group" ng-class="{'has-error': splitform.sharesnumber.$error.min || splitform.sharesnumber.$error.max}">
<label class="col-lg-2 control-label">Number of Shares</label>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12">
<input type="number" name="sharesnumber" min="2" max="64" ng-model="sharesNumber" class="form-control" placeholder=""/>
<span ng-show="splitform.sharesnumber.$error.min || splitform.sharesnumber.$error.max">The value must be in range 2 to 64.</span>
</div>
</div>
</div>
</div>
<div class="form-group" ng-class="{'has-error': splitform.threshold.$error.min || splitform.threshold.$error.max}">
<label class="col-lg-2 control-label">Threshold</label>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12">
<input type="number" name="threshold" min="2" max="64" ng-model="threshold" class="form-control" placeholder="">
<span ng-show="splitform.threshold.$error.min || splitform.threshold.$error.max">The value must be in range 2 to 64.</span>
</div>
</div>
</div>
</div>
<div class="form-group" title="">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12">
<input ng-click="init()" class="btn btn-default" type="button" value="Reset"/>
<input ng-click="split()" class="btn btn-primary" type="button" value="Split Seed"/>
</div>
</div>
</div>
</div>
<div class="alert alert-danger" ng-show="showError">{{errorMessage}}</div>
</div>
<div class="form-group" ng-show="showShares" title="">
<label class="col-lg-2 control-label">Shares</label>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12">
<div class="well well-sm seed" ng-repeat="share in humanShares"
ng-animate="'animate'">
<div class="seed-text">{{printLabel}}</div>
<div>{{share}}</div>
<div class="seed-text">Visit
https://github.com/jasadams/seedguardian.github.io to reconstruct
the seed.</div>
</div>
</div>
</div>
</div>
</div>
</fieldset>
</form>
</div>
</div> <!-- panel -->
<div class="panel panel-default" ng-controller="ReconstructCtrl">
<div class="app">
<div class="panel-heading">
<h3 class="panel-title">Reconstruct BIP39 Seed</h3>
</div>
<div class="panel-body">
<form name="reconstructform" class="form-horizontal" method="get" onSubmit="return false;">
<fieldset>
<div ng-class="{'has-error': reconstructform.share.$error.pattern}" ng-repeat="(index, share) in humanShares" class="form-group" title="">
<label class="col-lg-2 control-label">Share {{$index + 1}}</label>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12">
<input type="text" name="share" ng-pattern="/^(\S*\s){14}\S*$/" ng-model="humanShares[index]" ng-change="onChange()" class="form-control" placeholder="Enter the share 15 words">
<span ng-show="reconstructform.share.$error.pattern">Share is made of exactly 15 words.</span>
</div>
</div>
</div>
</div>
<div class="form-group" title="">
<div class="col-lg-2"></div>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12">
<input ng-click="init()" class="btn btn-default" type="button" value="Reset"/>
<input ng-click="reconstruct()" class="btn btn-primary" type="button" value="Reconstruct Seed"/>
<!-- <input ng-click="addShare()" class="btn btn-success" type="button" value="Add Share">
<input ng-click="removeShare()" class="btn btn-danger" type="button" value="Remove Share"> -->
</div>
</div>
</div>
</div>
<div class="alert alert-danger" ng-show="showError">{{errorMessage}}</div>
<div class="form-group" ng-show="showSeed" title="">
<label class="col-lg-2 control-label">BIP39 Seed</label>
<div class="col-lg-10">
<div class="row">
<div class="col-lg-12">
<div class="well well-sm">{{humanSeed}}</div>
</div>
</div>
</div>
</div>
</fieldset>
</form>
</div>
</div>
</div> <!-- panel -->
<footer>
<p>The contents of this page are released under the <a href="http://opensource.org/licenses/mit-license.php">MIT License</a>.
<span class="pull-right">Powered by <a href="http://pages.github.com">GitHub Pages</a>
<a href="https://github.com/seedguardian/seedguardian.github.io">GitHub Repository</a>
</span>
</p>
</footer>
</div> <!-- container -->
</body>
</html>