blob: dda4fef444e0dbfb4730f136f215f403fb4329fc (
plain) (
blame)
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
|
{{#yield-scripts}}
{{#js}}js/setup{{/js}}
{{/yield-scripts}}
<form id="setup" action="/{{user}}" method="post" style="display: none">
<h1>Settings</h1>
<input type="hidden" id="username" name="username" value="{{user}}" />
<div class="form-group">
<label for="title">Store Name:</label>
<input type="text" id="title" name="title" class="form-control" />
</div>
<div class="form-group">
<label for="logo">Logo:</label>
<input type="text" id="logo" name="logo" class="form-control" />
</div>
<div class="form-group">
<label for="bip32">Extended key:</label>
<div class="input-group">
<input type="text" id="bip32" name="bip32" class="form-control" placeholder="xpub..." />
<span class="input-group-btn">
<button id="generate" type="button" class="btn">Generate</button>
</span>
</div>
</div>
<div class="form-group">
<label for="currency">Currency:</label>
<select id="currency" name="currency" class="form-control">
</select>
</div>
<div class="form-group">
<label for="symbol">Exchange Rate:</label>
<select id="symbol" name="symbol" class="form-control">
</select>
</div>
<div class="form-group">
<label for="commission">Commission/Discount <small>(optional %)</small>:</label>
<input type="text" id="commission" name="commission" class="form-control" />
</div>
<div class="form-group">
<label for="unit">Bitcoin Display Units:</label>
<select id="unit" name="unit" class="form-control">
</select>
</div>
<div class="form-group">
<label for="password">New Password <small>(blank = no change)</small>:</label>
<input type="password" id="password" name="password" class="form-control" />
</div>
<div class="form-group">
<label for="confirm">Confirm New Password:</label>
<input type="password" id="confirm" name="confirm" class="form-control" />
</div>
<br />
<input class="btn btn-primary" type="submit" value="Done" />
</form>
<div class="modal fade" id="modal" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">New Extended Key</h4>
</div>
<div class="modal-body">
<ul class="nav nav-tabs" role="tablist">
<li class="active"><a href="#step1" role="tab" data-toggle="tab">Info</a></li>
<li><a href="#step2" role="tab" data-toggle="tab">Key</a></li>
<li><a href="#step3" role="tab" data-toggle="tab">Agreement</a></li>
</ul>
<div class="tab-content">
<div id="step1" class="tab-pane active">
<p>In Bitcoin parlance, an extended key, also known as a <a href="https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki"><abbr title="Bitcoin Improvement Proposal Number 32">BIP32</abbr></a> or <abbr title="Hierarchical Deterministic Wallet">HD Wallet</abbr> key, is a master key that can be used to derive multiple bitcoin addresses.</p>
<p>The <b>public</b> portion of the key will be stored and used by CoinOS to generate a separate receiving address for every payment to your account. This will preserve your and your customers' privacy by preventing people from seeing or tracking transactions to your account other than their own.</p>
<p>The <b>private</b> portion of the key will be generated here but will not be stored after you close this window. You will be responsible for saving it and making copies of it. If you lose it, any funds sent to your account will be unspendable.</p>
<p>We'll ask you to encrypt the key with a password of your choosing. It's a good idea to choose a strong password and keep it written down and backed up seoarately from the key itself. You and any would-be attackers will need access to both the encrypted private key and the password that was used to encrypt it in order to spend funds received.</p>
</div>
<div id="step2" class="tab-pane">
<div class="form-group">
<label for="encryption-password">Encryption Password:</label>
<input type="password" id="encryption-password" name="encryption-password" class="form-control" />
</div>
<div class="form-group">
<label for="encryption-confirm">Confirm Password:</label>
<input type="password" id="encryption-confirm" name="encryption-confirm" class="form-control" />
</div>
<div id="key-dialog" class="alert alert-danger">
Extended Private Key <span id="status">(Unencrypted)</span>
<pre id="privkey"></pre>
<div id="qr"></div>
</div>
<div id="buttons" class="pull-right">
<button id="print" class="btn btn-primary">
<span class="glyphicon glyphicon-print"></span> Print
</button>
</div>
<br class="clearfix">
</div>
<div id="step3" class="tab-pane">
<div class="form-group">
<input type="checkbox" checked> I've emailed, written down, printed out, screenshotted or otherwise saved and backed up to multiple places the extended private key from the previous page.
</div>
<div class="form-group">
<input type="checkbox" checked> I'm confident that no one but me will ever gain access to any of the copies of it by breaking into my computer or email account or through physical theft or extortion and that I will always have access to at least one copy of the key even in case of hardware failure, natural disaster or memory lapse.
</div>
<div class="form-group">
<input type="checkbox" checked> I understand that there's no way for CoinOS to recover or reset the password I used to encrypt the private key so I've written it down somewhere safe, separate from the key itself.
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" style="display: none">Back</button>
<button type="button" class="btn btn-primary">Next</button>
</div>
</div>
</div>
</div>
|